Class JacksonDiscriminatorPostProcessor
java.lang.Object
io.micronaut.openapi.postprocessors.JacksonDiscriminatorPostProcessor
Utility class to add missing "discriminator" property when using Jackson
JsonTypeInfo
and JsonSubTypes
.- Since:
- 3.0.0
- Author:
- Iván López
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMissingDiscriminatorType
(io.swagger.v3.oas.models.OpenAPI openAPI) Add the missing discriminator property to the schemas related to another schema referencing them.
-
Constructor Details
-
JacksonDiscriminatorPostProcessor
public JacksonDiscriminatorPostProcessor()
-
-
Method Details
-
addMissingDiscriminatorType
public void addMissingDiscriminatorType(io.swagger.v3.oas.models.OpenAPI openAPI) Add the missing discriminator property to the schemas related to another schema referencing them.- Parameters:
openAPI
- The OpenAPI object
-