Skip to content

How to propagate JsonSubTypes to Smallrye OpenAPI? #46485

Answered by MikeEdgar
LarsSven asked this question in Q&A
Discussion options

You must be logged in to vote

@LarsSven you can try adding the property to the @Schema on InputResourceReference with @SchemaProperty and it will merge with the properties found on the sub-classes.

@Schema(
  // ... other @Schema attributes here
  properties = { @SchemaProperty(name = "type", implementation = String.class) }
)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LarsSven
Comment options

Answer selected by LarsSven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment