Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenAPI V3 tags #445

Open
zAlweNy26 opened this issue Apr 14, 2024 · 0 comments
Open

Support OpenAPI V3 tags #445

zAlweNy26 opened this issue Apr 14, 2024 · 0 comments

Comments

@zAlweNy26
Copy link

OpenAPI has an interface for the tags key, but I saw there is this not-needed mapping in the generator file:

tags: opts.tags?.map((tag) => ({ name: tag })),

I think this package could support both an array of strings (like now) or an array of TagObject (from the openapi-types package).
Or, if we want to introduce a "breaking change", just support the array of objects.
Tell me if my suggestion makes sense to you, I can open a PR to fix that if it's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant