-
Notifications
You must be signed in to change notification settings - Fork 92
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
New configuration property mp.openapi.extensions.smallrye.merge-schema-examples = false does not always work #2131
Comments
That's the default example for smallrye-open-api/core/src/main/java/io/smallrye/openapi/runtime/util/TypeUtil.java Lines 82 to 84 in 1f49df8
You should be able to suppress it by overriding the schema for
|
So, in yaml would that be this? It did not work.
|
Try this. The value should be a string. mp:
openapi:
schema:
java:
time:
LocalDateTime: '{ "type": "string", "format": "date-time" }' |
Yes that does work, thank you. |
Closing this one as there is a way to suppress the built-in examples. Although related, it's this one is not due to the |
If I set mp.openapi.extensions.smallrye.merge-schema-examples = false I get some strange results.
With this as my Pojo
I get this generated OpenAPI.
Where did this come from? It should not exist.
And that appears to be a default value as all arrays that do this have the same value.
Note I am using 4.0.6-SNAPSHOT
The text was updated successfully, but these errors were encountered: