Replies: 1 comment 1 reply
-
This is reasonable behavior to expect, but probably not something we should make a part of the specification. The current spec doesn't have an opinion on how schema names are determined, aside from when they are explicitly given in This would better be something that is an implementation features. Based on the naming behavior you describe, are you using a platform that incorporates smallrye-open-api [1]? If so, please consider opening a feature request there about this. It could likely be something that is added via a configuration option, perhaps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use a lot of nested classes: things like Type, Filters or Status. When the OpenAPI file is generated, it will do a best-effort to generate a unique name for each schema element. From what I understand, it currently just takes the class name, and resolves collisions by adding an incremental suffix. For example, Foo.Status and Bar.Status will result in Status1 and Status2.
Could the spec be augmented to require that nested classes include the name of their parent class in their generated default name? (For the example, this would yield FooStatus and BarStatus.)
Beta Was this translation helpful? Give feedback.
All reactions