Interface CodegenConfig
- All Superinterfaces:
CommonItemConfig,GlobalCodegenConfig
@ConfigRoot(phase=BUILD_TIME)
@ConfigMapping(prefix="quarkus.openapi-generator.codegen")
public interface CodegenConfig
extends GlobalCodegenConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBuildTimeSpecPropertyPrefix(Path openApiFilePath) Gets the config prefix for a given OpenAPI file in the path.static StringgetGlobalConfigName(CodegenConfig.ConfigName configName) Return global config name, openapi-generator.codegen.config-namestatic StringgetSanitizedFileName(Path openApiFilePath) static StringgetSpecConfigName(CodegenConfig.ConfigName configName, Path openApiFilePath) Return spec config name openapi-generator.codegen.spec.static StringgetSpecConfigNameByConfigKey(String configKey, CodegenConfig.ConfigName configName) Return spec config name by config-key (openapi-generator.codegen.spec.static StringresolveApiPackage(String basePackage) static StringresolveModelPackage(String basePackage) specItem()OpenAPI Spec details for codegen configuration.Methods inherited from interface io.quarkiverse.openapi.generator.deployment.CommonItemConfig
additionalApiTypeAnnotations, additionalEnumTypeUnexpectedMemberAnnotations, additionalModelTypeAnnotations, additionalRequestArgs, enableSecurityGeneration, equalsHashcode, generateApis, generateModels, generatePartFilename, importMappings, mutinyMultiOperationIds, mutinyReturnResponse, normalizer, partFilenameValue, returnResponse, schemaMappings, skipFormModel, supportMutiny, typeMappings, useBeanValidation, useFieldNameInPartFilenameMethods inherited from interface io.quarkiverse.openapi.generator.deployment.GlobalCodegenConfig
defaultSecuritySchema, exclude, include, inputBaseDir, templateBaseDir, validateSpec, verbose
-
Field Details
-
CODEGEN_TIME_CONFIG_PREFIX
- See Also:
-
API_PKG_SUFFIX
- See Also:
-
MODEL_PKG_SUFFIX
- See Also:
-
ADDITIONAL_ENUM_TYPE_UNEXPECTED_MEMBER_NAME_DEFAULT
- See Also:
-
ADDITIONAL_ENUM_TYPE_UNEXPECTED_MEMBER_STRING_VALUE_DEFAULT
- See Also:
-
BUILD_TIME_GLOBAL_PREFIX_FORMAT
- See Also:
-
BUILD_TIME_SPEC_PREFIX_FORMAT
- See Also:
-
SUPPORTED_CONFIGURATIONS
-
-
Method Details
-
specItem
OpenAPI Spec details for codegen configuration. -
resolveApiPackage
-
resolveModelPackage
-
getGlobalConfigName
Return global config name, openapi-generator.codegen.config-name -
getSpecConfigName
Return spec config name openapi-generator.codegen.spec.%s.config-name -
getSpecConfigNameByConfigKey
Return spec config name by config-key (openapi-generator.codegen.spec.%s.config-key) property. For example, given a configurationquarkus.openapi.generator.codegen.spec.spec_yaml.config-key=petstore, the returned value isopenapi.generator.codegen.spec.petstore.mutiny. -
getBuildTimeSpecPropertyPrefix
Gets the config prefix for a given OpenAPI file in the path. For example, given a path like /home/luke/projects/petstore.json, the returned value is `quarkus.openapi-generator."petstore_json"`. Every the periods (.) in the file name will be replaced by underscore (_). -
getSanitizedFileName
-