[Micronaut] Improvements for Server and Client (#12297)

* Add the applicationName parameter to support generation of multiple clients

* Change indentation in application.yml to double-space

* Update swagger annotations version, and option to choose not to generate the annotations

* Generate operations only in the first defined tag class for micronaut server

* Improve micronaut client options by setting the correct default values in the JavaMicronautAbstractCodegen constructor

* Fix visitor pattern having abstract method in non-abstract class. Update samples

* Update server sample FILES

* Minor refactor

* Fix for context path
This commit is contained in:
Andriy Dmytruk 2022-05-18 14:03:45 -04:00 committed by GitHub
parent 3597621fbc
commit 0ad970f4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
138 changed files with 1615 additions and 1445 deletions

View File

@ -22,8 +22,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|additionalModelTypeAnnotations|Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)| |null| |additionalModelTypeAnnotations|Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)| |null|
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|apiPackage|package for generated api classes| |org.openapitools.api| |apiPackage|package for generated api classes| |org.openapitools.api|
|applicationName|Micronaut application name (Defaults to the artifactId value)| |openapi-micronaut-client|
|artifactDescription|artifact description in generated pom.xml| |OpenAPI Java| |artifactDescription|artifact description in generated pom.xml| |OpenAPI Java|
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-micronaut| |artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-micronaut-client|
|artifactUrl|artifact URL in generated pom.xml| |https://github.com/openapitools/openapi-generator| |artifactUrl|artifact URL in generated pom.xml| |https://github.com/openapitools/openapi-generator|
|artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename| |1.0.0| |artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename| |1.0.0|
|bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.| |false| |bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.| |false|
@ -43,6 +44,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false| |enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false| |fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
|generateOperationOnlyForFirstTag|When false, the operation method will be duplicated in each of the tags if multiple tags are assigned to this operation. If true, each operation will be generated only once in the first assigned tag.| |false|
|generateSwaggerAnnotations|Specify if you want to generate swagger annotations and which version|<dl><dt>**swagger2**</dt><dd>Use io.swagger.core.v3:swagger-annotations for annotating operations and schemas</dd><dt>**true**</dt><dd>Equivalent to &quot;swagger2&quot;</dd><dt>**false**</dt><dd>Do not generate swagger annotations</dd><dt>**swagger1**</dt><dd>Use io.swagger:swagger-annotations for annotating operations and schemas</dd></dl>|false|
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
@ -52,7 +55,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|
|licenseUrl|The URL of the license| |http://unlicense.org| |licenseUrl|The URL of the license| |http://unlicense.org|
|micronautVersion|Micronaut version, only &gt;=3.0.0 versions are supported| |3.3.1| |micronautVersion|Micronaut version, only &gt;=3.0.0 versions are supported| |3.4.3|
|modelPackage|package for generated models| |org.openapitools.model| |modelPackage|package for generated models| |org.openapitools.model|
|openApiNullable|Enable OpenAPI Jackson Nullable library| |true| |openApiNullable|Enable OpenAPI Jackson Nullable library| |true|
|parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| |parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|

View File

@ -21,6 +21,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|additionalEnumTypeAnnotations|Additional annotations for enum type(class level annotations)| |null| |additionalEnumTypeAnnotations|Additional annotations for enum type(class level annotations)| |null|
|additionalModelTypeAnnotations|Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)| |null| |additionalModelTypeAnnotations|Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)| |null|
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|applicationName|Micronaut application name (Defaults to the artifactId value)| |openapi-micronaut|
|artifactDescription|artifact description in generated pom.xml| |OpenAPI Java| |artifactDescription|artifact description in generated pom.xml| |OpenAPI Java|
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-micronaut| |artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename| |openapi-micronaut|
|artifactUrl|artifact URL in generated pom.xml| |https://github.com/openapitools/openapi-generator| |artifactUrl|artifact URL in generated pom.xml| |https://github.com/openapitools/openapi-generator|
@ -44,7 +45,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false| |fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
|generateControllerAsAbstract|Generate an abstract class for controller to be extended. (apiPackage is then used for the abstract class, and controllerPackage is used for implementation that extends it.)| |false| |generateControllerAsAbstract|Generate an abstract class for controller to be extended. (apiPackage is then used for the abstract class, and controllerPackage is used for implementation that extends it.)| |false|
|generateControllerFromExamples|Generate the implementation of controller and tests from parameter and return examples that will verify that the api works as desired (for testing)| |false| |generateControllerFromExamples|Generate the implementation of controller and tests from parameter and return examples that will verify that the api works as desired (for testing)| |false|
|generateOperationOnlyForFirstTag|When false, the operation method will be duplicated in each of the tags if multiple tags are assigned to this operation. If true, each operation will be generated only once in the first assigned tag.| |true|
|generateOperationsToReturnNotImplemented|Return HTTP 501 Not Implemented instead of an empty response in the generated controller methods.| |true| |generateOperationsToReturnNotImplemented|Return HTTP 501 Not Implemented instead of an empty response in the generated controller methods.| |true|
|generateSwaggerAnnotations|Specify if you want to generate swagger annotations and which version|<dl><dt>**swagger2**</dt><dd>Use io.swagger.core.v3:swagger-annotations for annotating operations and schemas</dd><dt>**true**</dt><dd>Equivalent to &quot;swagger2&quot;</dd><dt>**false**</dt><dd>Do not generate swagger annotations</dd><dt>**swagger1**</dt><dd>Use io.swagger:swagger-annotations for annotating operations and schemas</dd></dl>|swagger2|
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
@ -54,7 +57,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|
|licenseUrl|The URL of the license| |http://unlicense.org| |licenseUrl|The URL of the license| |http://unlicense.org|
|micronautVersion|Micronaut version, only &gt;=3.0.0 versions are supported| |3.3.1| |micronautVersion|Micronaut version, only &gt;=3.0.0 versions are supported| |3.4.3|
|modelPackage|package for generated models| |org.openapitools.model| |modelPackage|package for generated models| |org.openapitools.model|
|openApiNullable|Enable OpenAPI Jackson Nullable library| |true| |openApiNullable|Enable OpenAPI Jackson Nullable library| |true|
|parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| |parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null|

View File

@ -1,5 +1,7 @@
package org.openapitools.codegen.languages; package org.openapitools.codegen.languages;
import io.swagger.v3.oas.models.Operation;
import io.swagger.v3.oas.models.media.Schema;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.openapitools.codegen.*; import org.openapitools.codegen.*;
import org.openapitools.codegen.languages.features.BeanValidationFeatures; import org.openapitools.codegen.languages.features.BeanValidationFeatures;
@ -10,11 +12,15 @@ import org.openapitools.codegen.model.ModelMap;
import org.openapitools.codegen.model.ModelsMap; import org.openapitools.codegen.model.ModelsMap;
import org.openapitools.codegen.model.OperationMap; import org.openapitools.codegen.model.OperationMap;
import org.openapitools.codegen.model.OperationsMap; import org.openapitools.codegen.model.OperationsMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static org.openapitools.codegen.CodegenConstants.INVOKER_PACKAGE; import static org.openapitools.codegen.CodegenConstants.INVOKER_PACKAGE;
import static org.openapitools.codegen.utils.StringUtils.camelize;
import static org.openapitools.codegen.utils.StringUtils.underscore;
public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, OptionalFeatures { public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, OptionalFeatures {
public static final String OPT_TITLE = "title"; public static final String OPT_TITLE = "title";
@ -35,6 +41,15 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
public static final String OPT_DATETIME_FORMAT = "datetimeFormat"; public static final String OPT_DATETIME_FORMAT = "datetimeFormat";
public static final String OPT_REACTIVE = "reactive"; public static final String OPT_REACTIVE = "reactive";
public static final String OPT_WRAP_IN_HTTP_RESPONSE = "wrapInHttpResponse"; public static final String OPT_WRAP_IN_HTTP_RESPONSE = "wrapInHttpResponse";
public static final String OPT_APPLICATION_NAME = "applicationName";
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS = "generateSwaggerAnnotations";
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1 = "swagger1";
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2 = "swagger2";
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE = "true";
public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE = "false";
public static final String OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG = "generateOperationOnlyForFirstTag";
protected final Logger LOGGER = LoggerFactory.getLogger(JavaMicronautAbstractCodegen.class);
protected String title; protected String title;
protected boolean useBeanValidation; protected boolean useBeanValidation;
@ -46,6 +61,9 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
protected String micronautVersion; protected String micronautVersion;
protected boolean reactive; protected boolean reactive;
protected boolean wrapInHttpResponse; protected boolean wrapInHttpResponse;
protected String appName;
protected String generateSwaggerAnnotations;
protected boolean generateOperationOnlyForFirstTag;
public static final String CONTENT_TYPE_APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded"; public static final String CONTENT_TYPE_APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
public static final String CONTENT_TYPE_APPLICATION_JSON = "application/json"; public static final String CONTENT_TYPE_APPLICATION_JSON = "application/json";
@ -64,18 +82,24 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
visitable = false; visitable = false;
buildTool = OPT_BUILD_ALL; buildTool = OPT_BUILD_ALL;
testTool = OPT_TEST_JUNIT; testTool = OPT_TEST_JUNIT;
outputFolder = "generated-code/java-micronaut-client"; outputFolder = this instanceof JavaMicronautClientCodegen ?
"generated-code/java-micronaut-client" : "generated-code/java-micronaut";
apiPackage = "org.openapitools.api"; apiPackage = "org.openapitools.api";
modelPackage = "org.openapitools.model"; modelPackage = "org.openapitools.model";
invokerPackage = "org.openapitools"; invokerPackage = "org.openapitools";
artifactId = "openapi-micronaut"; artifactId = this instanceof JavaMicronautClientCodegen ?
"openapi-micronaut-client" : "openapi-micronaut";
embeddedTemplateDir = templateDir = "java-micronaut"; embeddedTemplateDir = templateDir = "java-micronaut";
apiDocPath = "docs/apis"; apiDocPath = "docs/apis";
modelDocPath = "docs/models"; modelDocPath = "docs/models";
dateLibrary = OPT_DATE_LIBRARY_JAVA8; dateLibrary = OPT_DATE_LIBRARY_JAVA8;
micronautVersion = "3.3.1"; micronautVersion = "3.4.3";
reactive = true; reactive = true;
wrapInHttpResponse = false; wrapInHttpResponse = false;
appName = artifactId;
generateSwaggerAnnotations = this instanceof JavaMicronautClientCodegen ?
OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE : OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2;
generateOperationOnlyForFirstTag = this instanceof JavaMicronautServerCodegen;
// Set implemented features for user information // Set implemented features for user information
modifyFeatureSet(features -> features modifyFeatureSet(features -> features
@ -106,12 +130,15 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
cliOptions.add(new CliOption(OPT_TITLE, "Client service name").defaultValue(title)); cliOptions.add(new CliOption(OPT_TITLE, "Client service name").defaultValue(title));
cliOptions.add(new CliOption(OPT_MICRONAUT_VERSION, "Micronaut version, only >=3.0.0 versions are supported").defaultValue(micronautVersion)); cliOptions.add(new CliOption(OPT_MICRONAUT_VERSION, "Micronaut version, only >=3.0.0 versions are supported").defaultValue(micronautVersion));
cliOptions.add(new CliOption(OPT_APPLICATION_NAME, "Micronaut application name (Defaults to the " + CodegenConstants.ARTIFACT_ID + " value)").defaultValue(appName));
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations", useBeanValidation)); cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations", useBeanValidation));
cliOptions.add(CliOption.newBoolean(USE_OPTIONAL, "Use Optional container for optional parameters", useOptional)); cliOptions.add(CliOption.newBoolean(USE_OPTIONAL, "Use Optional container for optional parameters", useOptional));
cliOptions.add(CliOption.newBoolean(OPT_VISITABLE, "Generate visitor for subtypes with a discriminator", visitable)); cliOptions.add(CliOption.newBoolean(OPT_VISITABLE, "Generate visitor for subtypes with a discriminator", visitable));
cliOptions.add(CliOption.newBoolean(OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR, "Allow only to create models with all the required properties provided in constructor", requiredPropertiesInConstructor)); cliOptions.add(CliOption.newBoolean(OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR, "Allow only to create models with all the required properties provided in constructor", requiredPropertiesInConstructor));
cliOptions.add(CliOption.newBoolean(OPT_REACTIVE, "Make the responses use Reactor Mono as wrapper", reactive)); cliOptions.add(CliOption.newBoolean(OPT_REACTIVE, "Make the responses use Reactor Mono as wrapper", reactive));
cliOptions.add(CliOption.newBoolean(OPT_WRAP_IN_HTTP_RESPONSE, "Wrap the response in HttpResponse object", wrapInHttpResponse)); cliOptions.add(CliOption.newBoolean(OPT_WRAP_IN_HTTP_RESPONSE, "Wrap the response in HttpResponse object", wrapInHttpResponse));
cliOptions.add(CliOption.newBoolean(OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG, "When false, the operation method will be duplicated in each of the tags if multiple tags are assigned to this operation. " +
"If true, each operation will be generated only once in the first assigned tag.", generateOperationOnlyForFirstTag));
CliOption buildToolOption = new CliOption(OPT_BUILD, "Specify for which build tool to generate files").defaultValue(buildTool); CliOption buildToolOption = new CliOption(OPT_BUILD, "Specify for which build tool to generate files").defaultValue(buildTool);
Map<String, String> buildToolOptionMap = new HashMap<>(); Map<String, String> buildToolOptionMap = new HashMap<>();
@ -128,6 +155,15 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
testToolOption.setEnum(testToolOptionMap); testToolOption.setEnum(testToolOptionMap);
cliOptions.add(testToolOption); cliOptions.add(testToolOption);
CliOption generateSwaggerAnnotationsOption = new CliOption(OPT_GENERATE_SWAGGER_ANNOTATIONS, "Specify if you want to generate swagger annotations and which version").defaultValue(generateSwaggerAnnotations);
Map<String, String> generateSwaggerAnnotationsOptionMap = new HashMap<>();
generateSwaggerAnnotationsOptionMap.put(OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1, "Use io.swagger:swagger-annotations for annotating operations and schemas");
generateSwaggerAnnotationsOptionMap.put(OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2, "Use io.swagger.core.v3:swagger-annotations for annotating operations and schemas");
generateSwaggerAnnotationsOptionMap.put(OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE, "Equivalent to \"" + OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2 + "\"");
generateSwaggerAnnotationsOptionMap.put(OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE, "Do not generate swagger annotations");
generateSwaggerAnnotationsOption.setEnum(generateSwaggerAnnotationsOptionMap);
cliOptions.add(generateSwaggerAnnotationsOption);
cliOptions.add(new CliOption(OPT_DATE_FORMAT, "Specify the format pattern of date as a string")); cliOptions.add(new CliOption(OPT_DATE_FORMAT, "Specify the format pattern of date as a string"));
cliOptions.add(new CliOption(OPT_DATETIME_FORMAT, "Specify the format pattern of date-time as a string")); cliOptions.add(new CliOption(OPT_DATETIME_FORMAT, "Specify the format pattern of date-time as a string"));
@ -168,6 +204,12 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
additionalProperties.put(OPT_MICRONAUT_VERSION, micronautVersion); additionalProperties.put(OPT_MICRONAUT_VERSION, micronautVersion);
} }
if (additionalProperties.containsKey(OPT_APPLICATION_NAME)) {
appName = (String) additionalProperties.get(OPT_APPLICATION_NAME);
} else {
additionalProperties.put(OPT_APPLICATION_NAME, artifactId);
}
// Get boolean properties // Get boolean properties
if (additionalProperties.containsKey(USE_BEANVALIDATION)) { if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION)); this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
@ -199,6 +241,11 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
} }
writePropertyBack(OPT_WRAP_IN_HTTP_RESPONSE, wrapInHttpResponse); writePropertyBack(OPT_WRAP_IN_HTTP_RESPONSE, wrapInHttpResponse);
if (additionalProperties.containsKey(OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG)) {
this.generateOperationOnlyForFirstTag = convertPropertyToBoolean(OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG);
}
writePropertyBack(OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG, generateOperationOnlyForFirstTag);
// Get enum properties // Get enum properties
if (additionalProperties.containsKey(OPT_BUILD)) { if (additionalProperties.containsKey(OPT_BUILD)) {
switch ((String) additionalProperties.get(OPT_BUILD)) { switch ((String) additionalProperties.get(OPT_BUILD)) {
@ -230,6 +277,29 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
additionalProperties.put("isTestSpock", true); additionalProperties.put("isTestSpock", true);
} }
if (additionalProperties.containsKey(OPT_GENERATE_SWAGGER_ANNOTATIONS)) {
String value = String.valueOf(additionalProperties.get(OPT_GENERATE_SWAGGER_ANNOTATIONS));
switch (value) {
case OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1:
this.generateSwaggerAnnotations = OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1;
break;
case OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2:
case OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE:
this.generateSwaggerAnnotations = OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2;
break;
case OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE:
this.generateSwaggerAnnotations = OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE;
break;
default:
throw new RuntimeException("Value \"" + value + "\" for the " + OPT_GENERATE_SWAGGER_ANNOTATIONS + " parameter is unsupported or misspelled");
}
}
if (OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1.equals(this.generateSwaggerAnnotations)) {
additionalProperties.put("generateSwagger1Annotations", true);
} else if (OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2.equals(this.generateSwaggerAnnotations)) {
additionalProperties.put("generateSwagger2Annotations", true);
}
// Add all the supporting files // Add all the supporting files
String resourceFolder = projectFolder + "/resources"; String resourceFolder = projectFolder + "/resources";
supportingFiles.add(new SupportingFile("common/configuration/application.yml.mustache", resourceFolder, "application.yml").doNotOverwrite()); supportingFiles.add(new SupportingFile("common/configuration/application.yml.mustache", resourceFolder, "application.yml").doNotOverwrite());
@ -372,6 +442,24 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
return visitable; return visitable;
} }
@Override
public String sanitizeTag(String tag) {
// Skip sanitization to get the original tag name in the addOperationToGroup() method.
// Inside that method tag is manually sanitized.
return tag;
}
@Override
public void addOperationToGroup(String tag, String resourcePath, Operation operation, CodegenOperation
co, Map<String, List<CodegenOperation>> operations) {
if (generateOperationOnlyForFirstTag && !co.tags.get(0).getName().equals(tag)) {
// This is not the first assigned to this operation tag;
return;
}
super.addOperationToGroup(super.sanitizeTag(tag), resourcePath, operation, co, operations);
}
@Override @Override
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels) { public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels) {
objs = super.postProcessOperationsWithModels(objs, allModels); objs = super.postProcessOperationsWithModels(objs, allModels);
@ -445,6 +533,14 @@ public abstract class JavaMicronautAbstractCodegen extends AbstractJavaCodegen i
return objs; return objs;
} }
@Override
public CodegenModel fromModel(String name, Schema model) {
CodegenModel codegenModel = super.fromModel(name, model);
codegenModel.imports.remove("ApiModel");
codegenModel.imports.remove("ApiModelProperty");
return codegenModel;
}
@Override @Override
public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs) { public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs) {
objs = super.postProcessAllModels(objs); objs = super.postProcessAllModels(objs);

View File

@ -5,14 +5,10 @@ import org.openapitools.codegen.CodegenType;
import org.openapitools.codegen.SupportingFile; import org.openapitools.codegen.SupportingFile;
import org.openapitools.codegen.meta.GeneratorMetadata; import org.openapitools.codegen.meta.GeneratorMetadata;
import org.openapitools.codegen.meta.Stability; import org.openapitools.codegen.meta.Stability;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JavaMicronautClientCodegen extends JavaMicronautAbstractCodegen { public class JavaMicronautClientCodegen extends JavaMicronautAbstractCodegen {
private final Logger LOGGER = LoggerFactory.getLogger(JavaMicronautClientCodegen.class);
public static final String OPT_CONFIGURE_AUTH = "configureAuth"; public static final String OPT_CONFIGURE_AUTH = "configureAuth";
public static final String NAME = "java-micronaut-client"; public static final String NAME = "java-micronaut-client";

View File

@ -7,8 +7,6 @@ import org.openapitools.codegen.model.ModelMap;
import org.openapitools.codegen.model.OperationMap; import org.openapitools.codegen.model.OperationMap;
import org.openapitools.codegen.model.OperationsMap; import org.openapitools.codegen.model.OperationsMap;
import org.openapitools.codegen.utils.StringUtils; import org.openapitools.codegen.utils.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -29,8 +27,6 @@ public class JavaMicronautServerCodegen extends JavaMicronautAbstractCodegen {
public static final String DENY_ALL_ROLE_KEY = "denyAll()"; public static final String DENY_ALL_ROLE_KEY = "denyAll()";
public static final String DENY_ALL_ROLE = "SecurityRule.DENY_ALL"; public static final String DENY_ALL_ROLE = "SecurityRule.DENY_ALL";
private final Logger LOGGER = LoggerFactory.getLogger(JavaMicronautServerCodegen.class);
public static final String NAME = "java-micronaut-server"; public static final String NAME = "java-micronaut-server";
protected String controllerPackage = "org.openapitools.controller"; protected String controllerPackage = "org.openapitools.controller";
@ -47,7 +43,7 @@ public class JavaMicronautServerCodegen extends JavaMicronautAbstractCodegen {
public JavaMicronautServerCodegen() { public JavaMicronautServerCodegen() {
super(); super();
title = "OpenAPI Micronaut Server";; title = "OpenAPI Micronaut Server";
apiPackage = "org.openapitools.api"; apiPackage = "org.openapitools.api";
apiDocPath = "docs/controllers"; apiDocPath = "docs/controllers";

View File

@ -14,7 +14,8 @@ import reactor.core.publisher.Mono;
{{#wrapInHttpResponse}} {{#wrapInHttpResponse}}
import io.micronaut.http.HttpResponse; import io.micronaut.http.HttpResponse;
{{/wrapInHttpResponse}} {{/wrapInHttpResponse}}
{{#imports}}import {{import}}; {{#imports}}
import {{import}};
{{/imports}} {{/imports}}
import javax.annotation.Generated; import javax.annotation.Generated;
{{^fullJavaUtil}} {{^fullJavaUtil}}
@ -26,37 +27,27 @@ import java.util.Map;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
{{/useBeanValidation}} {{/useBeanValidation}}
{{#generateSwagger1Annotations}}
import io.swagger.annotations.*;
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
{{/generateSwagger2Annotations}}
{{>common/generatedAnnotation}} {{>common/generatedAnnotation}}
@Client("${base-path}") @Client("${{openbrace}}{{{applicationName}}}-base-path{{closebrace}}")
public interface {{classname}} { public interface {{classname}} {
{{#operations}} {{#operations}}
{{#operation}} {{#operation}}
/** {{>common/operationAnnotations}}{{!
{{#summary}} }} @{{#lambda.pascalcase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.pascalcase}}(uri="{{{path}}}")
* {{summary}}
{{/summary}}
{{#notes}}
* {{notes}}
{{/notes}}
{{^summary}}
{{^notes}}
* {{nickname}}
{{/notes}}
{{/summary}}
*
{{#allParams}}
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
{{/allParams}}
{{#returnType}}
* @return {{returnType}}
{{/returnType}}
{{#externalDocs}}
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
*/
@{{#lambda.pascalcase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.pascalcase}}(uri="{{{path}}}")
{{#vendorExtensions.x-content-type}} {{#vendorExtensions.x-content-type}}
@Produces(value={"{{vendorExtensions.x-content-type}}"}) @Produces(value={"{{vendorExtensions.x-content-type}}"})
{{/vendorExtensions.x-content-type}} {{/vendorExtensions.x-content-type}}
@ -71,6 +62,7 @@ public interface {{classname}} {
{{>common/operationReturnType}} {{nickname}}({{#allParams}} {{>common/operationReturnType}} {{nickname}}({{#allParams}}
{{>client/params/queryParams}}{{>client/params/pathParams}}{{>client/params/headerParams}}{{>client/params/bodyParams}}{{>client/params/formParams}}{{>client/params/cookieParams}}{{^-last}}, {{/-last}}{{#-last}} {{>client/params/queryParams}}{{>client/params/pathParams}}{{>client/params/headerParams}}{{>client/params/bodyParams}}{{>client/params/formParams}}{{>client/params/cookieParams}}{{^-last}}, {{/-last}}{{#-last}}
{{/-last}}{{/allParams}}); {{/-last}}{{/allParams}});
{{/operation}} {{/operation}}
{{/operations}} {{/operations}}
} }

View File

@ -1,13 +1,13 @@
{{!CLIENT CONFIGURATION}} {{!CLIENT CONFIGURATION}}
{{#client}} {{#client}}
base-path: "{{{basePath}}}/" {{{applicationName}}}-base-path: "{{{basePath}}}"
micronaut: micronaut:
application: application:
name: {{artifactId}} name: {{{applicationName}}}{{!
{{!
configure authorization from the parameters configure authorization from the parameters
}}{{#configureAuth}}security: }}{{#configureAuth}}
security:
oauth2: oauth2:
clients:{{#oauthMethods}} clients:{{#oauthMethods}}
{{{name}}}: {{{name}}}:
@ -22,7 +22,8 @@ micronaut:
# client-id: # client-id:
# client-secret:{{/oauthMethods}}{{/configureAuth}}{{! # client-secret:{{/oauthMethods}}{{/configureAuth}}{{!
do not configure authorization, but leave hints for user do not configure authorization, but leave hints for user
}}{{^configureAuth}}# TODO configure security features }}{{^configureAuth}}
# TODO configure security features
security: security:
oauth2: oauth2:
clients: clients:
@ -34,7 +35,7 @@ micronaut:
# auth-method: client_secret_basic # auth-method: client_secret_basic
# url: "https://" # url: "https://"
# client-id: # client-id:
# client-secret # client-secret:
# An example of how to apply other authorization methods # An example of how to apply other authorization methods
# authentication: bearer | cookie | session{{/configureAuth}} # authentication: bearer | cookie | session{{/configureAuth}}
@ -58,10 +59,10 @@ micronaut:
micronaut: micronaut:
application: application:
name: {{artifactId}} name: {{{applicationName}}}
server: server:
port: 8080{{#contextPath}} port: 8080
context-path: "{{{contextPath}}}"{{/contextPath}} context-path: "{{{contextPath}}}/"
security: security:
# authentication: bearer | cookie | session | idtoken # authentication: bearer | cookie | session | idtoken
{{/server}} {{/server}}

View File

@ -43,7 +43,12 @@ dependencies {
{{#reactive}} {{#reactive}}
implementation("io.micronaut.reactor:micronaut-reactor") implementation("io.micronaut.reactor:micronaut-reactor")
{{/reactive}} {{/reactive}}
implementation("io.swagger:swagger-annotations:1.5.9") {{#generateSwagger1Annotations}}
implementation("io.swagger:swagger-annotations:1.6.5")
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
implementation("io.swagger.core.v3:swagger-annotations:2.2.0")
{{/generateSwagger2Annotations}}
runtimeOnly("ch.qos.logback:logback-classic") runtimeOnly("ch.qos.logback:logback-classic")
} }

View File

@ -22,7 +22,12 @@
<micronaut.version>{{{micronautVersion}}}</micronaut.version> <micronaut.version>{{{micronautVersion}}}</micronaut.version>
<exec.mainClass>{{groupId}}.Application</exec.mainClass> <exec.mainClass>{{groupId}}.Application</exec.mainClass>
<micronaut.runtime>netty</micronaut.runtime> <micronaut.runtime>netty</micronaut.runtime>
<swagger-annotations-version>1.5.21</swagger-annotations-version> {{#generateSwagger1Annotations}}
<swagger-annotations-version>1.6.5</swagger-annotations-version>
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
<swagger-annotations-version>2.2.0</swagger-annotations-version>
{{/generateSwagger2Annotations}}
</properties> </properties>
<repositories> <repositories>
@ -122,11 +127,20 @@
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
{{#generateSwagger1Annotations}}
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId> <artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations-version}</version> <version>${swagger-annotations-version}</version>
</dependency> </dependency>
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations-version}</version>
</dependency>
{{/generateSwagger2Annotations}}
</dependencies> </dependencies>
<build> <build>

View File

@ -33,6 +33,13 @@ import javax.validation.Valid;
{{/useBeanValidation}} {{/useBeanValidation}}
import io.micronaut.core.annotation.*; import io.micronaut.core.annotation.*;
import javax.annotation.Generated; import javax.annotation.Generated;
{{#generateSwagger1Annotations}}
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
import io.swagger.v3.oas.annotations.media.Schema;
{{/generateSwagger2Annotations}}
{{#models}} {{#models}}
{{#model}} {{#model}}

View File

@ -2,7 +2,12 @@
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}} * {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
*/ */
{{#description}} {{#description}}
{{#generateSwagger1Annotations}}
@ApiModel(description = "{{{description}}}") @ApiModel(description = "{{{description}}}")
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
@Schema({{#name}}name = "{{name}}", {{/name}}description = "{{{description}}}")
{{/generateSwagger2Annotations}}
{{/description}} {{/description}}
{{#jackson}} {{#jackson}}
@JsonPropertyOrder({ @JsonPropertyOrder({
@ -177,7 +182,13 @@ Declare the class with extends and implements
{{/maximum}} {{/maximum}}
* @return {{name}} * @return {{name}}
**/ **/
{{>common/model/beanValidation}} @ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") {{>common/model/beanValidation}}{{!
}}{{#generateSwagger1Annotations}}
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}")
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
@Schema(name = "{{{baseName}}}", {{#isReadOnly}}accessMode = Schema.AccessMode.READ_ONLY, {{/isReadOnly}}{{#example}}example = "{{{.}}}", {{/example}}{{#description}}description = "{{{.}}}", {{/description}}required = {{{required}}})
{{/generateSwagger2Annotations}}
{{#vendorExtensions.x-extra-annotation}} {{#vendorExtensions.x-extra-annotation}}
{{{vendorExtensions.x-extra-annotation}}} {{{vendorExtensions.x-extra-annotation}}}
{{/vendorExtensions.x-extra-annotation}} {{/vendorExtensions.x-extra-annotation}}
@ -364,7 +375,9 @@ Declare the class with extends and implements
* @param <T> the return type of the visitor * @param <T> the return type of the visitor
* @return the result from the visitor * @return the result from the visitor
*/ */
public abstract <T> T accept(Visitor<T> visitor); public <T> T accept(Visitor<T> visitor) {
return visitor.visit{{classname}}(this);
}
/** /**
* A {{classname}} visitor implementation allows visiting the various {{classname}} types. * A {{classname}} visitor implementation allows visiting the various {{classname}} types.
@ -375,6 +388,7 @@ Declare the class with extends and implements
{{#discriminator.mappedModels}} {{#discriminator.mappedModels}}
R visit{{modelName}}({{modelName}} value); R visit{{modelName}}({{modelName}} value);
{{/discriminator.mappedModels}} {{/discriminator.mappedModels}}
R visit{{classname}}({{classname}} value);
} }
{{/discriminator}} {{/discriminator}}

View File

@ -0,0 +1,102 @@
/**
{{#summary}}
* {{summary}}
{{/summary}}
{{#notes}}
* {{notes}}
{{/notes}}
{{^summary}}
{{^notes}}
* {{nickname}}
{{/notes}}
{{/summary}}
*
{{#allParams}}
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
{{/allParams}}
{{#returnType}}
* @return {{returnType}}
{{/returnType}}
{{#externalDocs}}
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
*/
{{!openapi annotations for info}}
{{#generateSwagger1Annotations}}
@ApiOperation(
value = "{{{summary}}}",
nickname = "{{{operationId}}}"{{#notes}},
notes = "{{{notes}}}"{{/notes}}{{#returnBaseType}},
response = {{{returnBaseType}}}.class{{/returnBaseType}}{{#returnContainer}},
responseContainer = "{{{returnContainer}}}"{{/returnContainer}},
authorizations = {{openbrace}}{{#hasAuthMethods}}
{{#authMethods}}
{{#isOAuth}}
@Authorization(value = "{{name}}"{{#scopes.0}}, scopes = {
{{#scopes}}
@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{^-last}},{{/-last}}
{{/scopes}}
}{{/scopes.0}}){{^-last}},{{/-last}}
{{/isOAuth}}
{{^isOAuth}}
@Authorization(value = "{{name}}"){{^-last}},{{/-last}}
{{/isOAuth}}
{{/authMethods}}
{{/hasAuthMethods}}{{closebrace}},
tags = { {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }
)
@ApiResponses(value = {{openbrace}}{{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}}
{{closebrace}})
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
@Operation(
operationId = "{{{operationId}}}",
{{#summary}}
summary = "{{{.}}}",
{{/summary}}
{{#description}}
description= "{{{.}}}",
{{/description}}
{{#tags.1}}
{{!generate only when at least 2 tags}}
tags = { {{#tags}}"{{name}}"{{^-last}}, {{/-last}}{{/tags}} },
{{/tags.1}}
responses = {
{{#responses}}
@ApiResponse(responseCode = "{{{code}}}", description = "{{{message}}}"{{#baseType}}, content = {
{{#produces}}
@Content(mediaType = "{{{mediaType}}}", schema = @Schema(implementation = {{{baseType}}}.class)){{^-last}},{{/-last}}
{{/produces}}
}{{/baseType}}){{^-last}},{{/-last}}
{{/responses}}
}{{#hasParams}},
parameters = {
{{#allParams}}
@Parameter(name = "{{paramName}}"{{#description}}, description = "{{{description}}}"{{/description}}{{#required}}, required = true{{/required}}){{^-last}},{{/-last}}
{{/allParams}}
}{{/hasParams}}{{#hasAuthMethods}},
security = {
{{#authMethods}}
@SecurityRequirement(name = "{{name}}"{{#isOAuth}}, scopes = { {{#scopes}}"{{scope}}"{{^-last}}, {{/-last}}{{/scopes}} }{{/isOAuth}}){{^-last}},{{/-last}}
{{/authMethods}}
}{{/hasAuthMethods}}
)
{{/generateSwagger2Annotations}}
{{#implicitHeadersParams.0}}
{{#generateSwagger2Annotations}}
@Parameters({
{{#implicitHeadersParams}}
@Parameter(name = "{{paramName}}"{{#description}}, description = "{{{description}}}"{{/description}}{{#required}}, required = true{{/required}}){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/generateSwagger2Annotations}}
{{#generateSwagger1Annotations}}
@ApiImplicitParams({
{{#implicitHeadersParams}}
@ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/generateSwagger1Annotations}}
{{/implicitHeadersParams.0}}

View File

@ -35,66 +35,33 @@ import java.util.Arrays;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
{{/useBeanValidation}} {{/useBeanValidation}}
{{#generateSwagger1Annotations}}
import io.swagger.annotations.*; import io.swagger.annotations.*;
{{/generateSwagger1Annotations}}
{{#generateSwagger2Annotations}}
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
{{/generateSwagger2Annotations}}
{{>common/generatedAnnotation}} {{>common/generatedAnnotation}}
{{^generateControllerAsAbstract}} {{^generateControllerAsAbstract}}
@Controller @Controller
{{/generateControllerAsAbstract}} {{/generateControllerAsAbstract}}
{{#generateSwagger2Annotations}}
@Tag(name = "{{{baseName}}}", description = {{#tagDescription}}"{{{.}}}"{{/tagDescription}}{{^tagDescription}}"The {{{baseName}}} API"{{/tagDescription}})
{{/generateSwagger2Annotations}}
public {{#generateControllerAsAbstract}}abstract {{/generateControllerAsAbstract}}class {{classname}} { public {{#generateControllerAsAbstract}}abstract {{/generateControllerAsAbstract}}class {{classname}} {
{{#operations}} {{#operations}}
{{#operation}} {{#operation}}
/** {{>common/operationAnnotations}}{{!
{{#summary}} micronaut annotations
* {{summary}} }} @{{#lambda.pascalcase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.pascalcase}}(uri="{{{path}}}")
{{/summary}}
{{#notes}}
* {{notes}}
{{/notes}}
{{^summary}}
{{^notes}}
* {{nickname}}
{{/notes}}
{{/summary}}
*
{{#allParams}}
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
{{/allParams}}
{{#returnType}}
* @return {{returnType}}
{{/returnType}}
{{#externalDocs}}
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
*/
{{!openapi annotations for info}}
@ApiOperation(
value = "{{{summary}}}",
nickname = "{{{operationId}}}"{{#notes}},
notes = "{{{notes}}}"{{/notes}}{{#returnBaseType}},
response = {{{returnBaseType}}}.class{{/returnBaseType}}{{#returnContainer}},
responseContainer = "{{{returnContainer}}}"{{/returnContainer}},
authorizations = {{openbrace}}{{#hasAuthMethods}}
{{#authMethods}}
{{#isOAuth}}
@Authorization(value = "{{name}}"{{#scopes}}{{#-first}}, scopes = {
{{#scopes}}
@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{^-last}},{{/-last}}
{{/scopes}}
}{{/-first}}{{/scopes}}){{^-last}},{{/-last}}
{{/isOAuth}}
{{^isOAuth}}
@Authorization(value = "{{name}}"){{^-last}},{{/-last}}
{{/isOAuth}}
{{/authMethods}}
{{/hasAuthMethods}}{{closebrace}},
tags={{openbrace}}{{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}}{{closebrace}})
{{!openapi annotations for info about responses}}
@ApiResponses(value = {{openbrace}}{{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}}{{closebrace}})
{{!micronaut annotations}}
@{{#lambda.pascalcase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.pascalcase}}(uri="{{{path}}}")
@Produces(value = {{openbrace}}{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}{{closebrace}}) @Produces(value = {{openbrace}}{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}{{closebrace}})
{{#consumes.0}} {{#consumes.0}}
@Consumes(value = {{openbrace}}{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}{{closebrace}}) @Consumes(value = {{openbrace}}{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}{{closebrace}})

View File

@ -6,7 +6,6 @@ import io.swagger.v3.oas.models.servers.Server;
import org.openapitools.codegen.CliOption; import org.openapitools.codegen.CliOption;
import org.openapitools.codegen.CodegenConstants; import org.openapitools.codegen.CodegenConstants;
import org.openapitools.codegen.TestUtils; import org.openapitools.codegen.TestUtils;
import org.openapitools.codegen.languages.JavaMicronautAbstractCodegen;
import org.openapitools.codegen.languages.JavaMicronautServerCodegen; import org.openapitools.codegen.languages.JavaMicronautServerCodegen;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.Test; import org.testng.annotations.Test;
@ -16,6 +15,7 @@ import static org.testng.Assert.assertEquals;
public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest { public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest {
protected static String ROLES_EXTENSION_TEST_PATH = "src/test/resources/3_0/micronaut/roles-extension-test.yaml"; protected static String ROLES_EXTENSION_TEST_PATH = "src/test/resources/3_0/micronaut/roles-extension-test.yaml";
protected static String MULTI_TAGS_TEST_PATH = "src/test/resources/3_0/micronaut/multi-tags-test.yaml";
@Test @Test
public void clientOptsUnicity() { public void clientOptsUnicity() {
@ -245,7 +245,6 @@ public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest {
codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "true"); codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "true");
String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS); String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS);
// Constructor should have properties
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/"; String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
assertFileContains(controllerPath + "PetController.java", "Mono<HttpResponse<Pet>>"); assertFileContains(controllerPath + "PetController.java", "Mono<HttpResponse<Pet>>");
} }
@ -257,7 +256,6 @@ public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest {
codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "false"); codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "false");
String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS); String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS);
// Constructor should have properties
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/"; String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
assertFileContains(controllerPath + "PetController.java", "Mono<Pet>"); assertFileContains(controllerPath + "PetController.java", "Mono<Pet>");
assertFileNotContains(controllerPath + "PetController.java", "HttpResponse"); assertFileNotContains(controllerPath + "PetController.java", "HttpResponse");
@ -270,7 +268,6 @@ public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest {
codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "true"); codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "true");
String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS); String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS);
// Constructor should have properties
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/"; String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
assertFileContains(controllerPath + "PetController.java", "HttpResponse<Pet>"); assertFileContains(controllerPath + "PetController.java", "HttpResponse<Pet>");
assertFileNotContains(controllerPath + "PetController.java", "Mono"); assertFileNotContains(controllerPath + "PetController.java", "Mono");
@ -283,10 +280,65 @@ public class MicronautServerCodegenTest extends AbstractMicronautCodegenTest {
codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "false"); codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_WRAP_IN_HTTP_RESPONSE, "false");
String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS); String outputPath = generateFiles(codegen, PETSTORE_PATH, CodegenConstants.MODELS, CodegenConstants.APIS);
// Constructor should have properties
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/"; String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
assertFileContains(controllerPath + "PetController.java", "Pet"); assertFileContains(controllerPath + "PetController.java", "Pet");
assertFileNotContains(controllerPath + "PetController.java", "Mono"); assertFileNotContains(controllerPath + "PetController.java", "Mono");
assertFileNotContains(controllerPath + "PetController.java", "HttpResponse"); assertFileNotContains(controllerPath + "PetController.java", "HttpResponse");
} }
@Test
public void doGenerateOperationOnlyForFirstTag() {
JavaMicronautServerCodegen codegen = new JavaMicronautServerCodegen();
String outputPath = generateFiles(codegen, MULTI_TAGS_TEST_PATH, CodegenConstants.MODELS,
CodegenConstants.APIS, CodegenConstants.API_TESTS);
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
String controllerTestPath = outputPath + "/src/test/java/org/openapitools/controller/";
// Verify files are generated only for the required tags
assertFileExists(controllerPath + "AuthorsController.java");
assertFileExists(controllerPath + "BooksController.java");
assertFileNotExists(controllerPath + "SearchController.java");
// Verify the same for test files
assertFileExists(controllerTestPath + "AuthorsControllerTest.java");
assertFileExists(controllerTestPath + "BooksControllerTest.java");
assertFileNotExists(controllerTestPath + "SearchControllerTest.java");
// Verify all the methods are generated only ones
assertFileContains(controllerPath + "AuthorsController.java",
"authorSearchGet", "getAuthor", "getAuthorBooks");
assertFileContains(controllerPath + "BooksController.java",
"bookCreateEntryPost", "bookSearchGet", "bookSendReviewPost", "getBook", "isBookAvailable");
assertFileNotContains(controllerPath + "BooksController.java", "getAuthorBooks");
}
@Test
public void doRepeatOperationForAllTags() {
JavaMicronautServerCodegen codegen = new JavaMicronautServerCodegen();
codegen.additionalProperties().put(JavaMicronautServerCodegen.OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG, "false");
String outputPath = generateFiles(codegen, MULTI_TAGS_TEST_PATH, CodegenConstants.MODELS,
CodegenConstants.APIS, CodegenConstants.API_TESTS);
String controllerPath = outputPath + "src/main/java/org/openapitools/controller/";
String controllerTestPath = outputPath + "/src/test/java/org/openapitools/controller/";
// Verify all the tags created
assertFileExists(controllerPath + "AuthorsController.java");
assertFileExists(controllerPath + "BooksController.java");
assertFileExists(controllerPath + "SearchController.java");
// Verify the same for test files
assertFileExists(controllerTestPath + "AuthorsControllerTest.java");
assertFileExists(controllerTestPath + "BooksControllerTest.java");
assertFileExists(controllerTestPath + "SearchControllerTest.java");
// Verify all the methods are repeated for each of the tags
assertFileContains(controllerPath + "AuthorsController.java",
"authorSearchGet", "getAuthor", "getAuthorBooks");
assertFileContains(controllerPath + "BooksController.java",
"bookCreateEntryPost", "bookSearchGet", "bookSendReviewPost", "getBook", "isBookAvailable", "getAuthorBooks");
assertFileContains(controllerPath + "SearchController.java",
"authorSearchGet", "bookSearchGet");
}
} }

View File

@ -0,0 +1,155 @@
openapi: 3.0.0
info:
description: This is a test api description where operations have multiple tags
version: 1.0.0
title: Library
license:
name: Apache-2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
tags:
- {name: books, description: Everything about books}
- {name: authors, description: Everything about book authors}
- {name: search, description: Tags for useful searching}
paths:
/book/{bookName}:
get:
tags: [books]
summary: Get a book by name
operationId: getBook
parameters:
- {name: bookName, in: path, required: true, schema: {type: string}}
responses:
'200':
description: success
content:
application/json:
schema: { $ref: "#/components/schemas/Book" }
/book/availability/{bookName}:
get:
tags: [books]
summary: Check book availability
operationId: isBookAvailable
parameters:
- { name: bookName, in: path, required: true, schema: { type: string, example: "Book 1" } }
responses:
'200':
description: success
content:
text/plain:
schema: { $ref: "#/components/schemas/BookAvailability" }
/book/search:
get:
tags: [books, search]
summary: Search for a book
parameters:
- {name: bookName, in: query, required: false, schema: {type: string, example: "Book 2"}}
- {name: ISBN, in: query, required: false, schema: {type: string, pattern: "[0-9]{13}", example: "0123456789123"}}
- {name: published, in: query, required: false, schema: {type: string, format: date}}
- {name: minNumPages, in: query, required: false, schema: {type: integer, format: int32, minimum: 1, maximum: 1000}}
- {name: minReadTime, in: query, required: false, schema: {type: number, format: float, minimum: 1, example: 5.7}}
- {name: description, in: query, required: false, schema: {type: string, minLength: 4, nullable: true}}
- {name: preferences, in: cookie, required: false, schema: {type: string}}
- {name: geoLocation, in: header, required: false, schema: {type: string}}
responses:
'200':
description: success
content:
application/json:
schema: { type: array, items: { $ref: "#/components/schemas/Book" } }
/book/sendReview:
post:
tags: [books]
summary: Send a review to a book
parameters:
- {name: bookName, in: query, required: true, schema: {type: string, nullable: false}}
requestBody:
content:
application/x-www-form-urlencoded:
schema: {$ref: "#/components/schemas/Review"}
responses:
'200':
description: success
/book/createEntry:
post:
tags: [books]
summary: Create a new entry for a book
requestBody:
content:
application/json: { schema: { $ref: "#/components/schemas/Book" } }
application/xml: { schema: { $ref: "#/components/schemas/Book" } }
responses:
'200':
description: success
content:
application/json: { schema: { $ref: "#/components/schemas/Book" } }
application/xml: { schema: { $ref: "#/components/schemas/Book" } }
/author/{authorName}:
get:
tags: [authors]
summary: Get an author by name
operationId: getAuthor
parameters:
- {name: authorName, in: path, required: true, schema: {type: string}}
responses:
'200':
description: success
content:
application/json:
schema: { $ref: "#/components/schemas/Author" }
/author/search:
get:
tags: [authors, search]
summary: Search for an author
parameters:
- {name: authorName, in: query, required: false, schema: {type: string, example: "Eric Berne"}}
- {name: approximateYearBorn, in: query, required: false, schema: {type: int, example: 1990}}
responses:
'200':
description: success
content:
application/json:
schema: { type: array, items: { $ref: "#/components/schemas/Author" } }
/author/{authorName}/getBooks:
get:
tags: [authors, books]
summary: Get books by author name
operationId: getAuthorBooks
parameters:
- {name: authorName, in: path, required: true, schema: {type: string}}
responses:
'200':
description: success
content:
application/json:
schema: { type: array, items: { $ref: "#/components/schemas/Book" } }
components:
schemas:
Book:
title: Book
description: book instance
type: object
properties:
name: {type: string}
availability: {$ref: "#/components/schemas/BookAvailability"}
pages: {type: integer, format: int32, minimum: 1}
readTime: {type: number, format: float, minimum: 0, exclusiveMinimum: true}
author: {$ref: "#/components/schemas/Author"}
required: ["name", "availability"]
default:
name: "Bob's Adventures"
availability: "available"
BookAvailability:
type: string
enum: ["available", "not available", "reserved"]
default: "not available"
Review:
type: object
properties:
rating: {type: integer, minimum: 1, maximum: 5, default: 2}
description: {type: string, maxLength: 200}
required: [rating]
Author:
type: object
properties:
name: {type: string, pattern: "[a-zA-z ]+"}
yearBorn: {type: int, minimum: 0, maximum: 2030}

View File

@ -30,7 +30,6 @@ dependencies {
implementation("io.micronaut.security:micronaut-security") implementation("io.micronaut.security:micronaut-security")
implementation("io.micronaut.security:micronaut-security-oauth2") implementation("io.micronaut.security:micronaut-security-oauth2")
implementation("io.micronaut.reactor:micronaut-reactor") implementation("io.micronaut.reactor:micronaut-reactor")
implementation("io.swagger:swagger-annotations:1.5.9")
runtimeOnly("ch.qos.logback:logback-classic") runtimeOnly("ch.qos.logback:logback-classic")
} }

View File

@ -1 +1 @@
micronautVersion=3.3.1 micronautVersion=3.4.3

View File

@ -10,7 +10,7 @@
<parent> <parent>
<groupId>io.micronaut</groupId> <groupId>io.micronaut</groupId>
<artifactId>micronaut-parent</artifactId> <artifactId>micronaut-parent</artifactId>
<version>3.3.1</version> <version>3.4.3</version>
</parent> </parent>
<properties> <properties>
@ -19,10 +19,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- If you are building with JDK 9 or higher, you can uncomment the lines below to set the release version --> <!-- If you are building with JDK 9 or higher, you can uncomment the lines below to set the release version -->
<!-- <release.version>8</release.version> --> <!-- <release.version>8</release.version> -->
<micronaut.version>3.3.1</micronaut.version> <micronaut.version>3.4.3</micronaut.version>
<exec.mainClass>org.openapitools.Application</exec.mainClass> <exec.mainClass>org.openapitools.Application</exec.mainClass>
<micronaut.runtime>netty</micronaut.runtime> <micronaut.runtime>netty</micronaut.runtime>
<swagger-annotations-version>1.5.21</swagger-annotations-version>
</properties> </properties>
<repositories> <repositories>
@ -99,11 +98,6 @@
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations-version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -28,7 +28,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface AnotherFakeApi { public interface AnotherFakeApi {
/** /**
* To test special tags * To test special tags
@ -43,4 +43,5 @@ public interface AnotherFakeApi {
Mono<ModelClient> call123testSpecialTags( Mono<ModelClient> call123testSpecialTags(
@Body @NotNull @Valid ModelClient _body @Body @NotNull @Valid ModelClient _body
); );
} }

View File

@ -36,7 +36,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface FakeApi { public interface FakeApi {
/** /**
* creates an XmlItem * creates an XmlItem
@ -50,6 +50,7 @@ public interface FakeApi {
Mono<Void> createXmlItem( Mono<Void> createXmlItem(
@Body @NotNull @Valid XmlItem xmlItem @Body @NotNull @Valid XmlItem xmlItem
); );
/** /**
* Test serialization of outer boolean types * Test serialization of outer boolean types
* *
@ -62,6 +63,7 @@ public interface FakeApi {
Mono<Boolean> fakeOuterBooleanSerialize( Mono<Boolean> fakeOuterBooleanSerialize(
@Body @Nullable Boolean _body @Body @Nullable Boolean _body
); );
/** /**
* Test serialization of object with outer number type * Test serialization of object with outer number type
* *
@ -74,6 +76,7 @@ public interface FakeApi {
Mono<OuterComposite> fakeOuterCompositeSerialize( Mono<OuterComposite> fakeOuterCompositeSerialize(
@Body @Nullable @Valid OuterComposite _body @Body @Nullable @Valid OuterComposite _body
); );
/** /**
* Test serialization of outer number types * Test serialization of outer number types
* *
@ -86,6 +89,7 @@ public interface FakeApi {
Mono<BigDecimal> fakeOuterNumberSerialize( Mono<BigDecimal> fakeOuterNumberSerialize(
@Body @Nullable BigDecimal _body @Body @Nullable BigDecimal _body
); );
/** /**
* Test serialization of outer string types * Test serialization of outer string types
* *
@ -98,6 +102,7 @@ public interface FakeApi {
Mono<String> fakeOuterStringSerialize( Mono<String> fakeOuterStringSerialize(
@Body @Nullable String _body @Body @Nullable String _body
); );
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* *
@ -109,6 +114,7 @@ public interface FakeApi {
Mono<Void> testBodyWithFileSchema( Mono<Void> testBodyWithFileSchema(
@Body @NotNull @Valid FileSchemaTestClass _body @Body @NotNull @Valid FileSchemaTestClass _body
); );
/** /**
* testBodyWithQueryParams * testBodyWithQueryParams
* *
@ -122,6 +128,7 @@ public interface FakeApi {
@QueryValue(value="query") @NotNull String query, @QueryValue(value="query") @NotNull String query,
@Body @NotNull @Valid User _body @Body @NotNull @Valid User _body
); );
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
@ -135,6 +142,7 @@ public interface FakeApi {
Mono<ModelClient> testClientModel( Mono<ModelClient> testClientModel(
@Body @NotNull @Valid ModelClient _body @Body @NotNull @Valid ModelClient _body
); );
/** /**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -173,6 +181,7 @@ public interface FakeApi {
@Nullable @Size(min=10, max=64) String password, @Nullable @Size(min=10, max=64) String password,
@Nullable String paramCallback @Nullable String paramCallback
); );
/** /**
* To test enum parameters * To test enum parameters
* To test enum parameters * To test enum parameters
@ -199,6 +208,7 @@ public interface FakeApi {
@Nullable List<String> enumFormStringArray, @Nullable List<String> enumFormStringArray,
@Nullable String enumFormString @Nullable String enumFormString
); );
/** /**
* Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional)
@ -220,6 +230,7 @@ public interface FakeApi {
@Header(name="boolean_group") @Nullable Boolean booleanGroup, @Header(name="boolean_group") @Nullable Boolean booleanGroup,
@QueryValue(value="int64_group") @Nullable Long int64Group @QueryValue(value="int64_group") @Nullable Long int64Group
); );
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
@ -231,6 +242,7 @@ public interface FakeApi {
Mono<Void> testInlineAdditionalProperties( Mono<Void> testInlineAdditionalProperties(
@Body @NotNull Map<String, String> param @Body @NotNull Map<String, String> param
); );
/** /**
* test json serialization of form data * test json serialization of form data
* *
@ -244,6 +256,7 @@ public interface FakeApi {
@NotNull String param, @NotNull String param,
@NotNull String param2 @NotNull String param2
); );
/** /**
* To test the collection format in query parameters * To test the collection format in query parameters
* *
@ -262,4 +275,5 @@ public interface FakeApi {
@QueryValue(value="url") @NotNull List<String> url, @QueryValue(value="url") @NotNull List<String> url,
@QueryValue(value="context") @NotNull List<String> context @QueryValue(value="context") @NotNull List<String> context
); );
} }

View File

@ -28,7 +28,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface FakeClassnameTags123Api { public interface FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case
@ -43,4 +43,5 @@ public interface FakeClassnameTags123Api {
Mono<ModelClient> testClassname( Mono<ModelClient> testClassname(
@Body @NotNull @Valid ModelClient _body @Body @NotNull @Valid ModelClient _body
); );
} }

View File

@ -31,7 +31,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface PetApi { public interface PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
@ -44,6 +44,7 @@ public interface PetApi {
Mono<Void> addPet( Mono<Void> addPet(
@Body @NotNull @Valid Pet _body @Body @NotNull @Valid Pet _body
); );
/** /**
* Deletes a pet * Deletes a pet
* *
@ -56,6 +57,7 @@ public interface PetApi {
@PathVariable(name="petId") @NotNull Long petId, @PathVariable(name="petId") @NotNull Long petId,
@Header(name="api_key") @Nullable String apiKey @Header(name="api_key") @Nullable String apiKey
); );
/** /**
* Finds Pets by status * Finds Pets by status
* Multiple status values can be provided with comma separated strings * Multiple status values can be provided with comma separated strings
@ -68,6 +70,7 @@ public interface PetApi {
Mono<List<Pet>> findPetsByStatus( Mono<List<Pet>> findPetsByStatus(
@QueryValue(value="status") @NotNull List<String> status @QueryValue(value="status") @NotNull List<String> status
); );
/** /**
* Finds Pets by tags * Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -80,6 +83,7 @@ public interface PetApi {
Mono<Set<Pet>> findPetsByTags( Mono<Set<Pet>> findPetsByTags(
@QueryValue(value="tags") @NotNull Set<String> tags @QueryValue(value="tags") @NotNull Set<String> tags
); );
/** /**
* Find pet by ID * Find pet by ID
* Returns a single pet * Returns a single pet
@ -92,6 +96,7 @@ public interface PetApi {
Mono<Pet> getPetById( Mono<Pet> getPetById(
@PathVariable(name="petId") @NotNull Long petId @PathVariable(name="petId") @NotNull Long petId
); );
/** /**
* Update an existing pet * Update an existing pet
* *
@ -103,6 +108,7 @@ public interface PetApi {
Mono<Void> updatePet( Mono<Void> updatePet(
@Body @NotNull @Valid Pet _body @Body @NotNull @Valid Pet _body
); );
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
@ -118,6 +124,7 @@ public interface PetApi {
@Nullable String name, @Nullable String name,
@Nullable String status @Nullable String status
); );
/** /**
* uploads an image * uploads an image
* *
@ -134,6 +141,7 @@ public interface PetApi {
@Nullable String additionalMetadata, @Nullable String additionalMetadata,
@Nullable File _file @Nullable File _file
); );
/** /**
* uploads an image (required) * uploads an image (required)
* *
@ -150,4 +158,5 @@ public interface PetApi {
@NotNull File requiredFile, @NotNull File requiredFile,
@Nullable String additionalMetadata @Nullable String additionalMetadata
); );
} }

View File

@ -28,7 +28,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface StoreApi { public interface StoreApi {
/** /**
* Delete purchase order by ID * Delete purchase order by ID
@ -41,6 +41,7 @@ public interface StoreApi {
Mono<Void> deleteOrder( Mono<Void> deleteOrder(
@PathVariable(name="order_id") @NotNull String orderId @PathVariable(name="order_id") @NotNull String orderId
); );
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
@ -50,6 +51,7 @@ public interface StoreApi {
@Get(uri="/store/inventory") @Get(uri="/store/inventory")
@Consumes(value={"application/json"}) @Consumes(value={"application/json"})
Mono<Map<String, Integer>> getInventory(); Mono<Map<String, Integer>> getInventory();
/** /**
* Find purchase order by ID * Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
@ -62,6 +64,7 @@ public interface StoreApi {
Mono<Order> getOrderById( Mono<Order> getOrderById(
@PathVariable(name="order_id") @NotNull @Min(1L) @Max(5L) Long orderId @PathVariable(name="order_id") @NotNull @Min(1L) @Max(5L) Long orderId
); );
/** /**
* Place an order for a pet * Place an order for a pet
* *
@ -74,4 +77,5 @@ public interface StoreApi {
Mono<Order> placeOrder( Mono<Order> placeOrder(
@Body @NotNull @Valid Order _body @Body @NotNull @Valid Order _body
); );
} }

View File

@ -29,7 +29,7 @@ import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen")
@Client("${base-path}") @Client("${petstore-micronaut-base-path}")
public interface UserApi { public interface UserApi {
/** /**
* Create user * Create user
@ -43,6 +43,7 @@ public interface UserApi {
Mono<Void> createUser( Mono<Void> createUser(
@Body @NotNull @Valid User _body @Body @NotNull @Valid User _body
); );
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* *
@ -54,6 +55,7 @@ public interface UserApi {
Mono<Void> createUsersWithArrayInput( Mono<Void> createUsersWithArrayInput(
@Body @NotNull List<User> _body @Body @NotNull List<User> _body
); );
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* *
@ -65,6 +67,7 @@ public interface UserApi {
Mono<Void> createUsersWithListInput( Mono<Void> createUsersWithListInput(
@Body @NotNull List<User> _body @Body @NotNull List<User> _body
); );
/** /**
* Delete user * Delete user
* This can only be done by the logged in user. * This can only be done by the logged in user.
@ -76,6 +79,7 @@ public interface UserApi {
Mono<Void> deleteUser( Mono<Void> deleteUser(
@PathVariable(name="username") @NotNull String username @PathVariable(name="username") @NotNull String username
); );
/** /**
* Get user by user name * Get user by user name
* *
@ -87,6 +91,7 @@ public interface UserApi {
Mono<User> getUserByName( Mono<User> getUserByName(
@PathVariable(name="username") @NotNull String username @PathVariable(name="username") @NotNull String username
); );
/** /**
* Logs user into the system * Logs user into the system
* *
@ -100,6 +105,7 @@ public interface UserApi {
@QueryValue(value="username") @NotNull String username, @QueryValue(value="username") @NotNull String username,
@QueryValue(value="password") @NotNull String password @QueryValue(value="password") @NotNull String password
); );
/** /**
* Logs out current logged in user session * Logs out current logged in user session
* *
@ -107,6 +113,7 @@ public interface UserApi {
@Get(uri="/user/logout") @Get(uri="/user/logout")
@Consumes(value={"application/json"}) @Consumes(value={"application/json"})
Mono<Void> logoutUser(); Mono<Void> logoutUser();
/** /**
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
@ -121,4 +128,5 @@ public interface UserApi {
@PathVariable(name="username") @NotNull String username, @PathVariable(name="username") @NotNull String username,
@Body @NotNull @Valid User _body @Body @NotNull @Valid User _body
); );
} }

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -52,7 +50,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -100,7 +98,6 @@ public class AdditionalPropertiesClass {
* @return mapString * @return mapString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonProperty(JSON_PROPERTY_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
@ -131,7 +128,6 @@ public class AdditionalPropertiesClass {
* @return mapNumber * @return mapNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
@ -162,7 +158,6 @@ public class AdditionalPropertiesClass {
* @return mapInteger * @return mapInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonProperty(JSON_PROPERTY_MAP_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
@ -193,7 +188,6 @@ public class AdditionalPropertiesClass {
* @return mapBoolean * @return mapBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
@ -224,7 +218,6 @@ public class AdditionalPropertiesClass {
* @return mapArrayInteger * @return mapArrayInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
@ -255,7 +248,6 @@ public class AdditionalPropertiesClass {
* @return mapArrayAnytype * @return mapArrayAnytype
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
@ -286,7 +278,6 @@ public class AdditionalPropertiesClass {
* @return mapMapString * @return mapMapString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
@ -317,7 +308,6 @@ public class AdditionalPropertiesClass {
* @return mapMapAnytype * @return mapMapAnytype
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
@ -340,7 +330,6 @@ public class AdditionalPropertiesClass {
* @return anytype1 * @return anytype1
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonProperty(JSON_PROPERTY_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype1() { public Object getAnytype1() {
@ -363,7 +352,6 @@ public class AdditionalPropertiesClass {
* @return anytype2 * @return anytype2
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonProperty(JSON_PROPERTY_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype2() { public Object getAnytype2() {
@ -386,7 +374,6 @@ public class AdditionalPropertiesClass {
* @return anytype3 * @return anytype3
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonProperty(JSON_PROPERTY_ANYTYPE3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype3() { public Object getAnytype3() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -52,7 +50,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -17,8 +17,6 @@ import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -66,7 +64,6 @@ public class Animal {
* @return className * @return className
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClassName() { public String getClassName() {
@ -89,7 +86,6 @@ public class Animal {
* @return color * @return color
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COLOR) @JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getColor() { public String getColor() {
@ -148,7 +144,9 @@ public class Animal {
* @param <T> the return type of the visitor * @param <T> the return type of the visitor
* @return the result from the visitor * @return the result from the visitor
*/ */
public abstract <T> T accept(Visitor<T> visitor); public <T> T accept(Visitor<T> visitor) {
return visitor.visitAnimal(this);
}
/** /**
* A Animal visitor implementation allows visiting the various Animal types. * A Animal visitor implementation allows visiting the various Animal types.
@ -159,6 +157,7 @@ public class Animal {
R visitBigCat(BigCat value); R visitBigCat(BigCat value);
R visitCat(Cat value); R visitCat(Cat value);
R visitDog(Dog value); R visitDog(Dog value);
R visitAnimal(Animal value);
} }
} }

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -59,7 +57,6 @@ public class ArrayOfArrayOfNumberOnly {
* @return arrayArrayNumber * @return arrayArrayNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -59,7 +57,6 @@ public class ArrayOfNumberOnly {
* @return arrayNumber * @return arrayNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.openapitools.model.ReadOnlyFirst; import org.openapitools.model.ReadOnlyFirst;
@ -67,7 +65,6 @@ public class ArrayTest {
* @return arrayOfString * @return arrayOfString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
@ -98,7 +95,6 @@ public class ArrayTest {
* @return arrayArrayOfInteger * @return arrayArrayOfInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
@ -129,7 +125,6 @@ public class ArrayTest {
* @return arrayArrayOfModel * @return arrayArrayOfModel
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.BigCatAllOf; import org.openapitools.model.BigCatAllOf;
import org.openapitools.model.Cat; import org.openapitools.model.Cat;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -86,7 +84,6 @@ public class BigCat extends Cat {
* @return kind * @return kind
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KIND) @JsonProperty(JSON_PROPERTY_KIND)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public KindEnum getKind() { public KindEnum getKind() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -84,7 +82,6 @@ public class BigCatAllOf {
* @return kind * @return kind
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KIND) @JsonProperty(JSON_PROPERTY_KIND)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public KindEnum getKind() { public KindEnum getKind() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -68,7 +66,6 @@ public class Capitalization {
* @return smallCamel * @return smallCamel
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallCamel() { public String getSmallCamel() {
@ -91,7 +88,6 @@ public class Capitalization {
* @return capitalCamel * @return capitalCamel
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalCamel() { public String getCapitalCamel() {
@ -114,7 +110,6 @@ public class Capitalization {
* @return smallSnake * @return smallSnake
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallSnake() { public String getSmallSnake() {
@ -137,7 +132,6 @@ public class Capitalization {
* @return capitalSnake * @return capitalSnake
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalSnake() { public String getCapitalSnake() {
@ -160,7 +154,6 @@ public class Capitalization {
* @return scAETHFlowPoints * @return scAETHFlowPoints
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
@ -183,7 +176,6 @@ public class Capitalization {
* @return ATT_NAME * @return ATT_NAME
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "Name of the pet ")
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getATTNAME() { public String getATTNAME() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.Animal; import org.openapitools.model.Animal;
import org.openapitools.model.CatAllOf; import org.openapitools.model.CatAllOf;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class Cat extends Animal {
* @return declawed * @return declawed
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED) @JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDeclawed() { public Boolean getDeclawed() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -49,7 +47,6 @@ public class CatAllOf {
* @return declawed * @return declawed
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED) @JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDeclawed() { public Boolean getDeclawed() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -52,7 +50,6 @@ public class Category {
* @return id * @return id
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
@ -75,7 +72,6 @@ public class Category {
* @return name * @return name
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -26,7 +24,6 @@ import javax.annotation.Generated;
/** /**
* Model for testing model with \&quot;_class\&quot; property * Model for testing model with \&quot;_class\&quot; property
*/ */
@ApiModel(description = "Model for testing model with \"_class\" property")
@JsonPropertyOrder({ @JsonPropertyOrder({
ClassModel.JSON_PROPERTY_PROPERTY_CLASS ClassModel.JSON_PROPERTY_PROPERTY_CLASS
}) })
@ -49,7 +46,6 @@ public class ClassModel {
* @return propertyClass * @return propertyClass
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.Animal; import org.openapitools.model.Animal;
import org.openapitools.model.DogAllOf; import org.openapitools.model.DogAllOf;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -51,7 +49,6 @@ public class Dog extends Animal {
* @return breed * @return breed
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED) @JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -49,7 +47,6 @@ public class DogAllOf {
* @return breed * @return breed
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED) @JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -120,7 +118,6 @@ public class EnumArrays {
* @return justSymbol * @return justSymbol
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
@ -151,7 +148,6 @@ public class EnumArrays {
* @return arrayEnum * @return arrayEnum
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.OuterEnum; import org.openapitools.model.OuterEnum;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -200,7 +198,6 @@ public class EnumTest {
* @return enumString * @return enumString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
@ -223,7 +220,6 @@ public class EnumTest {
* @return enumStringRequired * @return enumStringRequired
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public EnumStringRequiredEnum getEnumStringRequired() { public EnumStringRequiredEnum getEnumStringRequired() {
@ -246,7 +242,6 @@ public class EnumTest {
* @return enumInteger * @return enumInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
@ -269,7 +264,6 @@ public class EnumTest {
* @return enumNumber * @return enumNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
@ -292,7 +286,6 @@ public class EnumTest {
* @return outerEnum * @return outerEnum
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.openapitools.model.ModelFile; import org.openapitools.model.ModelFile;
@ -56,7 +54,6 @@ public class FileSchemaTestClass {
**/ **/
@Valid @Valid
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE) @JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelFile getFile() { public ModelFile getFile() {
@ -87,7 +84,6 @@ public class FileSchemaTestClass {
* @return files * @return files
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES) @JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ModelFile> getFiles() { public List<ModelFile> getFiles() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.File; import java.io.File;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDate; import java.time.LocalDate;
@ -110,7 +108,6 @@ public class FormatTest {
@Nullable @Nullable
@Min(10) @Min(10)
@Max(100) @Max(100)
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER) @JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInteger() { public Integer getInteger() {
@ -137,7 +134,6 @@ public class FormatTest {
@Nullable @Nullable
@Min(20) @Min(20)
@Max(200) @Max(200)
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32) @JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInt32() { public Integer getInt32() {
@ -160,7 +156,6 @@ public class FormatTest {
* @return int64 * @return int64
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64) @JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInt64() { public Long getInt64() {
@ -187,7 +182,6 @@ public class FormatTest {
@NotNull @NotNull
@DecimalMin("32.1") @DecimalMin("32.1")
@DecimalMax("543.2") @DecimalMax("543.2")
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER) @JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumber() { public BigDecimal getNumber() {
@ -214,7 +208,6 @@ public class FormatTest {
@Nullable @Nullable
@DecimalMin("54.3") @DecimalMin("54.3")
@DecimalMax("987.6") @DecimalMax("987.6")
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT) @JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Float getFloat() { public Float getFloat() {
@ -241,7 +234,6 @@ public class FormatTest {
@Nullable @Nullable
@DecimalMin("67.8") @DecimalMin("67.8")
@DecimalMax("123.4") @DecimalMax("123.4")
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE) @JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getDouble() { public Double getDouble() {
@ -265,7 +257,6 @@ public class FormatTest {
**/ **/
@Nullable @Nullable
@Pattern(regexp="/[a-z]/i") @Pattern(regexp="/[a-z]/i")
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING) @JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getString() { public String getString() {
@ -288,7 +279,6 @@ public class FormatTest {
* @return _byte * @return _byte
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE) @JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public byte[] getByte() { public byte[] getByte() {
@ -311,7 +301,6 @@ public class FormatTest {
* @return binary * @return binary
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY) @JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getBinary() { public File getBinary() {
@ -334,7 +323,6 @@ public class FormatTest {
* @return date * @return date
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE) @JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
@ -359,7 +347,6 @@ public class FormatTest {
* @return dateTime * @return dateTime
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX")
@ -384,7 +371,6 @@ public class FormatTest {
* @return uuid * @return uuid
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty(JSON_PROPERTY_UUID) @JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
@ -408,7 +394,6 @@ public class FormatTest {
**/ **/
@NotNull @NotNull
@Size(min=10, max=64) @Size(min=10, max=64)
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD) @JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() { public String getPassword() {
@ -431,7 +416,6 @@ public class FormatTest {
* @return bigDecimal * @return bigDecimal
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getBigDecimal() { public BigDecimal getBigDecimal() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -48,7 +46,6 @@ public class HasOnlyReadOnly {
* @return bar * @return bar
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR) @JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
@ -60,7 +57,6 @@ public class HasOnlyReadOnly {
* @return foo * @return foo
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO) @JsonProperty(JSON_PROPERTY_FOO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFoo() { public String getFoo() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -104,7 +102,6 @@ public class MapTest {
* @return mapMapOfString * @return mapMapOfString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
@ -135,7 +132,6 @@ public class MapTest {
* @return mapOfEnumString * @return mapOfEnumString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
@ -166,7 +162,6 @@ public class MapTest {
* @return directMap * @return directMap
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
@ -197,7 +192,6 @@ public class MapTest {
* @return indirectMap * @return indirectMap
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -62,7 +60,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* @return uuid * @return uuid
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UUID) @JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
@ -85,7 +82,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* @return dateTime * @return dateTime
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX")
@ -118,7 +114,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* @return map * @return map
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP) @JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -27,7 +25,6 @@ import javax.annotation.Generated;
/** /**
* Model for testing model name starting with number * Model for testing model name starting with number
*/ */
@ApiModel(description = "Model for testing model name starting with number")
@JsonPropertyOrder({ @JsonPropertyOrder({
Model200Response.JSON_PROPERTY_NAME, Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS Model200Response.JSON_PROPERTY_PROPERTY_CLASS
@ -54,7 +51,6 @@ public class Model200Response {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getName() { public Integer getName() {
@ -77,7 +73,6 @@ public class Model200Response {
* @return propertyClass * @return propertyClass
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -57,7 +55,6 @@ public class ModelApiResponse {
* @return code * @return code
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CODE) @JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCode() { public Integer getCode() {
@ -80,7 +77,6 @@ public class ModelApiResponse {
* @return type * @return type
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE) @JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() { public String getType() {
@ -103,7 +99,6 @@ public class ModelApiResponse {
* @return message * @return message
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE) @JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMessage() { public String getMessage() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -49,7 +47,6 @@ public class ModelClient {
* @return _client * @return _client
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT) @JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() { public String getClient() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -27,7 +25,6 @@ import javax.annotation.Generated;
/** /**
* Must be named &#x60;File&#x60; for test. * Must be named &#x60;File&#x60; for test.
*/ */
@ApiModel(description = "Must be named `File` for test.")
@JsonPropertyOrder({ @JsonPropertyOrder({
ModelFile.JSON_PROPERTY_SOURCE_U_R_I ModelFile.JSON_PROPERTY_SOURCE_U_R_I
}) })
@ -50,7 +47,6 @@ public class ModelFile {
* @return sourceURI * @return sourceURI
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "Test capitalization")
@JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSourceURI() { public String getSourceURI() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -49,7 +47,6 @@ public class ModelList {
* @return _123list * @return _123list
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123LIST) @JsonProperty(JSON_PROPERTY_123LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String get123list() { public String get123list() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -27,7 +25,6 @@ import javax.annotation.Generated;
/** /**
* Model for testing reserved words * Model for testing reserved words
*/ */
@ApiModel(description = "Model for testing reserved words")
@JsonPropertyOrder({ @JsonPropertyOrder({
ModelReturn.JSON_PROPERTY_RETURN ModelReturn.JSON_PROPERTY_RETURN
}) })
@ -50,7 +47,6 @@ public class ModelReturn {
* @return _return * @return _return
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RETURN) @JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getReturn() { public Integer getReturn() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -26,7 +24,6 @@ import javax.annotation.Generated;
/** /**
* Model for testing model name same as property name * Model for testing model name same as property name
*/ */
@ApiModel(description = "Model for testing model name same as property name")
@JsonPropertyOrder({ @JsonPropertyOrder({
Name.JSON_PROPERTY_NAME, Name.JSON_PROPERTY_NAME,
Name.JSON_PROPERTY_SNAKE_CASE, Name.JSON_PROPERTY_SNAKE_CASE,
@ -61,7 +58,6 @@ public class Name {
* @return name * @return name
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getName() { public Integer getName() {
@ -79,7 +75,6 @@ public class Name {
* @return snakeCase * @return snakeCase
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSnakeCase() { public Integer getSnakeCase() {
@ -96,7 +91,6 @@ public class Name {
* @return property * @return property
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY) @JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProperty() { public String getProperty() {
@ -114,7 +108,6 @@ public class Name {
* @return _123number * @return _123number
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123NUMBER) @JsonProperty(JSON_PROPERTY_123NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer get123number() { public Integer get123number() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -49,7 +47,6 @@ public class NumberOnly {
* @return justNumber * @return justNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -103,7 +101,6 @@ public class Order {
* @return id * @return id
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
@ -126,7 +123,6 @@ public class Order {
* @return petId * @return petId
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_ID) @JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getPetId() { public Long getPetId() {
@ -149,7 +145,6 @@ public class Order {
* @return quantity * @return quantity
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUANTITY) @JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQuantity() { public Integer getQuantity() {
@ -172,7 +167,6 @@ public class Order {
* @return shipDate * @return shipDate
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXX")
@ -197,7 +191,6 @@ public class Order {
* @return status * @return status
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "Order Status")
@JsonProperty(JSON_PROPERTY_STATUS) @JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {
@ -220,7 +213,6 @@ public class Order {
* @return complete * @return complete
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COMPLETE) @JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getComplete() { public Boolean getComplete() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
@ -57,7 +55,6 @@ public class OuterComposite {
* @return myNumber * @return myNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
@ -80,7 +77,6 @@ public class OuterComposite {
* @return myString * @return myString
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_STRING) @JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMyString() { public String getMyString() {
@ -103,7 +99,6 @@ public class OuterComposite {
* @return myBoolean * @return myBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMyBoolean() { public Boolean getMyBoolean() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
@ -109,7 +107,6 @@ public class Pet {
* @return id * @return id
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
@ -133,7 +130,6 @@ public class Pet {
**/ **/
@Valid @Valid
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY) @JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Category getCategory() { public Category getCategory() {
@ -156,7 +152,6 @@ public class Pet {
* @return name * @return name
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
@ -184,7 +179,6 @@ public class Pet {
* @return photoUrls * @return photoUrls
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Set<String> getPhotoUrls() { public Set<String> getPhotoUrls() {
@ -216,7 +210,6 @@ public class Pet {
* @return tags * @return tags
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS) @JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Tag> getTags() { public List<Tag> getTags() {
@ -239,7 +232,6 @@ public class Pet {
* @return status * @return status
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "pet status in the store")
@JsonProperty(JSON_PROPERTY_STATUS) @JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -47,7 +45,6 @@ public class ReadOnlyFirst {
* @return bar * @return bar
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR) @JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
@ -64,7 +61,6 @@ public class ReadOnlyFirst {
* @return baz * @return baz
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAZ) @JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBaz() { public String getBaz() {

View File

@ -15,8 +15,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -49,7 +47,6 @@ public class SpecialModelName {
* @return $specialPropertyName * @return $specialPropertyName
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -52,7 +50,6 @@ public class Tag {
* @return id * @return id
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
@ -75,7 +72,6 @@ public class Tag {
* @return name * @return name
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -67,7 +65,6 @@ public class TypeHolderDefault {
* @return stringItem * @return stringItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStringItem() { public String getStringItem() {
@ -90,7 +87,6 @@ public class TypeHolderDefault {
* @return numberItem * @return numberItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumberItem() { public BigDecimal getNumberItem() {
@ -113,7 +109,6 @@ public class TypeHolderDefault {
* @return integerItem * @return integerItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getIntegerItem() { public Integer getIntegerItem() {
@ -136,7 +131,6 @@ public class TypeHolderDefault {
* @return boolItem * @return boolItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getBoolItem() { public Boolean getBoolItem() {
@ -164,7 +158,6 @@ public class TypeHolderDefault {
* @return arrayItem * @return arrayItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<Integer> getArrayItem() { public List<Integer> getArrayItem() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -71,7 +69,6 @@ public class TypeHolderExample {
* @return stringItem * @return stringItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStringItem() { public String getStringItem() {
@ -94,7 +91,6 @@ public class TypeHolderExample {
* @return numberItem * @return numberItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumberItem() { public BigDecimal getNumberItem() {
@ -117,7 +113,6 @@ public class TypeHolderExample {
* @return floatItem * @return floatItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Float getFloatItem() { public Float getFloatItem() {
@ -140,7 +135,6 @@ public class TypeHolderExample {
* @return integerItem * @return integerItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getIntegerItem() { public Integer getIntegerItem() {
@ -163,7 +157,6 @@ public class TypeHolderExample {
* @return boolItem * @return boolItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getBoolItem() { public Boolean getBoolItem() {
@ -191,7 +184,6 @@ public class TypeHolderExample {
* @return arrayItem * @return arrayItem
**/ **/
@NotNull @NotNull
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<Integer> getArrayItem() { public List<Integer> getArrayItem() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -76,7 +74,6 @@ public class User {
* @return id * @return id
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
@ -99,7 +96,6 @@ public class User {
* @return username * @return username
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME) @JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() { public String getUsername() {
@ -122,7 +118,6 @@ public class User {
* @return firstName * @return firstName
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstName() { public String getFirstName() {
@ -145,7 +140,6 @@ public class User {
* @return lastName * @return lastName
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() { public String getLastName() {
@ -168,7 +162,6 @@ public class User {
* @return email * @return email
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL) @JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() { public String getEmail() {
@ -191,7 +184,6 @@ public class User {
* @return password * @return password
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD) @JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() { public String getPassword() {
@ -214,7 +206,6 @@ public class User {
* @return phone * @return phone
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE) @JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPhone() { public String getPhone() {
@ -237,7 +228,6 @@ public class User {
* @return userStatus * @return userStatus
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "User Status")
@JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getUserStatus() { public Integer getUserStatus() {

View File

@ -14,8 +14,6 @@ package org.openapitools.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -163,7 +161,6 @@ public class XmlItem {
* @return attributeString * @return attributeString
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAttributeString() { public String getAttributeString() {
@ -186,7 +183,6 @@ public class XmlItem {
* @return attributeNumber * @return attributeNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getAttributeNumber() { public BigDecimal getAttributeNumber() {
@ -209,7 +205,6 @@ public class XmlItem {
* @return attributeInteger * @return attributeInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getAttributeInteger() { public Integer getAttributeInteger() {
@ -232,7 +227,6 @@ public class XmlItem {
* @return attributeBoolean * @return attributeBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAttributeBoolean() { public Boolean getAttributeBoolean() {
@ -263,7 +257,6 @@ public class XmlItem {
* @return wrappedArray * @return wrappedArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getWrappedArray() { public List<Integer> getWrappedArray() {
@ -286,7 +279,6 @@ public class XmlItem {
* @return nameString * @return nameString
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonProperty(JSON_PROPERTY_NAME_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNameString() { public String getNameString() {
@ -309,7 +301,6 @@ public class XmlItem {
* @return nameNumber * @return nameNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonProperty(JSON_PROPERTY_NAME_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getNameNumber() { public BigDecimal getNameNumber() {
@ -332,7 +323,6 @@ public class XmlItem {
* @return nameInteger * @return nameInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonProperty(JSON_PROPERTY_NAME_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNameInteger() { public Integer getNameInteger() {
@ -355,7 +345,6 @@ public class XmlItem {
* @return nameBoolean * @return nameBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNameBoolean() { public Boolean getNameBoolean() {
@ -386,7 +375,6 @@ public class XmlItem {
* @return nameArray * @return nameArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonProperty(JSON_PROPERTY_NAME_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNameArray() { public List<Integer> getNameArray() {
@ -417,7 +405,6 @@ public class XmlItem {
* @return nameWrappedArray * @return nameWrappedArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNameWrappedArray() { public List<Integer> getNameWrappedArray() {
@ -440,7 +427,6 @@ public class XmlItem {
* @return prefixString * @return prefixString
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonProperty(JSON_PROPERTY_PREFIX_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPrefixString() { public String getPrefixString() {
@ -463,7 +449,6 @@ public class XmlItem {
* @return prefixNumber * @return prefixNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPrefixNumber() { public BigDecimal getPrefixNumber() {
@ -486,7 +471,6 @@ public class XmlItem {
* @return prefixInteger * @return prefixInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPrefixInteger() { public Integer getPrefixInteger() {
@ -509,7 +493,6 @@ public class XmlItem {
* @return prefixBoolean * @return prefixBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPrefixBoolean() { public Boolean getPrefixBoolean() {
@ -540,7 +523,6 @@ public class XmlItem {
* @return prefixArray * @return prefixArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixArray() { public List<Integer> getPrefixArray() {
@ -571,7 +553,6 @@ public class XmlItem {
* @return prefixWrappedArray * @return prefixWrappedArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixWrappedArray() { public List<Integer> getPrefixWrappedArray() {
@ -594,7 +575,6 @@ public class XmlItem {
* @return namespaceString * @return namespaceString
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNamespaceString() { public String getNamespaceString() {
@ -617,7 +597,6 @@ public class XmlItem {
* @return namespaceNumber * @return namespaceNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getNamespaceNumber() { public BigDecimal getNamespaceNumber() {
@ -640,7 +619,6 @@ public class XmlItem {
* @return namespaceInteger * @return namespaceInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNamespaceInteger() { public Integer getNamespaceInteger() {
@ -663,7 +641,6 @@ public class XmlItem {
* @return namespaceBoolean * @return namespaceBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNamespaceBoolean() { public Boolean getNamespaceBoolean() {
@ -694,7 +671,6 @@ public class XmlItem {
* @return namespaceArray * @return namespaceArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNamespaceArray() { public List<Integer> getNamespaceArray() {
@ -725,7 +701,6 @@ public class XmlItem {
* @return namespaceWrappedArray * @return namespaceWrappedArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNamespaceWrappedArray() { public List<Integer> getNamespaceWrappedArray() {
@ -748,7 +723,6 @@ public class XmlItem {
* @return prefixNsString * @return prefixNsString
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPrefixNsString() { public String getPrefixNsString() {
@ -771,7 +745,6 @@ public class XmlItem {
* @return prefixNsNumber * @return prefixNsNumber
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPrefixNsNumber() { public BigDecimal getPrefixNsNumber() {
@ -794,7 +767,6 @@ public class XmlItem {
* @return prefixNsInteger * @return prefixNsInteger
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPrefixNsInteger() { public Integer getPrefixNsInteger() {
@ -817,7 +789,6 @@ public class XmlItem {
* @return prefixNsBoolean * @return prefixNsBoolean
**/ **/
@Nullable @Nullable
@ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPrefixNsBoolean() { public Boolean getPrefixNsBoolean() {
@ -848,7 +819,6 @@ public class XmlItem {
* @return prefixNsArray * @return prefixNsArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixNsArray() { public List<Integer> getPrefixNsArray() {
@ -879,7 +849,6 @@ public class XmlItem {
* @return prefixNsWrappedArray * @return prefixNsWrappedArray
**/ **/
@Nullable @Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixNsWrappedArray() { public List<Integer> getPrefixNsWrappedArray() {

View File

@ -1,4 +1,4 @@
base-path: "http://petstore.swagger.io:80/v2/" petstore-micronaut-base-path: "http://petstore.swagger.io:80/v2"
micronaut: micronaut:
application: application:
@ -15,7 +15,7 @@ micronaut:
# auth-method: client_secret_basic # auth-method: client_secret_basic
# url: "https://" # url: "https://"
# client-id: # client-id:
# client-secret # client-secret:
# An example of how to apply other authorization methods # An example of how to apply other authorization methods
# authentication: bearer | cookie | session # authentication: bearer | cookie | session

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,20 +11,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesAnyTypeSpec extends Specification { public class AdditionalPropertiesAnyTypeSpec extends Specification {
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType() private final AdditionalPropertiesAnyType model = null
/** /**
* Model tests for AdditionalPropertiesAnyType * Model tests for AdditionalPropertiesAnyType
*/ */
void "AdditionalPropertiesAnyType test"() { void 'AdditionalPropertiesAnyType test'() {
// TODO: test AdditionalPropertiesAnyType // TODO: test AdditionalPropertiesAnyType
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesAnyType property name test"() { void 'AdditionalPropertiesAnyType property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesAnyType
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.List import java.util.List
import java.util.Map import java.util.Map
@ -14,20 +12,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesArraySpec extends Specification { public class AdditionalPropertiesArraySpec extends Specification {
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray() private final AdditionalPropertiesArray model = null
/** /**
* Model tests for AdditionalPropertiesArray * Model tests for AdditionalPropertiesArray
*/ */
void "AdditionalPropertiesArray test"() { void 'AdditionalPropertiesArray test'() {
// TODO: test AdditionalPropertiesArray // TODO: test AdditionalPropertiesArray
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesArray property name test"() { void 'AdditionalPropertiesArray property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesArray
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,20 +11,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesBooleanSpec extends Specification { public class AdditionalPropertiesBooleanSpec extends Specification {
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean() private final AdditionalPropertiesBoolean model = null
/** /**
* Model tests for AdditionalPropertiesBoolean * Model tests for AdditionalPropertiesBoolean
*/ */
void "AdditionalPropertiesBoolean test"() { void 'AdditionalPropertiesBoolean test'() {
// TODO: test AdditionalPropertiesBoolean // TODO: test AdditionalPropertiesBoolean
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesBoolean property name test"() { void 'AdditionalPropertiesBoolean property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesBoolean
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal import java.math.BigDecimal
import java.util.HashMap import java.util.HashMap
import java.util.List import java.util.List
@ -15,90 +13,90 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesClassSpec extends Specification { public class AdditionalPropertiesClassSpec extends Specification {
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass() private final AdditionalPropertiesClass model = null
/** /**
* Model tests for AdditionalPropertiesClass * Model tests for AdditionalPropertiesClass
*/ */
void "AdditionalPropertiesClass test"() { void 'AdditionalPropertiesClass test'() {
// TODO: test AdditionalPropertiesClass // TODO: test AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapString' * Test the property 'mapString'
*/ */
void "AdditionalPropertiesClass property mapString test"() { void 'AdditionalPropertiesClass property mapString test'() {
// TODO: test mapString // TODO: test mapString property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapNumber' * Test the property 'mapNumber'
*/ */
void "AdditionalPropertiesClass property mapNumber test"() { void 'AdditionalPropertiesClass property mapNumber test'() {
// TODO: test mapNumber // TODO: test mapNumber property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapInteger' * Test the property 'mapInteger'
*/ */
void "AdditionalPropertiesClass property mapInteger test"() { void 'AdditionalPropertiesClass property mapInteger test'() {
// TODO: test mapInteger // TODO: test mapInteger property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapBoolean' * Test the property 'mapBoolean'
*/ */
void "AdditionalPropertiesClass property mapBoolean test"() { void 'AdditionalPropertiesClass property mapBoolean test'() {
// TODO: test mapBoolean // TODO: test mapBoolean property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapArrayInteger' * Test the property 'mapArrayInteger'
*/ */
void "AdditionalPropertiesClass property mapArrayInteger test"() { void 'AdditionalPropertiesClass property mapArrayInteger test'() {
// TODO: test mapArrayInteger // TODO: test mapArrayInteger property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapArrayAnytype' * Test the property 'mapArrayAnytype'
*/ */
void "AdditionalPropertiesClass property mapArrayAnytype test"() { void 'AdditionalPropertiesClass property mapArrayAnytype test'() {
// TODO: test mapArrayAnytype // TODO: test mapArrayAnytype property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapMapString' * Test the property 'mapMapString'
*/ */
void "AdditionalPropertiesClass property mapMapString test"() { void 'AdditionalPropertiesClass property mapMapString test'() {
// TODO: test mapMapString // TODO: test mapMapString property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'mapMapAnytype' * Test the property 'mapMapAnytype'
*/ */
void "AdditionalPropertiesClass property mapMapAnytype test"() { void 'AdditionalPropertiesClass property mapMapAnytype test'() {
// TODO: test mapMapAnytype // TODO: test mapMapAnytype property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'anytype1' * Test the property 'anytype1'
*/ */
void "AdditionalPropertiesClass property anytype1 test"() { void 'AdditionalPropertiesClass property anytype1 test'() {
// TODO: test anytype1 // TODO: test anytype1 property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'anytype2' * Test the property 'anytype2'
*/ */
void "AdditionalPropertiesClass property anytype2 test"() { void 'AdditionalPropertiesClass property anytype2 test'() {
// TODO: test anytype2 // TODO: test anytype2 property of AdditionalPropertiesClass
} }
/** /**
* Test the property 'anytype3' * Test the property 'anytype3'
*/ */
void "AdditionalPropertiesClass property anytype3 test"() { void 'AdditionalPropertiesClass property anytype3 test'() {
// TODO: test anytype3 // TODO: test anytype3 property of AdditionalPropertiesClass
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,20 +11,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesIntegerSpec extends Specification { public class AdditionalPropertiesIntegerSpec extends Specification {
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger() private final AdditionalPropertiesInteger model = null
/** /**
* Model tests for AdditionalPropertiesInteger * Model tests for AdditionalPropertiesInteger
*/ */
void "AdditionalPropertiesInteger test"() { void 'AdditionalPropertiesInteger test'() {
// TODO: test AdditionalPropertiesInteger // TODO: test AdditionalPropertiesInteger
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesInteger property name test"() { void 'AdditionalPropertiesInteger property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesInteger
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal import java.math.BigDecimal
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
@ -14,20 +12,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesNumberSpec extends Specification { public class AdditionalPropertiesNumberSpec extends Specification {
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber() private final AdditionalPropertiesNumber model = null
/** /**
* Model tests for AdditionalPropertiesNumber * Model tests for AdditionalPropertiesNumber
*/ */
void "AdditionalPropertiesNumber test"() { void 'AdditionalPropertiesNumber test'() {
// TODO: test AdditionalPropertiesNumber // TODO: test AdditionalPropertiesNumber
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesNumber property name test"() { void 'AdditionalPropertiesNumber property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesNumber
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,20 +11,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesObjectSpec extends Specification { public class AdditionalPropertiesObjectSpec extends Specification {
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject() private final AdditionalPropertiesObject model = null
/** /**
* Model tests for AdditionalPropertiesObject * Model tests for AdditionalPropertiesObject
*/ */
void "AdditionalPropertiesObject test"() { void 'AdditionalPropertiesObject test'() {
// TODO: test AdditionalPropertiesObject // TODO: test AdditionalPropertiesObject
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesObject property name test"() { void 'AdditionalPropertiesObject property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesObject
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.Map import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,20 +11,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AdditionalPropertiesStringSpec extends Specification { public class AdditionalPropertiesStringSpec extends Specification {
private final AdditionalPropertiesString model = new AdditionalPropertiesString() private final AdditionalPropertiesString model = null
/** /**
* Model tests for AdditionalPropertiesString * Model tests for AdditionalPropertiesString
*/ */
void "AdditionalPropertiesString test"() { void 'AdditionalPropertiesString test'() {
// TODO: test AdditionalPropertiesString // TODO: test AdditionalPropertiesString
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "AdditionalPropertiesString property name test"() { void 'AdditionalPropertiesString property name test'() {
// TODO: test name // TODO: test name property of AdditionalPropertiesString
} }
} }

View File

@ -1,9 +1,8 @@
package org.openapitools.model package org.openapitools.model
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonSubTypes import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo import com.fasterxml.jackson.annotation.JsonTypeInfo
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -13,27 +12,27 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class AnimalSpec extends Specification { public class AnimalSpec extends Specification {
private final Animal model = new Animal() private final Animal model = null
/** /**
* Model tests for Animal * Model tests for Animal
*/ */
void "Animal test"() { void 'Animal test'() {
// TODO: test Animal // TODO: test Animal
} }
/** /**
* Test the property 'className' * Test the property 'className'
*/ */
void "Animal property className test"() { void 'Animal property className test'() {
// TODO: test className // TODO: test className property of Animal
} }
/** /**
* Test the property 'color' * Test the property 'color'
*/ */
void "Animal property color test"() { void 'Animal property color test'() {
// TODO: test color // TODO: test color property of Animal
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal import java.math.BigDecimal
import java.util.ArrayList import java.util.ArrayList
import java.util.List import java.util.List
@ -14,20 +12,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class ArrayOfArrayOfNumberOnlySpec extends Specification { public class ArrayOfArrayOfNumberOnlySpec extends Specification {
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly() private final ArrayOfArrayOfNumberOnly model = null
/** /**
* Model tests for ArrayOfArrayOfNumberOnly * Model tests for ArrayOfArrayOfNumberOnly
*/ */
void "ArrayOfArrayOfNumberOnly test"() { void 'ArrayOfArrayOfNumberOnly test'() {
// TODO: test ArrayOfArrayOfNumberOnly // TODO: test ArrayOfArrayOfNumberOnly
} }
/** /**
* Test the property 'arrayArrayNumber' * Test the property 'arrayArrayNumber'
*/ */
void "ArrayOfArrayOfNumberOnly property arrayArrayNumber test"() { void 'ArrayOfArrayOfNumberOnly property arrayArrayNumber test'() {
// TODO: test arrayArrayNumber // TODO: test arrayArrayNumber property of ArrayOfArrayOfNumberOnly
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal import java.math.BigDecimal
import java.util.ArrayList import java.util.ArrayList
import java.util.List import java.util.List
@ -14,20 +12,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class ArrayOfNumberOnlySpec extends Specification { public class ArrayOfNumberOnlySpec extends Specification {
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly() private final ArrayOfNumberOnly model = null
/** /**
* Model tests for ArrayOfNumberOnly * Model tests for ArrayOfNumberOnly
*/ */
void "ArrayOfNumberOnly test"() { void 'ArrayOfNumberOnly test'() {
// TODO: test ArrayOfNumberOnly // TODO: test ArrayOfNumberOnly
} }
/** /**
* Test the property 'arrayNumber' * Test the property 'arrayNumber'
*/ */
void "ArrayOfNumberOnly property arrayNumber test"() { void 'ArrayOfNumberOnly property arrayNumber test'() {
// TODO: test arrayNumber // TODO: test arrayNumber property of ArrayOfNumberOnly
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList import java.util.ArrayList
import java.util.List import java.util.List
import org.openapitools.model.ReadOnlyFirst import org.openapitools.model.ReadOnlyFirst
@ -14,34 +12,34 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class ArrayTestSpec extends Specification { public class ArrayTestSpec extends Specification {
private final ArrayTest model = new ArrayTest() private final ArrayTest model = null
/** /**
* Model tests for ArrayTest * Model tests for ArrayTest
*/ */
void "ArrayTest test"() { void 'ArrayTest test'() {
// TODO: test ArrayTest // TODO: test ArrayTest
} }
/** /**
* Test the property 'arrayOfString' * Test the property 'arrayOfString'
*/ */
void "ArrayTest property arrayOfString test"() { void 'ArrayTest property arrayOfString test'() {
// TODO: test arrayOfString // TODO: test arrayOfString property of ArrayTest
} }
/** /**
* Test the property 'arrayArrayOfInteger' * Test the property 'arrayArrayOfInteger'
*/ */
void "ArrayTest property arrayArrayOfInteger test"() { void 'ArrayTest property arrayArrayOfInteger test'() {
// TODO: test arrayArrayOfInteger // TODO: test arrayArrayOfInteger property of ArrayTest
} }
/** /**
* Test the property 'arrayArrayOfModel' * Test the property 'arrayArrayOfModel'
*/ */
void "ArrayTest property arrayArrayOfModel test"() { void 'ArrayTest property arrayArrayOfModel test'() {
// TODO: test arrayArrayOfModel // TODO: test arrayArrayOfModel property of ArrayTest
} }
} }

View File

@ -1,7 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,20 +10,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class BigCatAllOfSpec extends Specification { public class BigCatAllOfSpec extends Specification {
private final BigCatAllOf model = new BigCatAllOf() private final BigCatAllOf model = null
/** /**
* Model tests for BigCatAllOf * Model tests for BigCatAllOf
*/ */
void "BigCatAllOf test"() { void 'BigCatAllOf test'() {
// TODO: test BigCatAllOf // TODO: test BigCatAllOf
} }
/** /**
* Test the property 'kind' * Test the property 'kind'
*/ */
void "BigCatAllOf property kind test"() { void 'BigCatAllOf property kind test'() {
// TODO: test kind // TODO: test kind property of BigCatAllOf
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.openapitools.model.BigCatAllOf import org.openapitools.model.BigCatAllOf
import org.openapitools.model.Cat import org.openapitools.model.Cat
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,41 +11,41 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class BigCatSpec extends Specification { public class BigCatSpec extends Specification {
private final BigCat model = new BigCat() private final BigCat model = null
/** /**
* Model tests for BigCat * Model tests for BigCat
*/ */
void "BigCat test"() { void 'BigCat test'() {
// TODO: test BigCat // TODO: test BigCat
} }
/** /**
* Test the property 'className' * Test the property 'className'
*/ */
void "BigCat property className test"() { void 'BigCat property className test'() {
// TODO: test className // TODO: test className property of BigCat
} }
/** /**
* Test the property 'color' * Test the property 'color'
*/ */
void "BigCat property color test"() { void 'BigCat property color test'() {
// TODO: test color // TODO: test color property of BigCat
} }
/** /**
* Test the property 'declawed' * Test the property 'declawed'
*/ */
void "BigCat property declawed test"() { void 'BigCat property declawed test'() {
// TODO: test declawed // TODO: test declawed property of BigCat
} }
/** /**
* Test the property 'kind' * Test the property 'kind'
*/ */
void "BigCat property kind test"() { void 'BigCat property kind test'() {
// TODO: test kind // TODO: test kind property of BigCat
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,55 +9,55 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class CapitalizationSpec extends Specification { public class CapitalizationSpec extends Specification {
private final Capitalization model = new Capitalization() private final Capitalization model = null
/** /**
* Model tests for Capitalization * Model tests for Capitalization
*/ */
void "Capitalization test"() { void 'Capitalization test'() {
// TODO: test Capitalization // TODO: test Capitalization
} }
/** /**
* Test the property 'smallCamel' * Test the property 'smallCamel'
*/ */
void "Capitalization property smallCamel test"() { void 'Capitalization property smallCamel test'() {
// TODO: test smallCamel // TODO: test smallCamel property of Capitalization
} }
/** /**
* Test the property 'capitalCamel' * Test the property 'capitalCamel'
*/ */
void "Capitalization property capitalCamel test"() { void 'Capitalization property capitalCamel test'() {
// TODO: test capitalCamel // TODO: test capitalCamel property of Capitalization
} }
/** /**
* Test the property 'smallSnake' * Test the property 'smallSnake'
*/ */
void "Capitalization property smallSnake test"() { void 'Capitalization property smallSnake test'() {
// TODO: test smallSnake // TODO: test smallSnake property of Capitalization
} }
/** /**
* Test the property 'capitalSnake' * Test the property 'capitalSnake'
*/ */
void "Capitalization property capitalSnake test"() { void 'Capitalization property capitalSnake test'() {
// TODO: test capitalSnake // TODO: test capitalSnake property of Capitalization
} }
/** /**
* Test the property 'scAETHFlowPoints' * Test the property 'scAETHFlowPoints'
*/ */
void "Capitalization property scAETHFlowPoints test"() { void 'Capitalization property scAETHFlowPoints test'() {
// TODO: test scAETHFlowPoints // TODO: test scAETHFlowPoints property of Capitalization
} }
/** /**
* Test the property 'ATT_NAME' * Test the property 'ATT_NAME'
*/ */
void "Capitalization property ATT_NAME test"() { void 'Capitalization property ATT_NAME test'() {
// TODO: test ATT_NAME // TODO: test ATT_NAME property of Capitalization
} }
} }

View File

@ -1,7 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,20 +10,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class CatAllOfSpec extends Specification { public class CatAllOfSpec extends Specification {
private final CatAllOf model = new CatAllOf() private final CatAllOf model = null
/** /**
* Model tests for CatAllOf * Model tests for CatAllOf
*/ */
void "CatAllOf test"() { void 'CatAllOf test'() {
// TODO: test CatAllOf // TODO: test CatAllOf
} }
/** /**
* Test the property 'declawed' * Test the property 'declawed'
*/ */
void "CatAllOf property declawed test"() { void 'CatAllOf property declawed test'() {
// TODO: test declawed // TODO: test declawed property of CatAllOf
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.openapitools.model.Animal import org.openapitools.model.Animal
import org.openapitools.model.CatAllOf import org.openapitools.model.CatAllOf
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,34 +11,34 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class CatSpec extends Specification { public class CatSpec extends Specification {
private final Cat model = new Cat() private final Cat model = null
/** /**
* Model tests for Cat * Model tests for Cat
*/ */
void "Cat test"() { void 'Cat test'() {
// TODO: test Cat // TODO: test Cat
} }
/** /**
* Test the property 'className' * Test the property 'className'
*/ */
void "Cat property className test"() { void 'Cat property className test'() {
// TODO: test className // TODO: test className property of Cat
} }
/** /**
* Test the property 'color' * Test the property 'color'
*/ */
void "Cat property color test"() { void 'Cat property color test'() {
// TODO: test color // TODO: test color property of Cat
} }
/** /**
* Test the property 'declawed' * Test the property 'declawed'
*/ */
void "Cat property declawed test"() { void 'Cat property declawed test'() {
// TODO: test declawed // TODO: test declawed property of Cat
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,27 +9,27 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class CategorySpec extends Specification { public class CategorySpec extends Specification {
private final Category model = new Category() private final Category model = null
/** /**
* Model tests for Category * Model tests for Category
*/ */
void "Category test"() { void 'Category test'() {
// TODO: test Category // TODO: test Category
} }
/** /**
* Test the property 'id' * Test the property 'id'
*/ */
void "Category property id test"() { void 'Category property id test'() {
// TODO: test id // TODO: test id property of Category
} }
/** /**
* Test the property 'name' * Test the property 'name'
*/ */
void "Category property name test"() { void 'Category property name test'() {
// TODO: test name // TODO: test name property of Category
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,20 +9,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class ClassModelSpec extends Specification { public class ClassModelSpec extends Specification {
private final ClassModel model = new ClassModel() private final ClassModel model = null
/** /**
* Model tests for ClassModel * Model tests for ClassModel
*/ */
void "ClassModel test"() { void 'ClassModel test'() {
// TODO: test ClassModel // TODO: test ClassModel
} }
/** /**
* Test the property 'propertyClass' * Test the property 'propertyClass'
*/ */
void "ClassModel property propertyClass test"() { void 'ClassModel property propertyClass test'() {
// TODO: test propertyClass // TODO: test propertyClass property of ClassModel
} }
} }

View File

@ -1,7 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,20 +10,20 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class DogAllOfSpec extends Specification { public class DogAllOfSpec extends Specification {
private final DogAllOf model = new DogAllOf() private final DogAllOf model = null
/** /**
* Model tests for DogAllOf * Model tests for DogAllOf
*/ */
void "DogAllOf test"() { void 'DogAllOf test'() {
// TODO: test DogAllOf // TODO: test DogAllOf
} }
/** /**
* Test the property 'breed' * Test the property 'breed'
*/ */
void "DogAllOf property breed test"() { void 'DogAllOf property breed test'() {
// TODO: test breed // TODO: test breed property of DogAllOf
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.openapitools.model.Animal import org.openapitools.model.Animal
import org.openapitools.model.DogAllOf import org.openapitools.model.DogAllOf
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,34 +11,34 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class DogSpec extends Specification { public class DogSpec extends Specification {
private final Dog model = new Dog() private final Dog model = null
/** /**
* Model tests for Dog * Model tests for Dog
*/ */
void "Dog test"() { void 'Dog test'() {
// TODO: test Dog // TODO: test Dog
} }
/** /**
* Test the property 'className' * Test the property 'className'
*/ */
void "Dog property className test"() { void 'Dog property className test'() {
// TODO: test className // TODO: test className property of Dog
} }
/** /**
* Test the property 'color' * Test the property 'color'
*/ */
void "Dog property color test"() { void 'Dog property color test'() {
// TODO: test color // TODO: test color property of Dog
} }
/** /**
* Test the property 'breed' * Test the property 'breed'
*/ */
void "Dog property breed test"() { void 'Dog property breed test'() {
// TODO: test breed // TODO: test breed property of Dog
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList import java.util.ArrayList
import java.util.List import java.util.List
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
@ -13,27 +11,27 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class EnumArraysSpec extends Specification { public class EnumArraysSpec extends Specification {
private final EnumArrays model = new EnumArrays() private final EnumArrays model = null
/** /**
* Model tests for EnumArrays * Model tests for EnumArrays
*/ */
void "EnumArrays test"() { void 'EnumArrays test'() {
// TODO: test EnumArrays // TODO: test EnumArrays
} }
/** /**
* Test the property 'justSymbol' * Test the property 'justSymbol'
*/ */
void "EnumArrays property justSymbol test"() { void 'EnumArrays property justSymbol test'() {
// TODO: test justSymbol // TODO: test justSymbol property of EnumArrays
} }
/** /**
* Test the property 'arrayEnum' * Test the property 'arrayEnum'
*/ */
void "EnumArrays property arrayEnum test"() { void 'EnumArrays property arrayEnum test'() {
// TODO: test arrayEnum // TODO: test arrayEnum property of EnumArrays
} }
} }

View File

@ -12,7 +12,7 @@ public class EnumClassSpec extends Specification {
/** /**
* Model tests for EnumClass * Model tests for EnumClass
*/ */
void "EnumClass test"() { void 'EnumClass test'() {
// TODO: test EnumClass // TODO: test EnumClass
} }

View File

@ -1,7 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import org.openapitools.model.OuterEnum import org.openapitools.model.OuterEnum
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
@ -12,48 +11,48 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class EnumTestSpec extends Specification { public class EnumTestSpec extends Specification {
private final EnumTest model = new EnumTest() private final EnumTest model = null
/** /**
* Model tests for EnumTest * Model tests for EnumTest
*/ */
void "EnumTest test"() { void 'EnumTest test'() {
// TODO: test EnumTest // TODO: test EnumTest
} }
/** /**
* Test the property 'enumString' * Test the property 'enumString'
*/ */
void "EnumTest property enumString test"() { void 'EnumTest property enumString test'() {
// TODO: test enumString // TODO: test enumString property of EnumTest
} }
/** /**
* Test the property 'enumStringRequired' * Test the property 'enumStringRequired'
*/ */
void "EnumTest property enumStringRequired test"() { void 'EnumTest property enumStringRequired test'() {
// TODO: test enumStringRequired // TODO: test enumStringRequired property of EnumTest
} }
/** /**
* Test the property 'enumInteger' * Test the property 'enumInteger'
*/ */
void "EnumTest property enumInteger test"() { void 'EnumTest property enumInteger test'() {
// TODO: test enumInteger // TODO: test enumInteger property of EnumTest
} }
/** /**
* Test the property 'enumNumber' * Test the property 'enumNumber'
*/ */
void "EnumTest property enumNumber test"() { void 'EnumTest property enumNumber test'() {
// TODO: test enumNumber // TODO: test enumNumber property of EnumTest
} }
/** /**
* Test the property 'outerEnum' * Test the property 'outerEnum'
*/ */
void "EnumTest property outerEnum test"() { void 'EnumTest property outerEnum test'() {
// TODO: test outerEnum // TODO: test outerEnum property of EnumTest
} }
} }

View File

@ -1,9 +1,8 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList import java.util.ArrayList
import java.util.List import java.util.List
import org.openapitools.model.ModelFile
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -13,27 +12,27 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class FileSchemaTestClassSpec extends Specification { public class FileSchemaTestClassSpec extends Specification {
private final FileSchemaTestClass model = new FileSchemaTestClass() private final FileSchemaTestClass model = null
/** /**
* Model tests for FileSchemaTestClass * Model tests for FileSchemaTestClass
*/ */
void "FileSchemaTestClass test"() { void 'FileSchemaTestClass test'() {
// TODO: test FileSchemaTestClass // TODO: test FileSchemaTestClass
} }
/** /**
* Test the property 'file' * Test the property '_file'
*/ */
void "FileSchemaTestClass property file test"() { void 'FileSchemaTestClass property _file test'() {
// TODO: test file // TODO: test _file property of FileSchemaTestClass
} }
/** /**
* Test the property 'files' * Test the property 'files'
*/ */
void "FileSchemaTestClass property files test"() { void 'FileSchemaTestClass property files test'() {
// TODO: test files // TODO: test files property of FileSchemaTestClass
} }
} }

View File

@ -1,11 +1,10 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import java.io.File import java.io.File
import java.math.BigDecimal import java.math.BigDecimal
import java.time.LocalDate import java.time.LocalDate
import java.time.LocalDateTime import java.time.OffsetDateTime
import java.util.UUID import java.util.UUID
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
@ -16,111 +15,111 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class FormatTestSpec extends Specification { public class FormatTestSpec extends Specification {
private final FormatTest model = new FormatTest() private final FormatTest model = null
/** /**
* Model tests for FormatTest * Model tests for FormatTest
*/ */
void "FormatTest test"() { void 'FormatTest test'() {
// TODO: test FormatTest // TODO: test FormatTest
} }
/** /**
* Test the property 'integer' * Test the property 'integer'
*/ */
void "FormatTest property integer test"() { void 'FormatTest property integer test'() {
// TODO: test integer // TODO: test integer property of FormatTest
} }
/** /**
* Test the property 'int32' * Test the property 'int32'
*/ */
void "FormatTest property int32 test"() { void 'FormatTest property int32 test'() {
// TODO: test int32 // TODO: test int32 property of FormatTest
} }
/** /**
* Test the property 'int64' * Test the property 'int64'
*/ */
void "FormatTest property int64 test"() { void 'FormatTest property int64 test'() {
// TODO: test int64 // TODO: test int64 property of FormatTest
} }
/** /**
* Test the property 'number' * Test the property 'number'
*/ */
void "FormatTest property number test"() { void 'FormatTest property number test'() {
// TODO: test number // TODO: test number property of FormatTest
} }
/** /**
* Test the property '_float' * Test the property '_float'
*/ */
void "FormatTest property _float test"() { void 'FormatTest property _float test'() {
// TODO: test _float // TODO: test _float property of FormatTest
} }
/** /**
* Test the property '_double' * Test the property '_double'
*/ */
void "FormatTest property _double test"() { void 'FormatTest property _double test'() {
// TODO: test _double // TODO: test _double property of FormatTest
} }
/** /**
* Test the property 'string' * Test the property 'string'
*/ */
void "FormatTest property string test"() { void 'FormatTest property string test'() {
// TODO: test string // TODO: test string property of FormatTest
} }
/** /**
* Test the property '_byte' * Test the property '_byte'
*/ */
void "FormatTest property _byte test"() { void 'FormatTest property _byte test'() {
// TODO: test _byte // TODO: test _byte property of FormatTest
} }
/** /**
* Test the property 'binary' * Test the property 'binary'
*/ */
void "FormatTest property binary test"() { void 'FormatTest property binary test'() {
// TODO: test binary // TODO: test binary property of FormatTest
} }
/** /**
* Test the property 'date' * Test the property 'date'
*/ */
void "FormatTest property date test"() { void 'FormatTest property date test'() {
// TODO: test date // TODO: test date property of FormatTest
} }
/** /**
* Test the property 'dateTime' * Test the property 'dateTime'
*/ */
void "FormatTest property dateTime test"() { void 'FormatTest property dateTime test'() {
// TODO: test dateTime // TODO: test dateTime property of FormatTest
} }
/** /**
* Test the property 'uuid' * Test the property 'uuid'
*/ */
void "FormatTest property uuid test"() { void 'FormatTest property uuid test'() {
// TODO: test uuid // TODO: test uuid property of FormatTest
} }
/** /**
* Test the property 'password' * Test the property 'password'
*/ */
void "FormatTest property password test"() { void 'FormatTest property password test'() {
// TODO: test password // TODO: test password property of FormatTest
} }
/** /**
* Test the property 'bigDecimal' * Test the property 'bigDecimal'
*/ */
void "FormatTest property bigDecimal test"() { void 'FormatTest property bigDecimal test'() {
// TODO: test bigDecimal // TODO: test bigDecimal property of FormatTest
} }
} }

View File

@ -1,7 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import com.fasterxml.jackson.annotation.JsonTypeName
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification import spock.lang.Specification
import jakarta.inject.Inject import jakarta.inject.Inject
@ -11,27 +10,27 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class HasOnlyReadOnlySpec extends Specification { public class HasOnlyReadOnlySpec extends Specification {
private final HasOnlyReadOnly model = new HasOnlyReadOnly() private final HasOnlyReadOnly model = null
/** /**
* Model tests for HasOnlyReadOnly * Model tests for HasOnlyReadOnly
*/ */
void "HasOnlyReadOnly test"() { void 'HasOnlyReadOnly test'() {
// TODO: test HasOnlyReadOnly // TODO: test HasOnlyReadOnly
} }
/** /**
* Test the property 'bar' * Test the property 'bar'
*/ */
void "HasOnlyReadOnly property bar test"() { void 'HasOnlyReadOnly property bar test'() {
// TODO: test bar // TODO: test bar property of HasOnlyReadOnly
} }
/** /**
* Test the property 'foo' * Test the property 'foo'
*/ */
void "HasOnlyReadOnly property foo test"() { void 'HasOnlyReadOnly property foo test'() {
// TODO: test foo // TODO: test foo property of HasOnlyReadOnly
} }
} }

View File

@ -1,7 +1,5 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap import java.util.HashMap
import java.util.List import java.util.List
import java.util.Map import java.util.Map
@ -14,41 +12,41 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class MapTestSpec extends Specification { public class MapTestSpec extends Specification {
private final MapTest model = new MapTest() private final MapTest model = null
/** /**
* Model tests for MapTest * Model tests for MapTest
*/ */
void "MapTest test"() { void 'MapTest test'() {
// TODO: test MapTest // TODO: test MapTest
} }
/** /**
* Test the property 'mapMapOfString' * Test the property 'mapMapOfString'
*/ */
void "MapTest property mapMapOfString test"() { void 'MapTest property mapMapOfString test'() {
// TODO: test mapMapOfString // TODO: test mapMapOfString property of MapTest
} }
/** /**
* Test the property 'mapOfEnumString' * Test the property 'mapOfEnumString'
*/ */
void "MapTest property mapOfEnumString test"() { void 'MapTest property mapOfEnumString test'() {
// TODO: test mapOfEnumString // TODO: test mapOfEnumString property of MapTest
} }
/** /**
* Test the property 'directMap' * Test the property 'directMap'
*/ */
void "MapTest property directMap test"() { void 'MapTest property directMap test'() {
// TODO: test directMap // TODO: test directMap property of MapTest
} }
/** /**
* Test the property 'indirectMap' * Test the property 'indirectMap'
*/ */
void "MapTest property indirectMap test"() { void 'MapTest property indirectMap test'() {
// TODO: test indirectMap // TODO: test indirectMap property of MapTest
} }
} }

View File

@ -1,8 +1,6 @@
package org.openapitools.model package org.openapitools.model
import io.swagger.annotations.ApiModel import java.time.OffsetDateTime
import io.swagger.annotations.ApiModelProperty
import java.time.LocalDateTime
import java.util.HashMap import java.util.HashMap
import java.util.List import java.util.List
import java.util.Map import java.util.Map
@ -17,34 +15,34 @@ import jakarta.inject.Inject
*/ */
@MicronautTest @MicronautTest
public class MixedPropertiesAndAdditionalPropertiesClassSpec extends Specification { public class MixedPropertiesAndAdditionalPropertiesClassSpec extends Specification {
private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass() private final MixedPropertiesAndAdditionalPropertiesClass model = null
/** /**
* Model tests for MixedPropertiesAndAdditionalPropertiesClass * Model tests for MixedPropertiesAndAdditionalPropertiesClass
*/ */
void "MixedPropertiesAndAdditionalPropertiesClass test"() { void 'MixedPropertiesAndAdditionalPropertiesClass test'() {
// TODO: test MixedPropertiesAndAdditionalPropertiesClass // TODO: test MixedPropertiesAndAdditionalPropertiesClass
} }
/** /**
* Test the property 'uuid' * Test the property 'uuid'
*/ */
void "MixedPropertiesAndAdditionalPropertiesClass property uuid test"() { void 'MixedPropertiesAndAdditionalPropertiesClass property uuid test'() {
// TODO: test uuid // TODO: test uuid property of MixedPropertiesAndAdditionalPropertiesClass
} }
/** /**
* Test the property 'dateTime' * Test the property 'dateTime'
*/ */
void "MixedPropertiesAndAdditionalPropertiesClass property dateTime test"() { void 'MixedPropertiesAndAdditionalPropertiesClass property dateTime test'() {
// TODO: test dateTime // TODO: test dateTime property of MixedPropertiesAndAdditionalPropertiesClass
} }
/** /**
* Test the property 'map' * Test the property 'map'
*/ */
void "MixedPropertiesAndAdditionalPropertiesClass property map test"() { void 'MixedPropertiesAndAdditionalPropertiesClass property map test'() {
// TODO: test map // TODO: test map property of MixedPropertiesAndAdditionalPropertiesClass
} }
} }

Some files were not shown because too many files have changed in this diff Show More