Interface RestOpenApiBuildTimeConfig.CodeGenConfig

Enclosing interface:
RestOpenApiBuildTimeConfig

public static interface RestOpenApiBuildTimeConfig.CodeGenConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Additional properties to be used in the mustache templates.
    boolean
    If `true`, Camel Quarkus OpenAPI code generation is run for .json and .yaml files discovered from the `openapi` directory.
    boolean
    If `true`, use JsonIgnoreProperties(ignoreUnknown = true) annotation in the generated model classes.
    A comma separated list of OpenAPI spec locations.
    The package to use for generated model classes.
    A comma separated list of models to generate.
    boolean
    If `true`, use NON_NULL Jackson annotation in the generated model classes.
    boolean
    If `true`, use bean validation annotations in the generated model classes.
  • Method Details

    • enabled

      @WithDefault("true") boolean enabled()
      If `true`, Camel Quarkus OpenAPI code generation is run for .json and .yaml files discovered from the `openapi` directory. When `false`, code generation for .json and .yaml files is disabled.
    • modelPackage

      @WithDefault("org.apache.camel.quarkus") String modelPackage()
      The package to use for generated model classes.
    • models

      Optional<String> models()
      A comma separated list of models to generate. The default is empty list for all models.
    • useBeanValidation

      @WithDefault("false") boolean useBeanValidation()
      If `true`, use bean validation annotations in the generated model classes.
    • notNullJackson

      @WithDefault("false") boolean notNullJackson()
      If `true`, use NON_NULL Jackson annotation in the generated model classes.
    • ignoreUnknownProperties

      @WithDefault("false") boolean ignoreUnknownProperties()
      If `true`, use JsonIgnoreProperties(ignoreUnknown = true) annotation in the generated model classes.
    • additionalProperties

      Map<String,String> additionalProperties()
      Additional properties to be used in the mustache templates.
    • locations

      Optional<String> locations()
      A comma separated list of OpenAPI spec locations.