Annotation Type DiscriminatorMapping
-
@Target({}) @Retention(RUNTIME) @Inherited public @interface DiscriminatorMapping
The annotation may be used inSchema.discriminatorMapping()
to define an optional mapping definition in scenarios involving composition / inheritance where the value of the discriminator field does not match the schema name or implicit mapping is not possible.Use
Schema.discriminatorProperty()
to define a discriminator property.- See Also:
- Discriminator (OpenAPI specification),
Schema