Class JacksonDiscriminatorPostProcessor

java.lang.Object
io.micronaut.openapi.postprocessors.JacksonDiscriminatorPostProcessor

public class JacksonDiscriminatorPostProcessor extends Object
Utility class to add missing "discriminator" property when using Jackson JsonTypeInfo and JsonSubTypes.
Since:
3.0.0
Author:
Iván López
  • 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