Interface RestOpenApiBuildTimeConfig.CodeGenConfig
- Enclosing interface:
- RestOpenApiBuildTimeConfig
public static interface RestOpenApiBuildTimeConfig.CodeGenConfig
-
Method Summary
Modifier and TypeMethodDescriptionAdditional properties to be used in the mustache templates.booleanenabled()If `true`, Camel Quarkus OpenAPI code generation is run for .json and .yaml files discovered from the `openapi` directory.booleanIf `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.models()A comma separated list of models to generate.booleanIf `true`, use NON_NULL Jackson annotation in the generated model classes.booleanIf `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
The package to use for generated model classes. -
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
Additional properties to be used in the mustache templates. -
locations
A comma separated list of OpenAPI spec locations.
-