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 classJavaMicronautAbstractCodegen.SERIALIZATION_LIBRARY_TYPEDeprecated, 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 StringappNameDeprecated, for removal: This API element is subject to removal in a future version.protected StringbuildToolDeprecated, for removal: This API element is subject to removal in a future version.static StringCONTENT_TYPE_ANYDeprecated, for removal: This API element is subject to removal in a future version.static StringCONTENT_TYPE_APPLICATION_FORM_URLENCODEDDeprecated, for removal: This API element is subject to removal in a future version.static StringCONTENT_TYPE_APPLICATION_JSONDeprecated, for removal: This API element is subject to removal in a future version.static StringCONTENT_TYPE_MULTIPART_FORM_DATADeprecated, for removal: This API element is subject to removal in a future version.static StringDATE_FORMATDeprecated, for removal: This API element is subject to removal in a future version.static StringDATETIME_FORMATDeprecated, for removal: This API element is subject to removal in a future version.protected booleangenerateOperationOnlyForFirstTagDeprecated, for removal: This API element is subject to removal in a future version.protected StringgenerateSwaggerAnnotationsDeprecated, for removal: This API element is subject to removal in a future version.protected org.slf4j.LoggerLOGGERDeprecated, for removal: This API element is subject to removal in a future version.protected StringmicronautVersionDeprecated, for removal: This API element is subject to removal in a future version.static StringOFFSET_DATETIME_FORMATDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_APPLICATION_NAMEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_BUILDDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_BUILD_ALLDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_BUILD_GRADLEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_BUILD_MAVENDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_DATE_FORMATDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_DATE_LIBRARY_JAVA8Deprecated, for removal: This API element is subject to removal in a future version.static StringOPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIMEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_DATETIME_FORMATDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAGDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_SWAGGER_ANNOTATIONSDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_SWAGGER_ANNOTATIONS_FALSEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1Deprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2Deprecated, for removal: This API element is subject to removal in a future version.static StringOPT_GENERATE_SWAGGER_ANNOTATIONS_TRUEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_MICRONAUT_VERSIONDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_REACTIVEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_REQUIRED_PROPERTIES_IN_CONSTRUCTORDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_TESTDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_TEST_JUNITDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_TEST_SPOCKDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_TITLEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_USE_AUTHDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_VISITABLEDeprecated, for removal: This API element is subject to removal in a future version.static StringOPT_WRAP_IN_HTTP_RESPONSEDeprecated, for removal: This API element is subject to removal in a future version.protected booleanreactiveDeprecated, for removal: This API element is subject to removal in a future version.protected booleanrequiredPropertiesInConstructorDeprecated, for removal: This API element is subject to removal in a future version.protected StringserializationLibraryDeprecated, for removal: This API element is subject to removal in a future version.protected StringtestToolDeprecated, for removal: This API element is subject to removal in a future version.protected StringtitleDeprecated, for removal: This API element is subject to removal in a future version.protected booleanuseOptionalDeprecated, for removal: This API element is subject to removal in a future version.protected booleanvisitableDeprecated, for removal: This API element is subject to removal in a future version.protected booleanwrapInHttpResponseDeprecated, 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, defaultToEmptyContainer, 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.voidaddOperationToGroup(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 groupStringapiTestFileFolder()Deprecated, for removal: This API element is subject to removal in a future version.StringescapeTextGroovy(String text)Deprecated, for removal: This API element is subject to removal in a future version.CodegenModelfromModel(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.StringgetExampleValue(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 StringgetParameterExampleValue(CodegenParameter p, boolean groovy)Deprecated, for removal: This API element is subject to removal in a future version.protected StringgetPropertyExampleValue(CodegenProperty p, boolean groovy)Deprecated, for removal: This API element is subject to removal in a future version.StringmodelTestFileFolder()Deprecated, for removal: This API element is subject to removal in a future version.voidpostProcess()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.OperationsMappostProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)Deprecated, for removal: This API element is subject to removal in a future version.voidprocessOpts()Deprecated, for removal: This API element is subject to removal in a future version.StringsanitizeTag(String tag)Deprecated, for removal: This API element is subject to removal in a future version.Sanitize tagvoidsetParameterExampleValue(CodegenParameter p)Deprecated, for removal: This API element is subject to removal in a future version.Return the example value of the parameter.voidsetSerializationLibrary(String serializationLibrary)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUseOptional(boolean useOptional)Deprecated, for removal: This API element is subject to removal in a future version.StringtoApiTestFilename(String name)Deprecated, for removal: This API element is subject to removal in a future version.Return the file name of the Api TestStringtoApiVarName(String name)Deprecated, for removal: This API element is subject to removal in a future version.Return the variable name in the ApiStringtoModelTestFilename(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, sanitizeDataType, 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:
processOptsin interfaceCodegenConfig- Overrides:
processOptsin classAbstractJavaCodegen
-
apiTestFileFolder
public String apiTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
apiTestFileFolderin interfaceCodegenConfig- Overrides:
apiTestFileFolderin classAbstractJavaCodegen
-
modelTestFileFolder
public String modelTestFileFolder()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
modelTestFileFolderin interfaceCodegenConfig- Overrides:
modelTestFileFolderin 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:DefaultCodegenReturn the file name of the Api Test- Specified by:
toApiTestFilenamein interfaceCodegenConfig- Overrides:
toApiTestFilenamein 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:DefaultCodegenReturn the capitalized file name of the model test- Specified by:
toModelTestFilenamein interfaceCodegenConfig- Overrides:
toModelTestFilenamein 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:
setUseOptionalin 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:DefaultCodegenReturn the variable name in the Api- Specified by:
toApiVarNamein interfaceCodegenConfig- Overrides:
toApiVarNamein 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:DefaultCodegenSanitize tag- Specified by:
sanitizeTagin interfaceCodegenConfig- Overrides:
sanitizeTagin 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:DefaultCodegenAdd operation to group- Specified by:
addOperationToGroupin interfaceCodegenConfig- Overrides:
addOperationToGroupin 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:
postProcessOperationsWithModelsin interfaceCodegenConfig- Overrides:
postProcessOperationsWithModelsin 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:DefaultCodegenConvert OAS Model object to Codegen Model object.- Specified by:
fromModelin interfaceCodegenConfig- Overrides:
fromModelin 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:AbstractJavaCodegenAnalyse and post process all Models.- Specified by:
postProcessAllModelsin interfaceCodegenConfig- Overrides:
postProcessAllModelsin 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:DefaultCodegenReturn the example value of the parameter.- Overrides:
setParameterExampleValuein 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:DefaultCodegenPreset 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. Corresponding user documentation: docs/templating.md, section "Mustache Lambdas"- Overrides:
addMustacheLambdasin 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:
postProcessin interfaceCodegenConfig- Overrides:
postProcessin classDefaultCodegen
-
-