Skip to content

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

@rere16

Description

@rere16

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions