Replies: 1 comment 6 replies
-
@TheKobe23 is sounds like a bug. Can you post a sample affected class? I will research later today. |
Beta Was this translation helpful? Give feedback.
6 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Having a record containing several attributes, among other things attributes starting with "set" (e.g. "setting, "setup", ...), these attributes will not be generated correctly in the openapi.json. The project is a Quarkus project.
Example for "setting":
@Schema Setting setting
) leads to a "duplicated" generation in the openapi.json: One time with property name "setting" and additionally one time with name "ting".@Schema(description = "setting description") Setting setting
) leads also to a "duplicated" generation of this property. Both ("setting" and "ting") having now a description in the JSON file@Schema(name = "setting", description = "setting description") Setting setting
) leads to the problem, that only the reference ($ref) will be generated in the opanapi.json, without any other properties like description or type. But with this "name" property, only one entry will be generated: "setting".Setting setting
)I tried also to use an implementation of OASFilter, but I got no improvements...
The configuration of smallrye seems also fine, I guess:
Do you have an idea, what I could do here to generate a correct openapi spec for attributes beginning with "set" and containing descriptions, types and so on without a duplicated entry were the prefix "set" is cut?
Goal:
Beta Was this translation helpful? Give feedback.
All reactions