Interface CommonItemConfig
- All Known Subinterfaces:
CodegenConfig,GlobalCodegenConfig,SpecItemConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe specified annotations will be added to the generated api filesDefines if the enums should have an `UNEXPECTED` member to convey values that cannot be parsed.The specified annotations will be added to the generated model filesAdd custom/additional HTTP Headers or other args to every requestDefines if security support classes should be generatedEnable the generation of equals and hashcode in models.Enable the generation of APIs.Enable the generation of models.Defines, whether the `PartFilename` (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) annotation should be generated for MultipartForm POJOs.Import Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be imported when a given OAS datatype (the keys of this map) is usedHandles the return type for each operation, depending on the configuration.Defines with SmallRye Mutiny enabled if methods should returnjakarta.ws.rs.core.Responseor a model.Defines the normalizer options.Defines the filename for a part in case the `PartFilename` annotation (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) is generated.Defines if the methods should returnjakarta.ws.rs.core.Responseor a model.Schema Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be imported when a given schema type (the keys of this map) is usedWhether to skip the generation of models for form parametersEnable SmallRye Mutiny support.Type Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be used for a given OAS datatype (the keys of this map)Enable bean validation.Defines, whether the filename should also include the property name in case the `PartFilename` annotation (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) is generated.
-
Method Details
-
skipFormModel
Whether to skip the generation of models for form parameters -
typeMappings
Type Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be used for a given OAS datatype (the keys of this map) -
importMappings
Import Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be imported when a given OAS datatype (the keys of this map) is used -
schemaMappings
Schema Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be imported when a given schema type (the keys of this map) is used -
additionalModelTypeAnnotations
The specified annotations will be added to the generated model files -
additionalEnumTypeUnexpectedMemberAnnotations
@WithName("additional-enum-type-unexpected-member") Optional<Boolean> additionalEnumTypeUnexpectedMemberAnnotations()Defines if the enums should have an `UNEXPECTED` member to convey values that cannot be parsed. Default isfalse. -
additionalApiTypeAnnotations
The specified annotations will be added to the generated api files -
additionalRequestArgs
Add custom/additional HTTP Headers or other args to every request -
returnResponse
Defines if the methods should returnjakarta.ws.rs.core.Responseor a model. Default isfalse. -
enableSecurityGeneration
Defines if security support classes should be generated -
normalizer
Defines the normalizer options. -
supportMutiny
Enable SmallRye Mutiny support. If you set this totrue, all return types will be wrapped inUni. -
mutinyReturnResponse
Defines with SmallRye Mutiny enabled if methods should returnjakarta.ws.rs.core.Responseor a model. Default isfalse. -
mutinyMultiOperationIds
Handles the return type for each operation, depending on the configuration. The following cases are supported:1. If
mutinyis enabled and the operation ID is specified to returnMulti: - The return type will be wrapped inMulti. - Ifmutiny.return-responseis enabled, the return type will beio.smallrye.mutiny.Multi<jakarta.ws.rs.core.Response>. - If the operation has a void return type, it will returnio.smallrye.mutiny.Multi<jakarta.ws.rs.core.Response>. - Otherwise, it will returnio.smallrye.mutiny.Multi<returnType>.2. If
mutinyis enabled and the operation ID is specified to returnUni: - The return type will be wrapped inUni. - Ifmutiny.return-responseis enabled, the return type will beio.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>. - If the operation has a void return type, it will returnio.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>. - Otherwise, it will returnio.smallrye.mutiny.Uni<returnType>.3. If
mutinyis enabled but no specific operation ID is configured forMultiorUni: - The return type defaults toUni. - Ifmutiny.return-responseis enabled, the return type will beio.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>. - If the operation has a void return type, it will returnio.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>. - Otherwise, it will returnio.smallrye.mutiny.Uni<returnType>`. -
generatePartFilename
Defines, whether the `PartFilename` (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) annotation should be generated for MultipartForm POJOs. By setting tofalse, the annotation will not be generated. -
partFilenameValue
Defines the filename for a part in case the `PartFilename` annotation (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) is generated. In case no value is set, the default one is `<fieldName>File` or `file`, depending on theuseFieldNameInPartFilename()configuration. -
useFieldNameInPartFilename
Defines, whether the filename should also include the property name in case the `PartFilename` annotation (org.jboss.resteasy.reactive.PartFilenameororg.jboss.resteasy.annotations.providers.multipart.PartFilename) is generated. -
useBeanValidation
Enable bean validation. If you set this totrue, validation annotations are added to generated sources E.g.@Size. -
generateApis
Enable the generation of APIs. If you set this tofalse, APIs will not be generated. -
generateModels
Enable the generation of models. If you set this tofalse, models will not be generated. -
equalsHashcode
Enable the generation of equals and hashcode in models. If you set this tofalse, the models will not have equals and hashcode.
-