Class OpenApiConfiguration

java.lang.Object
nl.b3p.planmonitorwonen.api.configuration.OpenApiConfiguration

@Configuration public class OpenApiConfiguration extends Object
The parts of the OpenAPI documentation which are not generated by springdoc from the controllers and models: the general description, the shared error responses, the example planregistratie and the enum values from the database.
  • Field Details

  • Constructor Details

    • OpenApiConfiguration

      public OpenApiConfiguration()
  • Method Details

    • openAPI

      @Bean public io.swagger.v3.oas.models.OpenAPI openAPI() throws IOException
      Throws:
      IOException
    • enumValuesCustomizer

      @Bean @Profile("!test") public org.springdoc.core.customizers.OpenApiCustomizer enumValuesCustomizer(EnumValues enumValues)
      Sets the enum values read from the database on the model properties. This can't be done with @Schema(allowableValues) without duplicating the values of the database schema.