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

Custom API Class Naming Based on OpenAPI Field Instead of tags #20709

Open
rere16 opened this issue Feb 22, 2025 · 0 comments · May be fixed by #20713
Open

Custom API Class Naming Based on OpenAPI Field Instead of tags #20709

rere16 opened this issue Feb 22, 2025 · 0 comments · May be fixed by #20713

Comments

@rere16
Copy link

rere16 commented Feb 22, 2025

Hello,

I would like to know if OpenAPI Generator supports customizing API class names based on a specific OpenAPI field instead of relying on the tags field.

Use Case
In our OpenAPI definition, we have a custom field (e.g., x-api-tags) that categorizes endpoints more effectively than tags. We would like API classes to be generated using this field rather than tags.

Questions
Is there an existing way to configure OpenAPI Generator to use a custom field for API class naming?
If not, would this be feasible via a custom generator or templating?
Is this something that could be considered as an enhancement to OpenAPI Generator?
Thanks in advance for your help!

@abrevet-dev abrevet-dev linked a pull request Feb 23, 2025 that will close this issue
5 tasks
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

Successfully merging a pull request may close this issue.

1 participant