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
I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
The fastify.swagger() API also supports a { yaml: true } argument to get a YAML string. It would be nice to expose this from generate-swagger.
I would have implemented this myself, maybe even with an -o file.txt output file support. But I'm not sure how to add custom arguments for just this command with the way parseArgs works.
Motivation
OpenAPI schemas are often represented in YAML for readability, and its already supported by fastify.swagger() just need to expose this in the CLI.
Prerequisites
🚀 Feature Proposal
The
fastify.swagger()
API also supports a{ yaml: true }
argument to get a YAML string. It would be nice to expose this fromgenerate-swagger
.I would have implemented this myself, maybe even with an
-o file.txt
output file support. But I'm not sure how to add custom arguments for just this command with the wayparseArgs
works.Motivation
OpenAPI schemas are often represented in YAML for readability, and its already supported by
fastify.swagger()
just need to expose this in the CLI.Example
The text was updated successfully, but these errors were encountered: