You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
My mobile engineers want to read the openapi.json file that our backend serves, but it is not pretty.
Describe the solution you'd like
Use JSON.pretty_generate instead of JSON.dump in RSwag::API::Middleware#unload_swagger. The output will more closely match the input and be more readable.
What support could we give you, so you could implement this yourself?
I'll have a PR up shortly.
Describe alternatives you've considered
We considered switching to YAML because it's more readable by default, but we have Strings that look like Dates which is broken. (See #562)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
My mobile engineers want to read the openapi.json file that our backend serves, but it is not pretty.
Describe the solution you'd like
Use
JSON.pretty_generate
instead ofJSON.dump
inRSwag::API::Middleware#unload_swagger
. The output will more closely match the input and be more readable.What support could we give you, so you could implement this yourself?
I'll have a PR up shortly.
Describe alternatives you've considered
We considered switching to YAML because it's more readable by default, but we have Strings that look like Dates which is broken. (See #562)
The text was updated successfully, but these errors were encountered: