-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate OpenAPI/swagger documentation at run time? #138
Comments
+1 This would be nice. I presume you mean the swagger-ui ? |
@joeblew99 @tmc You can just build it into the binary as I do in grpc-gateway-example: https://github.com/philips/grpc-gateway-example/blob/master/echopb/swagger.go |
@joeblew99 I meant the actual specs. It should be out of scope to include swagger-ui in this project. @philips yeah, I go-rice my specs into the binary now but it's a bit janky. |
@tmc This seems to me like it might be a problem better solved by your build system. I have implemented it myself using https://bazel.build. I assume that the //go:generate directive would allow you to achieve the same result but I have no real experience with it so I can't be sure. I'm going to close this to try to get the bug list down to a single page but feel free to reopen if you have more thoughts on the topic. |
it'd be nice to easily serve up a live representation of the OpenAPI/swagger specification versus going to disk.
The text was updated successfully, but these errors were encountered: