I have a swagger.yaml file, and want to convert it to a swagger.json file.
Is it necessary to use the Swagger codegen tool, or is any generic converter script ok?
For example this is what I typically use for YAML to JSON:
cat foo.yaml | ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML::load(ARGF.read))' > foo.json
Is there any reason this wouldn't work reliably on a Swagger file?
Thanks for guidance.