-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
How do you generate a swagger yaml file instead of json? #467
Comments
Seems like the json format is the only output available. |
Can you elaborate on your need for a YAML file instead of JSON? I believe anything that reads YAML should read JSON. |
It's been a while since I made this issue, and I've since moved on. My recollection is that our overall swagger file is YAML, and I wanted to embed the swagger generation from the grpc-gateway tool into the larger rest api, and the JSON was problematic for that purpose. The pattern I'm working with is a rest api proxying to multiple gRPC services. I was hoping to do some sort of auto-embedding, but have since given up on the notion, at least for now. |
JSON is a strict subset of YAML so your YAML parser should be able to just read this for whenever you get back around to it. If you have problems feel free to reopen/open a new issue. |
It's not clear to me how to generate a yaml file, instead of a json file. Is that possible, or do I need a converter?
The text was updated successfully, but these errors were encountered: