This is a plugin for the buffalo generator. It could be used to generate a swagger file form an existings buffalo api project.
$ go get -u github.com/fsuhrau/buffalo-swagger
$ buffalo generate swagger /path/to/project api.json
- project path should be optional normally it should be relative to the current working dir
- paths for api endpoints should be extracted out of the app.go
- generate valid yaml file
- update to OpenAPI 3.0
- swagger file is not 100% valid in https://editor.swagger.io