Interface OpenApiConfigProperty
- Since:
- 4.10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionAll supported annotation processor properties.static final StringConfig file locations.static final StringIs this property true, properties wll be loaded in the standard way from application.yml.static final StringLoaded micronaut-http-server-netty property (json-view.enabled).static final StringSystem property that enables generating OpenAPI version 3.1.static final StringSystem property that specifies jsonSchemaDialect URI.static final StringSystem property that specifies the location of additional swagger YAML and JSON files to read from.static final StringIs conversion to Asciidoc enabled.static final StringOpenAPI file path.static final StringResult adoc file output directory.static final StringResult adoc filename.static final StringCustom final template filename.static final StringPrefix for custom sub-template names.static final StringCustom template directory.static final StringSystem property that enables setting the open api config file.static final StringSystem property for server context path.static final StringSystem property that enables or disables open api annotation processing.static final StringActive micronaut environments which will be used for @Requires annotations.static final StringPrefix for expandable properties.static final StringSystem property that specifies the schema classes fields visibility level.static final StringThe name of the result swagger file.static final StringProperties prefix to set custom schema implementations for selected classes.static final StringIs this property true, output file format will be JSON, otherwise YAML.static final StringProperty that determines whether properties that have no view annotations are included in JSON serialization views.static final StringSystem property that specifies the location of current project.static final StringSystem property for naming strategy.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.mapping` property insteadstatic final Stringstatic final StringProperties prefix to set schema name prefix or postfix by package.static final StringSystem property to set schema duplicate resolution.static final StringSystem property that enables extra schema processing.static final StringProperties prefix to set custom schema implementations for selected classes.static final StringSystem property that enables or disables schema name separator for generics and inner classes.static final StringSystem property to set custom separator for generic classes.static final StringSystem property to set custom separator for inner classes.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.decorator.postfix` property insteadstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.decorator.prefix` property insteadstatic final StringSystem property that specifies the default security schema name, if it's not specified by annotation SecurityScheme.static final StringIs this property true, micronaut-openapi will process micronaut-security properties and annotations to construct openapi security schema.static final StringOpenAPI file path.static final StringSystem property that enables setting the target file to write to.static final StringIs this property true, micronaut-openapi will process micronaut-router versioning properties and annotations.static final StringSystem property that specifies the path where the generated UI elements will be located.static final StringSystem property for views specification.static final StringLoaded micronaut-http server context path property.static final StringDefault openapi config file.
-
Field Details
-
MICRONAUT_OPENAPI_SCHEMA
Deprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.mapping` property insteadProperties prefix to set custom schema implementations for selected classes. For example, if you want to set simple 'java.lang.String' class to some complex 'org.somepackage.MyComplexType' class you need to write:micronaut.openapi.schema.org.somepackage.MyComplexType=java.lang.String
Also, you can set it in your application.yml file like this:
micronaut: openapi: schema: org.somepackage.MyComplexType: java.lang.String org.somepackage.MyComplexType2: java.lang.Integer ...
- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_PREFIX
Deprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.decorator.prefix` property insteadProperties prefix to set schema name prefix or postfix by package. For example, if you have some classes with same names in different packages you can set postfix like this:micronaut.openapi.schema-postfix.org.api.v1_0_0=1_0_0 micronaut.openapi.schema-postfix.org.api.v2_0_0=2_0_0
Also, you can set it in your application.yml file like this:
micronaut: openapi: schema-postfix: org.api.v1_0_0: 1_0_0 org.api.v2_0_0: 2_0_0 ...
- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_POSTFIX
Deprecated, for removal: This API element is subject to removal in a future version.Use `micronaut.openapi.schema.decorator.postfix` property instead- See Also:
-
MICRONAUT_OPENAPI_ENABLED
System property that enables or disables open api annotation processing.
Default: true- See Also:
-
MICRONAUT_OPENAPI_31_ENABLED
System property that enables generating OpenAPI version 3.1.
Default: false- See Also:
-
MICRONAUT_OPENAPI_31_JSON_SCHEMA_DIALECT
System property that specifies jsonSchemaDialect URI.- See Also:
-
MICRONAUT_OPENAPI_CONFIG_FILE
System property that enables setting the open api config file.- See Also:
-
MICRONAUT_OPENAPI_EXPAND_PREFIX
Prefix for expandable properties.- See Also:
-
MICRONAUT_OPENAPI_CONTEXT_SERVER_PATH
System property for server context path.- See Also:
-
MICRONAUT_OPENAPI_PROPERTY_NAMING_STRATEGY
System property for naming strategy. One jackson PropertyNamingStrategy.- See Also:
-
MICRONAUT_OPENAPI_VIEWS_SPEC
System property for views specification.- See Also:
-
MICRONAUT_OPENAPI_TARGET_FILE
System property that enables setting the target file to write to.- See Also:
-
MICRONAUT_OPENAPI_VIEWS_DEST_DIR
System property that specifies the path where the generated UI elements will be located.- See Also:
-
MICRONAUT_OPENAPI_ADDITIONAL_FILES
System property that specifies the location of additional swagger YAML and JSON files to read from.- See Also:
-
MICRONAUT_OPENAPI_PROJECT_DIR
System property that specifies the location of current project.- See Also:
-
MICRONAUT_OPENAPI_SECURITY_DEFAULT_SCHEMA_NAME
System property that specifies the default security schema name, if it's not specified by annotation SecurityScheme.- See Also:
-
MICRONAUT_OPENAPI_FIELD_VISIBILITY_LEVEL
System property that specifies the schema classes fields visibility level. By default, only public fields visible.Available values:
PRIVATE PACKAGE PROTECTED PUBLIC- See Also:
-
MICRONAUT_OPENAPI_JSON_FORMAT
Is this property true, output file format will be JSON, otherwise YAML.- See Also:
-
MICRONAUT_OPENAPI_FILENAME
The name of the result swagger file.Default filename is <info.title>-<info.version>.yml. If info annotation not set, filename will be swagger.yml.
- See Also:
-
MICRONAUT_OPENAPI_ENVIRONMENTS
Active micronaut environments which will be used for @Requires annotations.- See Also:
-
MICRONAUT_ENVIRONMENT_ENABLED
Is this property true, properties wll be loaded in the standard way from application.yml. Also, environments from "micronaut.openapi.environments" property will set as additional environments, if you want to set specific environment name for openAPI generator.
Default value is "true".- See Also:
-
MICRONAUT_OPENAPI_SECURITY_ENABLED
Is this property true, micronaut-openapi will process micronaut-security properties and annotations to construct openapi security schema.
Default value is "true".- See Also:
-
MICRONAUT_OPENAPI_VERSIONING_ENABLED
Is this property true, micronaut-openapi will process micronaut-router versioning properties and annotations.
Default value is "true".- See Also:
-
MICRONAUT_CONFIG_FILE_LOCATIONS
Config file locations. By default, micronaut-openapi search config in standard path: <project_path>/src/main/resources/You can set your custom paths separated by ','. To set absolute paths use prefix 'file:', classpath paths use prefix 'classpath:' or use prefix 'project:' to set paths from project directory.
- See Also:
-
MICRONAUT_OPENAPI_JSON_VIEW_DEFAULT_INCLUSION
Property that determines whether properties that have no view annotations are included in JSON serialization views. If enabled, non-annotated properties will be included; when disabled, they will be excluded.
Default value is "true".- See Also:
-
MICRONAUT_SERVER_CONTEXT_PATH
Loaded micronaut-http server context path property.- See Also:
-
MICRONAUT_JACKSON_JSON_VIEW_ENABLED
Loaded micronaut-http-server-netty property (json-view.enabled).- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_EXTRA_ENABLED
System property that enables extra schema processing.- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_DUPLICATE_RESOLUTION
System property to set schema duplicate resolution. Available values: - auto - micronaut-openapi automatically add index suffix to duplicate schema. - error - micronaut-openapi throws an exception when found duplicate schema.
Default: auto- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_NAME_SEPARATOR_EMPTY
System property that enables or disables schema name separator for generics and inner classes. If it's true separators will be skipped. For example, schema name for class with nameMyClass.MyInnerClass<MyGeneric1, MyGeneric2>will beMyClassMyInnerClassMyGeneric1MyGeneric2
Default: false- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_NAME_SEPARATOR_GENERIC
System property to set custom separator for generic classes. By default, it is "_".
Default: _- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_NAME_SEPARATOR_INNER_CLASS
System property to set custom separator for inner classes. By default, it is ".".
Default: .- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_MAPPING
Properties prefix to set custom schema implementations for selected classes. For example, if you want to set simple 'java.lang.String' class to some complex 'org.somepackage.MyComplexType' class you need to write:micronaut.openapi.schema.mapping.org.somepackage.MyComplexType=java.lang.String
Also, you can set it in your application.yml file like this:
micronaut: openapi: schema: mapping: org.somepackage.MyComplexType: java.lang.String org.somepackage.MyComplexType2: java.lang.Integer...- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_DECORATOR_PREFIX
Properties prefix to set schema name prefix or postfix by package. For example, if you have some classes with same names in different packages you can set postfix like this:micronaut.openapi.schema.decorator.postfix.org.api.v1_0_0=1_0_0 micronaut.openapi.schema.decorator.postfix.org.api.v2_0_0=2_0_0
Also, you can set it in your application.yml file like this:
micronaut: openapi: schema: decorator: postfix: org.api.v1_0_0: 1_0_0 org.api.v2_0_0: 2_0_0- See Also:
-
MICRONAUT_OPENAPI_SCHEMA_DECORATOR_POSTFIX
- See Also:
-
MICRONAUT_OPENAPI_GROUPS
Properties prefix to set custom schema implementations for selected classes. For example, if you want to set simple 'java.lang.String' class to some complex 'org.somepackage.MyComplexType' class you need to write:-Dmicronaut.openapi.group.my-group1.title="Title 1"
Also, you can set it in your application.yml file like this:
micronaut: openapi: group: my-group1: title: Title 1 filename: swagger-${group}-${apiVersion}-${version}.yml my-group2: title: Title 2- See Also:
-
MICRONAUT_OPENAPI_ADOC_TEMPLATE_PREFIX
Prefix for custom sub-template names.- See Also:
-
MICRONAUT_OPENAPI_ADOC_ENABLED
Is conversion to Asciidoc enabled.- See Also:
-
MICRONAUT_OPENAPI_ADOC_TEMPLATES_DIR_PATH
Custom template directory.- See Also:
-
MICRONAUT_OPENAPI_ADOC_TEMPLATE_FILENAME
Custom final template filename.- See Also:
-
MICRONAUT_OPENAPI_ADOC_OUTPUT_DIR_PATH
Result adoc file output directory.- See Also:
-
MICRONAUT_OPENAPI_ADOC_OUTPUT_FILENAME
Result adoc filename.- See Also:
-
MICRONAUT_OPENAPI_ADOC_OPENAPI_PATH
OpenAPI file path.- See Also:
-
MICRONAUT_OPENAPI_SWAGGER_FILE_GENERATION_ENABLED
OpenAPI file path.- See Also:
-
OPENAPI_CONFIG_FILE
Default openapi config file.- See Also:
-
ALL
All supported annotation processor properties.
-