oas
oas copied to clipboard
Filter by Tags
Great project!
I'm wondering if there is a way or if there could be way to filter by tags when generating the output file? As in, only include docs that contains this tag?
oas generate --tags tag1,tag2
or oas generate --tag tag1 --tag tag2
Or if not by tag, then some other mechanism for filtering/including/excluding documentation.
Thanks!
Hey! I do like this idea.
I didn't write it, however I do know there's some sort of scope filtering in swagger-inline
(which this is built upon):
https://github.com/readmeio/swagger-inline
But alas, I'm not sure exactly how it works!
With the release of v20 this library no longer has a CLI offering for creating OpenAPI definitions. If you'd like to still support the idea behind this ticket I recommend moving it over to swagger-inline[^1].
[^1]: The internal library that the oas
CLI has always used for OpenAPI generation.