[Feature Request] Non-interactive Reduction of an OpenAPI Definition #683
Labels
command:openapi
Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands
enhancement
New feature or request
Background
GitHub Action: readmeio/[email protected]
Any linux runner, any OpenAPI 3+ definition
Observation
I have multiple APIs which have operations that can either be public or private. I'm currently tagging the operations in the definition to distinguish between the two use cases.
With rdme 8.0 onwards I can reduce the definition and just publish to my developer portal the public definitions.
rdme openapi:reduce <filename>
Happy days.
However, the openapi:reduce command is for interactive use only. My CI pipelines are non-interactive, so can't perform the same task. This breaks the mantra "Our CLI and GitHub actions have the same functionality", which is both bogus and sad.
Request
Enhance the openapi:reduce command to accept a tag on the command line. How you deal with the question of where to write the resulting file is up to you, but if it were me I'd probably write to stdout.
The text was updated successfully, but these errors were encountered: