Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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:
https://github.com/jlalmes/trpc-openapi/blob/d1eab87f14fc4bf20b000dfc3ecb5fc5b105006b/src/generator/index.ts#L48

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant