Class JavaMicronautAbstractCodegen
- java.lang.Object
-
- org.openapitools.codegen.DefaultCodegen
-
- org.openapitools.codegen.languages.AbstractJavaCodegen
-
- org.openapitools.codegen.languages.JavaMicronautAbstractCodegen
-
- All Implemented Interfaces:
CodegenConfig
,BeanValidationFeatures
,DocumentationProviderFeatures
,OptionalFeatures
- Direct Known Subclasses:
JavaMicronautClientCodegen
,JavaMicronautServerCodegen
@Deprecated(forRemoval=true) public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, OptionalFeatures
Deprecated, for removal: This API element is subject to removal in a future version.WARNING! This generator is outdated. Please use the official generator for Micronaut: micronaut-openapi with the help of the plugin for Gradle and Maven.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaMicronautAbstractCodegen.SERIALIZATION_LIBRARY_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.-
Nested classes/interfaces inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
AbstractJavaCodegen.ENUM_PROPERTY_NAMING_TYPE
-
Nested classes/interfaces inherited from interface org.openapitools.codegen.languages.features.DocumentationProviderFeatures
DocumentationProviderFeatures.AnnotationLibrary, DocumentationProviderFeatures.DocumentationProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected String
appName
Deprecated, for removal: This API element is subject to removal in a future version.protected String
buildTool
Deprecated, for removal: This API element is subject to removal in a future version.static String
CONTENT_TYPE_ANY
Deprecated, for removal: This API element is subject to removal in a future version.static String
CONTENT_TYPE_APPLICATION_FORM_URLENCODED
Deprecated, for removal: This API element is subject to removal in a future version.static String
CONTENT_TYPE_APPLICATION_JSON
Deprecated, for removal: This API element is subject to removal in a future version.static String
CONTENT_TYPE_MULTIPART_FORM_DATA
Deprecated, for removal: This API element is subject to removal in a future version.static String
DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.static String
DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
generateOperationOnlyForFirstTag
Deprecated, for removal: This API element is subject to removal in a future version.protected String
generateSwaggerAnnotations
Deprecated, for removal: This API element is subject to removal in a future version.protected org.slf4j.Logger
LOGGER
Deprecated, for removal: This API element is subject to removal in a future version.protected String
micronautVersion
Deprecated, for removal: This API element is subject to removal in a future version.static String
OFFSET_DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_APPLICATION_NAME
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_BUILD
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_BUILD_ALL
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_BUILD_GRADLE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_BUILD_MAVEN
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_DATE_LIBRARY_JAVA8
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIME
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_SWAGGER_ANNOTATIONS
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_MICRONAUT_VERSION
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_REACTIVE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_TEST
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_TEST_JUNIT
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_TEST_SPOCK
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_TITLE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_USE_AUTH
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_VISITABLE
Deprecated, for removal: This API element is subject to removal in a future version.static String
OPT_WRAP_IN_HTTP_RESPONSE
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
reactive
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
requiredPropertiesInConstructor
Deprecated, for removal: This API element is subject to removal in a future version.protected String
serializationLibrary
Deprecated, for removal: This API element is subject to removal in a future version.protected String
testTool
Deprecated, for removal: This API element is subject to removal in a future version.protected String
title
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
useOptional
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
visitable
Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
wrapInHttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.-
Fields inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
ADDITIONAL_ENUM_TYPE_ANNOTATIONS, ADDITIONAL_MODEL_TYPE_ANNOTATIONS, ADDITIONAL_ONE_OF_TYPE_ANNOTATIONS, additionalEnumTypeAnnotations, additionalModelTypeAnnotations, additionalOneOfTypeAnnotations, annotationLibrary, apiDocPath, artifactDescription, artifactId, artifactUrl, artifactVersion, BOOLEAN_GETTER_PREFIX, booleanGetterPrefix, CAMEL_CASE_DOLLAR_SIGN, camelCaseDollarSign, CONTAINER_DEFAULT_TO_NULL, containerDefaultToNull, DATE_LIBRARY, dateLibrary, DEFAULT_LIBRARY, DEFAULT_TEST_FOLDER, developerEmail, developerName, developerOrganization, developerOrganizationUrl, DISABLE_HTML_ESCAPING, disableHtmlEscaping, DISCRIMINATOR_CASE_SENSITIVE, discriminatorCaseSensitive, documentationProvider, ENUM_PROPERTY_NAMING_DESC, enumPropertyNaming, GENERATE_BUILDERS, GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, generateBuilders, generateConstructorWithAllArgs, groupId, IGNORE_ANYOF_IN_ENUM, ignoreAnyOfInEnum, IMPLICIT_HEADERS, IMPLICIT_HEADERS_REGEX, implicitHeaders, implicitHeadersRegex, invokerPackage, jackson, JACKSON, JAVAX_PACKAGE, licenseName, licenseUrl, LOMBOK, lombokAnnotations, modelDocPath, OPENAPI_NULLABLE, openApiNullable, outputTestFolder, parentArtifactId, parentGroupId, parentOverridden, parentVersion, projectFolder, projectTestFolder, scmConnection, scmDeveloperConnection, scmUrl, serializableModel, serializeBigDecimalAsString, sourceFolder, SUPPORT_ASYNC, supportAsync, TEST_OUTPUT, testFolder, USE_JAKARTA_EE, USE_ONE_OF_INTERFACES, useBeanValidation, useJakartaEe, WITH_XML, withXml
-
Fields inherited from class org.openapitools.codegen.DefaultCodegen
additionalProperties, addOneOfInterfaceImports, addOneOfInterfaces, addSuffixToDuplicateOperationNicknames, allowUnicodeIdentifiers, apiDocTemplateFiles, apiNamePrefix, apiNameSuffix, apiPackage, apiTemplateFiles, apiTestTemplateFiles, autosetConstants, cliOptions, DefaultFeatureSet, defaultIncludes, disallowAdditionalPropertiesIfNotPresent, docExtension, embeddedTemplateDir, enableMinimalUpdate, enablePostProcessFile, ensureUniqueParams, enumNameMapping, enumUnknownDefaultCase, enumUnknownDefaultCaseName, falseSchema, filesMetadataFilename, fileSuffix, generatorMetadata, gitHost, gitRepoId, gitUserId, hideGenerationTimestamp, httpUserAgent, ignoreFilePathOverride, importBaseType, importContainerType, importMapping, inlineSchemaNameMapping, inlineSchemaOption, inputSpec, instantiationTypes, JSON_MIME_PATTERN, JSON_VENDOR_MIME_PATTERN, languageSpecificPrimitives, legacyDiscriminatorBehavior, library, loadDeepObjectIntoItems, modelDocTemplateFiles, modelNameMapping, modelNamePrefix, modelNameSuffix, modelPackage, modelTemplateFiles, modelTestTemplateFiles, nameMapping, openAPI, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, prependFormOrBodyParameters, releaseNote, removeEnumValuePrefix, removeOperationIdPrefix, removeOperationIdPrefixCount, removeOperationIdPrefixDelimiter, reservedWords, reservedWordsMappings, schemaMapping, serverVariables, skipOperationExample, skipOverwrite, skipSortingOperations, sortModelPropertiesByRequiredFlag, sortParamsByRequiredFlag, specialCharReplacements, strictSpecBehavior, supportedLibraries, supportingFiles, supportsAdditionalPropertiesWithComposedSchema, supportsInheritance, supportsMixins, supportsMultipleInheritance, templateDir, templateOutputDirs, testPackage, trueSchema, typeAliases, typeMapping, useOneOfInterfaces, vendorExtensions, versionMetadataFilename, XML_MIME_PATTERN
-
Fields inherited from interface org.openapitools.codegen.languages.features.BeanValidationFeatures
USE_BEANVALIDATION
-
Fields inherited from interface org.openapitools.codegen.languages.features.DocumentationProviderFeatures
ANNOTATION_LIBRARY, DOCUMENTATION_PROVIDER
-
Fields inherited from interface org.openapitools.codegen.languages.features.OptionalFeatures
USE_OPTIONAL
-
-
Constructor Summary
Constructors Constructor Description JavaMicronautAbstractCodegen()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.google.common.collect.ImmutableMap.Builder<String,com.samskivert.mustache.Mustache.Lambda>
addMustacheLambdas()
Deprecated, for removal: This API element is subject to removal in a future version.Preset map builder with commonly used Mustache lambdas.void
addOperationToGroup(String tag, String resourcePath, io.swagger.v3.oas.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)
Deprecated, for removal: This API element is subject to removal in a future version.Add operation to groupString
apiTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.String
escapeTextGroovy(String text)
Deprecated, for removal: This API element is subject to removal in a future version.CodegenModel
fromModel(String name, io.swagger.v3.oas.models.media.Schema model)
Deprecated, for removal: This API element is subject to removal in a future version.Convert OAS Model object to Codegen Model object.String
getExampleValue(String defaultValue, String example, String dataType, Boolean isModel, List<Object> allowableValues, String itemsType, String itemsExample, List<CodegenProperty> requiredVars, boolean groovy, boolean isProperty)
Deprecated, for removal: This API element is subject to removal in a future version.protected String
getParameterExampleValue(CodegenParameter p, boolean groovy)
Deprecated, for removal: This API element is subject to removal in a future version.protected String
getPropertyExampleValue(CodegenProperty p, boolean groovy)
Deprecated, for removal: This API element is subject to removal in a future version.String
modelTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.void
postProcess()
Deprecated, for removal: This API element is subject to removal in a future version.Map<String,ModelsMap>
postProcessAllModels(Map<String,ModelsMap> objs)
Deprecated, for removal: This API element is subject to removal in a future version.Analyse and post process all Models.OperationsMap
postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)
Deprecated, for removal: This API element is subject to removal in a future version.void
processOpts()
Deprecated, for removal: This API element is subject to removal in a future version.String
sanitizeTag(String tag)
Deprecated, for removal: This API element is subject to removal in a future version.Sanitize tagvoid
setParameterExampleValue(CodegenParameter p)
Deprecated, for removal: This API element is subject to removal in a future version.Return the example value of the parameter.void
setSerializationLibrary(String serializationLibrary)
Deprecated, for removal: This API element is subject to removal in a future version.void
setUseOptional(boolean useOptional)
Deprecated, for removal: This API element is subject to removal in a future version.String
toApiTestFilename(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Return the file name of the Api TestString
toApiVarName(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Return the variable name in the ApiString
toModelTestFilename(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Return the capitalized file name of the model test-
Methods inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
addAdditionPropertiesToCodeGenModel, addImports, addImportsToOneOfInterface, apiDocFileFolder, apiFileFolder, applyJakartaPackage, applyJavaxPackage, escapeQuotationMark, escapeReservedWord, escapeUnsafeCharacters, findByName, fromOperation, getAnnotationLibrary, getDocumentationProvider, getOutputTestFolder, getSchemaType, getSupportedVendorExtensions, getterAndSetterCapitalize, getTypeDeclaration, handleImplicitHeaders, isAddNullableImports, isConstructorWithAllArgsAllowed, isTypeErasedGenerics, modelDocFileFolder, modelFileFolder, needToImport, postProcessFile, postProcessModelProperty, postProcessModels, postProcessResponseWithProperty, preprocessOpenAPI, removeAnnotations, setAnnotationLibrary, setDocumentationProvider, setEnumPropertyNaming, setOutputDir, setParameterExampleValue, setParameterExampleValue, toApiDocFilename, toApiFilename, toArrayDefaultValue, toBooleanGetter, toDefaultParameterValue, toDefaultValue, toEnumName, toEnumValue, toEnumVarName, toExampleValue, toModelDocFilename, toModelFilename, toModelName, toOperationId, toParamName, toRegularExpression, toVarName
-
Methods inherited from class org.openapitools.codegen.DefaultCodegen
addBodyModelSchema, addHeaders, addImport, addImport, addImport, addImports, addImports, addImports, addImportsForPropertyType, additionalProperties, addOneOfInterfaceModel, addOneOfNameExtension, addOption, addOption, addParentContainer, addParentFromContainer, addProperties, addRegularExpressionDelimiter, addRequiredVarsMap, addSwitch, addVars, addVars, addVarsRequiredVarsAdditionalProps, apiDocFilename, apiDocTemplateFiles, apiFilename, apiFilename, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, buildEnumVars, buildLibraryCliOption, cliOptions, convertPropertyToBoolean, convertPropertyToBooleanAndWriteBack, convertPropertyToBooleanAndWriteBack, convertPropertyToStringAndWriteBack, convertPropertyToTypeAndWriteBack, createDiscriminator, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, enumNameMapping, escapeText, escapeTextInSingleQuotes, escapeTextWhileAllowingNewLines, executePostProcessor, fileSuffix, findCommonPrefixOfVars, findMethodResponse, fromCallback, fromFormProperty, fromParameter, fromProperty, fromProperty, fromProperty, fromRequestBody, fromRequestBodyToFormParameters, fromResponse, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generateJSONSpecFile, generateYAMLSpecFile, generatorLanguage, generatorLanguageVersion, getAdditionalPropertiesName, getAddSuffixToDuplicateOperationNicknames, getAlias, getAllModels, getAllOfDescendants, getCollectionFormat, getCollectionFormat, getConsumesInfo, getContent, getContentType, getDisallowAdditionalPropertiesIfNotPresent, getDocExtension, getEnumDefaultValue, getEnumUnknownDefaultCase, getEnumValueForProperty, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHelp, getHttpUserAgent, getIgnoreFilePathOverride, getInnerEnumAllowableValues, getInputSpec, getItemsName, getLegacyDiscriminatorBehavior, getLibrary, getModelNameToSchemaCache, getMostInnerItems, getName, getOneOfAnyOfDescendants, getOpenapiGeneratorIgnoreList, getOrGenerateOperationId, getOutputDir, getParameterDataType, getProducesInfo, getReleaseNote, getSchemaAdditionalProperties, getSchemaFromBooleanOrSchema, getSingleSchemaType, getSymbolName, getTag, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOneOfInterfaces, getUseOpenapiNormalizer, getVersionMetadataFilename, handleConstantParams, handleMethodResponse, handleMethodResponse, handleSpecialCharacters, hasBodyParameter, hasFormParameter, importMapping, initializeSpecialCharacterMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isDataTypeBinary, isDataTypeFile, isDataTypeString, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isJsonMimeType, isJsonVendorMimeType, isLibrary, isParameterNameUnique, isPropertyInnerMostEnum, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isReservedWord, isSkipOperationExample, isSkipOverwrite, isSkipSortingOperations, isStrictSpecBehavior, isXmlMimeType, languageSpecificPrimitives, lowerCamelCase, modelDocTemplateFiles, modelFilename, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, modifyFeatureSet, nameMapping, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, postProcessEnumVars, postProcessModelsEnum, postProcessParameter, postProcessSupportingFileData, postProcessWebhooksWithModels, processCompiler, processOpenAPI, processTemplatingEngine, processTestExampleData, removeImport, removeNonNameElementToCamelCase, removeNonNameElementToCamelCase, removeOption, removeSelfReferenceImports, reservedWords, reservedWordsMappings, sanitizeName, sanitizeName, sanitizeName, schemaMapping, serverVariableOverrides, setAddProps, setCircularReferences, setDocExtension, setEnableMinimalUpdate, setEnablePostProcessFile, setEnumDiscriminatorDefaultValue, setGitHost, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setNonArrayMapProperty, setOpenAPI, setParameterBooleanFlagWithCodegenProperty, setParameterEncodingValues, setParameterExamples, setParameterNullable, setReleaseNote, setRemoveEnumValuePrefix, setRemoveOperationIdPrefix, setReservedWordsLowerCase, setSkipOperationExample, setSkipOverwrite, setSkipSortingOperations, setStrictSpecBehavior, setTemplatingEngine, setUseOneOfInterfaces, shouldAddImport, shouldOverwrite, SortModelPropertiesByRequiredFlag, SortParametersByRequiredFlag, specVersionGreaterThanOrEqualTo310, supportedLibraries, supportingFiles, templateDir, templateOutputDirs, testPackage, toAllOfName, toAnyOfName, toApiImport, toApiName, toArrayModelParamName, toDefaultParameterValue, toDefaultValue, toDefaultValueWithParam, toEnumDefaultValue, toEnumDefaultValue, toExamples, toGetter, toInstantiationType, toMediaTypeSchemaName, toModelImport, toModelImportMap, toOneOfName, toSetter, toTestCaseName, typeMapping, unaliasPropertySchema, unaliasSchema, updateAllModels, updateCodegenPropertyEnum, updateDataTypeWithEnumForArray, updateDataTypeWithEnumForMap, updateEnumVarsWithExtensions, updateModelForAnyType, updateModelForComposedSchema, updateModelForInteger, updateModelForNumber, updateModelForObject, updateModelForString, updateOption, updateParameterForString, updatePropertyForAnyType, updatePropertyForArray, updatePropertyForInteger, updatePropertyForMap, updatePropertyForMap, updatePropertyForNumber, updatePropertyForObject, updatePropertyForString, updateRequestBodyForArray, updateRequestBodyForMap, updateRequestBodyForObject, updateRequestBodyForPrimitiveType, updateRequestBodyForString, useCodegenAsMustacheParentContext, vendorExtensions, writePropertyBack
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openapitools.codegen.languages.features.BeanValidationFeatures
setUseBeanValidation
-
Methods inherited from interface org.openapitools.codegen.CodegenConfig
additionalProperties, apiDocFilename, apiDocTemplateFiles, apiFilename, apiFilename, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, cliOptions, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, enumNameMapping, escapeText, escapeTextWhileAllowingNewLines, fileSuffix, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generatorLanguage, generatorLanguageVersion, getAddSuffixToDuplicateOperationNicknames, getDocExtension, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHelp, getHttpUserAgent, getIgnoreFilePathOverride, getInputSpec, getLibrary, getName, getOpenapiGeneratorIgnoreList, getOutputDir, getReleaseNote, getTag, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOpenapiNormalizer, getVersionMetadataFilename, importMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isSkipOperationExample, isSkipOverwrite, isSkipSortingOperations, isStrictSpecBehavior, languageSpecificPrimitives, modelDocTemplateFiles, modelFilename, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, nameMapping, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, postProcessParameter, postProcessSupportingFileData, postProcessWebhooksWithModels, processCompiler, processOpenAPI, processTemplatingEngine, reservedWords, reservedWordsMappings, sanitizeName, schemaMapping, serverVariableOverrides, setDocExtension, setEnableMinimalUpdate, setEnablePostProcessFile, setGitHost, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setOpenAPI, setReleaseNote, setRemoveEnumValuePrefix, setRemoveOperationIdPrefix, setSkipOperationExample, setSkipOverwrite, setSkipSortingOperations, setStrictSpecBehavior, setTemplatingEngine, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, templateOutputDirs, testPackage, toApiImport, toApiName, toGetter, toModelImport, toModelImportMap, toSetter, typeMapping, unaliasSchema, updateAllModels, vendorExtensions
-
Methods inherited from interface org.openapitools.codegen.languages.features.DocumentationProviderFeatures
defaultDocumentationProvider, supportedAnnotationLibraries, supportedDocumentationProvider
-
-
-
-
Field Detail
-
OPT_TITLE
public static final String OPT_TITLE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_BUILD
public static final String OPT_BUILD
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_BUILD_GRADLE
public static final String OPT_BUILD_GRADLE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_BUILD_MAVEN
public static final String OPT_BUILD_MAVEN
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_BUILD_ALL
public static final String OPT_BUILD_ALL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_TEST
public static final String OPT_TEST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_TEST_JUNIT
public static final String OPT_TEST_JUNIT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_TEST_SPOCK
public static final String OPT_TEST_SPOCK
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR
public static final String OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_MICRONAUT_VERSION
public static final String OPT_MICRONAUT_VERSION
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_USE_AUTH
public static final String OPT_USE_AUTH
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_VISITABLE
public static final String OPT_VISITABLE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_DATE_LIBRARY_JAVA8
public static final String OPT_DATE_LIBRARY_JAVA8
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIME
public static final String OPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_DATE_FORMAT
public static final String OPT_DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_DATETIME_FORMAT
public static final String OPT_DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_REACTIVE
public static final String OPT_REACTIVE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_WRAP_IN_HTTP_RESPONSE
public static final String OPT_WRAP_IN_HTTP_RESPONSE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_APPLICATION_NAME
public static final String OPT_APPLICATION_NAME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_SWAGGER_ANNOTATIONS
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG
public static final String OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
LOGGER
protected final org.slf4j.Logger LOGGER
Deprecated, for removal: This API element is subject to removal in a future version.
-
title
protected String title
Deprecated, for removal: This API element is subject to removal in a future version.
-
useOptional
protected boolean useOptional
Deprecated, for removal: This API element is subject to removal in a future version.
-
visitable
protected boolean visitable
Deprecated, for removal: This API element is subject to removal in a future version.
-
buildTool
protected String buildTool
Deprecated, for removal: This API element is subject to removal in a future version.
-
testTool
protected String testTool
Deprecated, for removal: This API element is subject to removal in a future version.
-
requiredPropertiesInConstructor
protected boolean requiredPropertiesInConstructor
Deprecated, for removal: This API element is subject to removal in a future version.
-
micronautVersion
protected String micronautVersion
Deprecated, for removal: This API element is subject to removal in a future version.
-
reactive
protected boolean reactive
Deprecated, for removal: This API element is subject to removal in a future version.
-
wrapInHttpResponse
protected boolean wrapInHttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.
-
appName
protected String appName
Deprecated, for removal: This API element is subject to removal in a future version.
-
generateSwaggerAnnotations
protected String generateSwaggerAnnotations
Deprecated, for removal: This API element is subject to removal in a future version.
-
generateOperationOnlyForFirstTag
protected boolean generateOperationOnlyForFirstTag
Deprecated, for removal: This API element is subject to removal in a future version.
-
serializationLibrary
protected String serializationLibrary
Deprecated, for removal: This API element is subject to removal in a future version.
-
CONTENT_TYPE_APPLICATION_FORM_URLENCODED
public static final String CONTENT_TYPE_APPLICATION_FORM_URLENCODED
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
CONTENT_TYPE_APPLICATION_JSON
public static final String CONTENT_TYPE_APPLICATION_JSON
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
CONTENT_TYPE_MULTIPART_FORM_DATA
public static final String CONTENT_TYPE_MULTIPART_FORM_DATA
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
CONTENT_TYPE_ANY
public static final String CONTENT_TYPE_ANY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
DATE_FORMAT
public static final String DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
DATETIME_FORMAT
public static final String DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
OFFSET_DATETIME_FORMAT
public static final String OFFSET_DATETIME_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
processOpts
public void processOpts()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
processOpts
in interfaceCodegenConfig
- Overrides:
processOpts
in classAbstractJavaCodegen
-
apiTestFileFolder
public String apiTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
apiTestFileFolder
in interfaceCodegenConfig
- Overrides:
apiTestFileFolder
in classAbstractJavaCodegen
-
modelTestFileFolder
public String modelTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
modelTestFileFolder
in interfaceCodegenConfig
- Overrides:
modelTestFileFolder
in classAbstractJavaCodegen
-
toApiTestFilename
public String toApiTestFilename(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Return the file name of the Api Test- Specified by:
toApiTestFilename
in interfaceCodegenConfig
- Overrides:
toApiTestFilename
in classAbstractJavaCodegen
- Parameters:
name
- the file name of the Api- Returns:
- the file name of the Api
-
toModelTestFilename
public String toModelTestFilename(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Return the capitalized file name of the model test- Specified by:
toModelTestFilename
in interfaceCodegenConfig
- Overrides:
toModelTestFilename
in classAbstractJavaCodegen
- Parameters:
name
- the model name- Returns:
- the file name of the model
-
setUseOptional
public void setUseOptional(boolean useOptional)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setUseOptional
in interfaceOptionalFeatures
-
toApiVarName
public String toApiVarName(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Return the variable name in the Api- Specified by:
toApiVarName
in interfaceCodegenConfig
- Overrides:
toApiVarName
in classDefaultCodegen
- Parameters:
name
- the variable name of the Api- Returns:
- the snake-cased variable name
-
sanitizeTag
public String sanitizeTag(String tag)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Sanitize tag- Specified by:
sanitizeTag
in interfaceCodegenConfig
- Overrides:
sanitizeTag
in classAbstractJavaCodegen
- Parameters:
tag
- Tag- Returns:
- Sanitized tag
-
addOperationToGroup
public void addOperationToGroup(String tag, String resourcePath, io.swagger.v3.oas.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Add operation to group- Specified by:
addOperationToGroup
in interfaceCodegenConfig
- Overrides:
addOperationToGroup
in classDefaultCodegen
- Parameters:
tag
- name of the tagresourcePath
- path of the resourceoperation
- OAS Operation objectco
- Codegen Operation objectoperations
- map of Codegen operations
-
postProcessOperationsWithModels
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
postProcessOperationsWithModels
in interfaceCodegenConfig
- Overrides:
postProcessOperationsWithModels
in classAbstractJavaCodegen
-
fromModel
public CodegenModel fromModel(String name, io.swagger.v3.oas.models.media.Schema model)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Convert OAS Model object to Codegen Model object.- Specified by:
fromModel
in interfaceCodegenConfig
- Overrides:
fromModel
in classAbstractJavaCodegen
- Parameters:
name
- the name of the modelmodel
- OAS Model object- Returns:
- Codegen Model object
-
postProcessAllModels
public Map<String,ModelsMap> postProcessAllModels(Map<String,ModelsMap> objs)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractJavaCodegen
Analyse and post process all Models.- Specified by:
postProcessAllModels
in interfaceCodegenConfig
- Overrides:
postProcessAllModels
in classAbstractJavaCodegen
- Parameters:
objs
- the models map.- Returns:
- the processed models map.
-
setParameterExampleValue
public void setParameterExampleValue(CodegenParameter p)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Return the example value of the parameter.- Overrides:
setParameterExampleValue
in classAbstractJavaCodegen
- Parameters:
p
- Codegen parameter
-
getParameterExampleValue
protected String getParameterExampleValue(CodegenParameter p, boolean groovy)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyExampleValue
protected String getPropertyExampleValue(CodegenProperty p, boolean groovy)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getExampleValue
public String getExampleValue(String defaultValue, String example, String dataType, Boolean isModel, List<Object> allowableValues, String itemsType, String itemsExample, List<CodegenProperty> requiredVars, boolean groovy, boolean isProperty)
Deprecated, for removal: This API element is subject to removal in a future version.
-
escapeTextGroovy
public String escapeTextGroovy(String text)
Deprecated, for removal: This API element is subject to removal in a future version.
-
addMustacheLambdas
protected com.google.common.collect.ImmutableMap.Builder<String,com.samskivert.mustache.Mustache.Lambda> addMustacheLambdas()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:DefaultCodegen
Preset map builder with commonly used Mustache lambdas. To extend the map, override addMustacheLambdas(), call parent method first and then add additional lambdas to the returned builder. If common lambdas are not desired, override addMustacheLambdas() method and return empty builder.- Overrides:
addMustacheLambdas
in classDefaultCodegen
- Returns:
- preinitialized map with common lambdas
-
setSerializationLibrary
public void setSerializationLibrary(String serializationLibrary)
Deprecated, for removal: This API element is subject to removal in a future version.
-
postProcess
public void postProcess()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
postProcess
in interfaceCodegenConfig
- Overrides:
postProcess
in classDefaultCodegen
-
-