Any tools available to generate swagger file

Writing swagger files manually has been a pain area. Is there any tool available which can help with the swagger generation?

Are you meaning something like this ? http://specgen.apistudio.io/