oas icon indicating copy to clipboard operation
oas copied to clipboard

Filter by Tags

Open cbautista1002 opened this issue 5 years ago • 1 comments

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!

cbautista1002 avatar Oct 09 '18 20:10 cbautista1002

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!

gkoberger avatar Oct 13 '18 01:10 gkoberger

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.

erunion avatar Oct 28 '22 22:10 erunion