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

Add config to keep example/examples as distinct attributes #2099

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

MikeEdgar
Copy link
Member

Closes #2076
Adds new configuration property mp.openapi.extensions.smallrye.merge-schema-examples with default true. Setting to false will disable the behavior of merging the @Schema(example) into the new OAS 3.1.0 examples array.

Fixes #2095
Additionally, ignore the scanner's default examples if a user has given a deprecated example in the annotation.

@MikeEdgar MikeEdgar added this to the 4.0.5 milestone Dec 8, 2024
@MikeEdgar MikeEdgar enabled auto-merge (squash) December 8, 2024 23:40
@MikeEdgar MikeEdgar merged commit eebf353 into smallrye:main Dec 8, 2024
5 checks passed
@MikeEdgar MikeEdgar deleted the issue-2076 branch December 9, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants