withXml replaces useJaxbAnnotations (#6152)

* Regenerated bin/jaxrs-*

* Replace `useJaxbAnnotations` with `withXml`
This commit is contained in:
mobreza 2017-08-03 15:35:33 +08:00 committed by wing328
parent f26281fa5b
commit b433afebdd
85 changed files with 407 additions and 456 deletions

View File

@ -46,7 +46,7 @@ mvn clean compile
- `apiPackage` - the package to use for generated api objects/classes
- `invokerPackage` - the package to use for the generated invoker objects
- `modelNamePrefix` and `modelNameSuffix` - Sets the pre- or suffix for model classes and enums
- `useJaxbAnnotations` - enable Jaxb annotations inside the generated models
- `withXml` - enable XML annotations inside the generated models and API (only works with Java `language` and libraries that provide support for JSON and XML)
- `configOptions` - a map of language-specific parameters (see below)
- `configHelp` - dumps the configuration help for the specified library (generates no sources)
- `ignoreFileOverride` - specifies the full path to a `.swagger-codegen-ignore` used for pattern based overrides of generated outputs

View File

@ -150,7 +150,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
.SERIALIZE_BIG_DECIMAL_AS_STRING_DESC));
cliOptions.add(CliOption.newBoolean(FULL_JAVA_UTIL, "whether to use fully qualified name for classes under java.util. This option only works for Java API client"));
cliOptions.add(new CliOption("hideGenerationTimestamp", "hides the timestamp when files were generated"));
cliOptions.add(CliOption.newBoolean(WITH_XML, "whether to include support for application/xml content type. This option only works for Java API client (resttemplate)"));
cliOptions.add(CliOption.newBoolean(WITH_XML, "whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)"));
CliOption dateLibrary = new CliOption(DATE_LIBRARY, "Option. Date library to use");
Map<String, String> dateOptions = new HashMap<String, String>();

View File

@ -11,20 +11,17 @@ import org.slf4j.LoggerFactory;
import io.swagger.codegen.CliOption;
import io.swagger.codegen.CodegenModel;
import io.swagger.codegen.CodegenOperation;
import io.swagger.codegen.CodegenParameter;
import io.swagger.codegen.CodegenProperty;
import io.swagger.codegen.CodegenResponse;
import io.swagger.codegen.CodegenType;
import io.swagger.codegen.SupportingFile;
import io.swagger.codegen.languages.features.BeanValidationFeatures;
import io.swagger.codegen.languages.features.GzipTestFeatures;
import io.swagger.codegen.languages.features.JaxbFeatures;
import io.swagger.codegen.languages.features.LoggingTestFeatures;
import io.swagger.codegen.languages.features.UseGenericResponseFeatures;
import io.swagger.models.Operation;
public class JavaCXFClientCodegen extends AbstractJavaCodegen
implements BeanValidationFeatures, UseGenericResponseFeatures, JaxbFeatures, GzipTestFeatures, LoggingTestFeatures {
implements BeanValidationFeatures, UseGenericResponseFeatures, GzipTestFeatures, LoggingTestFeatures {
private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFClientCodegen.class);
@ -34,8 +31,6 @@ private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFClientCodege
*/
protected static final String JAXRS_TEMPLATE_DIRECTORY_NAME = "JavaJaxRS";
protected boolean useJaxbAnnotations = true;
protected boolean useBeanValidation = false;
protected boolean useGenericResponse = false;
@ -73,8 +68,6 @@ private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFClientCodege
embeddedTemplateDir = templateDir = JAXRS_TEMPLATE_DIRECTORY_NAME + File.separator + "cxf";
cliOptions.add(CliOption.newBoolean(USE_JAXB_ANNOTATIONS, "Use JAXB annotations for XML"));
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
cliOptions.add(CliOption.newBoolean(USE_GZIP_FEATURE_FOR_TESTS, "Use Gzip Feature for tests"));
@ -89,11 +82,6 @@ private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFClientCodege
{
super.processOpts();
if (additionalProperties.containsKey(USE_JAXB_ANNOTATIONS)) {
boolean useJaxbAnnotationsProp = convertPropertyToBooleanAndWriteBack(USE_JAXB_ANNOTATIONS);
this.setUseJaxbAnnotations(useJaxbAnnotationsProp);
}
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
boolean useBeanValidationProp = convertPropertyToBooleanAndWriteBack(USE_BEANVALIDATION);
this.setUseBeanValidation(useBeanValidationProp);
@ -177,11 +165,6 @@ private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFClientCodege
this.useBeanValidation = useBeanValidation;
}
public void setUseJaxbAnnotations(boolean useJaxbAnnotations) {
this.useJaxbAnnotations = useJaxbAnnotations;
}
public void setUseGzipFeatureForTests(boolean useGzipFeatureForTests) {
this.useGzipFeatureForTests = useGzipFeatureForTests;
}

View File

@ -15,20 +15,17 @@ import io.swagger.codegen.CodegenProperty;
import io.swagger.codegen.SupportingFile;
import io.swagger.codegen.languages.features.CXFServerFeatures;
import io.swagger.codegen.languages.features.GzipTestFeatures;
import io.swagger.codegen.languages.features.JaxbFeatures;
import io.swagger.codegen.languages.features.LoggingTestFeatures;
import io.swagger.codegen.languages.features.UseGenericResponseFeatures;
import io.swagger.models.Operation;
public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
implements CXFServerFeatures, GzipTestFeatures, LoggingTestFeatures, JaxbFeatures, UseGenericResponseFeatures
implements CXFServerFeatures, GzipTestFeatures, LoggingTestFeatures, UseGenericResponseFeatures
{
private static final Logger LOGGER = LoggerFactory.getLogger(JavaCXFServerCodegen.class);
protected boolean addConsumesProducesJson = true;
protected boolean useJaxbAnnotations = true;
protected boolean generateSpringApplication = false;
protected boolean useSpringAnnotationConfig = false;
@ -86,8 +83,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
embeddedTemplateDir = templateDir = JAXRS_TEMPLATE_DIRECTORY_NAME + File.separator + "cxf";
cliOptions.add(CliOption.newBoolean(USE_JAXB_ANNOTATIONS, "Use JAXB annotations for XML"));
cliOptions.add(CliOption.newBoolean(GENERATE_SPRING_APPLICATION, "Generate Spring application"));
cliOptions.add(CliOption.newBoolean(USE_SPRING_ANNOTATION_CONFIG, "Use Spring Annotation Config"));
@ -124,11 +119,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
{
super.processOpts();
if (additionalProperties.containsKey(USE_JAXB_ANNOTATIONS)) {
boolean useJaxbAnnotationsProp = convertPropertyToBooleanAndWriteBack(USE_JAXB_ANNOTATIONS);
this.setUseJaxbAnnotations(useJaxbAnnotationsProp);
}
if (additionalProperties.containsKey(ADD_CONSUMES_PRODUCES_JSON)) {
this.setAddConsumesProducesJson(convertPropertyToBooleanAndWriteBack(ADD_CONSUMES_PRODUCES_JSON));
}
@ -288,10 +278,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
this.generateSpringBootApplication = generateSpringBootApplication;
}
public void setUseJaxbAnnotations(boolean useJaxbAnnotations) {
this.useJaxbAnnotations = useJaxbAnnotations;
}
public void setGenerateJbossDeploymentDescriptor(boolean generateJbossDeploymentDescriptor) {
this.generateJbossDeploymentDescriptor = generateJbossDeploymentDescriptor;
}

View File

@ -1,7 +0,0 @@
package io.swagger.codegen.languages.features;
public interface JaxbFeatures {
public static final String USE_JAXB_ANNOTATIONS = "useJaxbAnnotations";
public void setUseJaxbAnnotations(boolean useJaxbAnnotations);
}

View File

@ -7,14 +7,14 @@ import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
{{#useJaxbAnnotations}}
{{#withXml}}
@XmlAccessorType(XmlAccessType.FIELD)
{{#hasVars}} @XmlType(name = "{{classname}}", propOrder =
{ {{#vars}}"{{name}}"{{^-last}}, {{/-last}}{{/vars}}
}){{/hasVars}}
{{^hasVars}}@XmlType(name = "{{classname}}"){{/hasVars}}
{{^parent}}@XmlRootElement(name="{{classname}}"){{/parent}}
{{/useJaxbAnnotations}}
{{/withXml}}
{{#description}}
@ApiModel(description="{{{description}}}")
{{/description}}
@ -24,9 +24,9 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
{{>enumClass}}{{/isContainer}}{{/isEnum}}{{#items.isEnum}}{{#items}}
{{^isContainer}}{{>enumClass}}{{/isContainer}}{{/items}}{{/items.isEnum}}
{{#useJaxbAnnotations}}
{{#withXml}}
@XmlElement(name="{{baseName}}"{{#required}}, required = {{required}}{{/required}})
{{/useJaxbAnnotations}}
{{/withXml}}
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}")
private {{{datatypeWithEnum}}} {{name}} = {{{defaultValue}}};{{/vars}}

View File

@ -3,7 +3,6 @@ package io.swagger.codegen.java;
import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig;
import io.swagger.codegen.options.JavaClientOptionsProvider;
import io.swagger.codegen.options.JavaClientOptionsProvider;
import io.swagger.codegen.languages.JavaClientCodegen;
import io.swagger.codegen.options.OptionsProvider;

View File

@ -4,7 +4,6 @@ import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig;
import io.swagger.codegen.languages.JavaCXFClientCodegen;
import io.swagger.codegen.options.JavaCXFClientOptionsProvider;
import io.swagger.codegen.options.JavaCXFServerOptionsProvider;
import io.swagger.codegen.options.OptionsProvider;
import mockit.Expectations;
import mockit.Tested;
@ -67,11 +66,6 @@ public class JaxrsCXFClientOptionsTest extends AbstractOptionsTest {
Boolean.valueOf(JavaCXFClientOptionsProvider.USE_LOGGING_FEATURE_FOR_TESTS));
times = 1;
clientCodegen.setUseJaxbAnnotations(Boolean.valueOf(JavaCXFClientOptionsProvider.USE_JAXB_ANNOTATIONS));
times = 1;
}
};
}

View File

@ -87,9 +87,6 @@ public class JaxrsCXFServerOptionsTest extends AbstractOptionsTest {
Boolean.valueOf(JavaCXFServerOptionsProvider.GENERATE_SPRING_BOOT_APPLICATION));
times = 1;
clientCodegen.setUseJaxbAnnotations(Boolean.valueOf(JavaCXFServerOptionsProvider.USE_JAXB_ANNOTATIONS));
times = 1;
clientCodegen.setUseSpringAnnotationConfig(
Boolean.valueOf(JavaCXFServerOptionsProvider.USE_SPRING_ANNOTATION_CONFIG));
times = 1;

View File

@ -10,8 +10,6 @@ public class JavaCXFClientOptionsProvider extends JavaOptionsProvider {
public static final String USE_BEANVALIDATION = "true";
public static final String USE_JAXB_ANNOTATIONS = "true";
public static final String USE_GZIP_FEATURE_FOR_TESTS = "true";
public static final String USE_LOGGING_FEATURE_FOR_TESTS = "true";
@ -39,7 +37,6 @@ public class JavaCXFClientOptionsProvider extends JavaOptionsProvider {
builder.put(JavaCXFClientCodegen.USE_BEANVALIDATION, JavaCXFClientOptionsProvider.USE_BEANVALIDATION);
builder.put(JavaCXFClientCodegen.USE_GENERIC_RESPONSE, JavaCXFClientOptionsProvider.USE_GENERIC_RESPONSE);
builder.put(JavaCXFClientCodegen.USE_JAXB_ANNOTATIONS, USE_JAXB_ANNOTATIONS);
builder.put(JavaCXFClientCodegen.USE_GZIP_FEATURE_FOR_TESTS, USE_GZIP_FEATURE_FOR_TESTS);
builder.put(JavaCXFClientCodegen.USE_LOGGING_FEATURE_FOR_TESTS, USE_LOGGING_FEATURE_FOR_TESTS);

View File

@ -9,8 +9,6 @@ import io.swagger.codegen.languages.JavaCXFServerCodegen;
public class JavaCXFServerOptionsProvider extends JavaOptionsProvider {
public static final String USE_JAXB_ANNOTATIONS = "true";
public static final String GENERATE_SPRING_APPLICATION = "true";
public static final String USE_SWAGGER_FEATURE = "true";
@ -69,7 +67,6 @@ public class JavaCXFServerOptionsProvider extends JavaOptionsProvider {
builder.put("title", "Test title");
builder.put(JavaCXFServerCodegen.USE_BEANVALIDATION, JavaOptionsProvider.USE_BEANVALIDATION);
builder.put(JavaCXFServerCodegen.USE_JAXB_ANNOTATIONS, USE_JAXB_ANNOTATIONS);
builder.put(JavaCXFServerCodegen.GENERATE_SPRING_APPLICATION, GENERATE_SPRING_APPLICATION);
builder.put(JavaCXFServerCodegen.USE_SPRING_ANNOTATION_CONFIG, USE_SPRING_ANNOTATION_CONFIG);

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -108,8 +108,8 @@
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ "available", "pending", "sold" ],
"default" : "available"
"default" : "available",
"enum" : [ "available", "pending", "sold" ]
},
"collectionFormat" : "csv"
} ],

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -21,4 +21,3 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
pom.xml

View File

@ -1,11 +0,0 @@
#!/bin/bash
java -version 2>&1 | grep "java version \"1.8"
if [ $? -eq 0 ]
then
echo "Running JDK8"
mvn test
else
echo "Not running JDK8"
fi

View File

@ -14,6 +14,18 @@
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
@ -34,23 +46,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>Play Test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>./mvn_test_jdk8_only.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -108,8 +108,8 @@
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ "available", "pending", "sold" ],
"default" : "available"
"default" : "available",
"enum" : [ "available", "pending", "sold" ]
},
"collectionFormat" : "csv"
} ],
@ -676,8 +676,8 @@
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ ">", "$" ],
"default" : "$"
"default" : "$",
"enum" : [ ">", "$" ]
}
}, {
"name" : "enum_form_string",
@ -695,8 +695,8 @@
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ ">", "$" ],
"default" : "$"
"default" : "$",
"enum" : [ ">", "$" ]
}
}, {
"name" : "enum_header_string",
@ -714,8 +714,8 @@
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ ">", "$" ],
"default" : "$"
"default" : "$",
"enum" : [ ">", "$" ]
}
}, {
"name" : "enum_query_string",

View File

@ -1 +1 @@
2.2.3-SNAPSHOT
2.3.0-SNAPSHOT

View File

@ -134,7 +134,7 @@ public class FakeApi {
@Consumes({ "*/*" })
@Produces({ "*/*" })
@io.swagger.annotations.ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", response = void.class, tags={ "fake" })
@io.swagger.annotations.ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", response = void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = void.class),
@io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = void.class) })
@ -151,4 +151,18 @@ public class FakeApi {
throws NotFoundException {
return delegate.testEnumParameters(enumFormStringArray,enumFormString,enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,securityContext);
}
@GET
@Path("/jsonFormData")
@Consumes({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "test json serialization of form data", notes = "", response = void.class, tags={ "fake" })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
public Response testJsonFormData(
@ApiParam(value = "field1", required=true) @FormParam("param") String param,
@ApiParam(value = "field2", required=true) @FormParam("param2") String param2,
@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testJsonFormData(param,param2,securityContext);
}
}

View File

@ -37,4 +37,6 @@ public abstract class FakeApiService {
throws NotFoundException;
public abstract Response testEnumParameters(List<String> enumFormStringArray,String enumFormString,List<String> enumHeaderStringArray,String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger,Double enumQueryDouble,SecurityContext securityContext)
throws NotFoundException;
public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext)
throws NotFoundException;
}

View File

@ -47,10 +47,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapProperty
* @return mapProperty
**/
**/
@JsonProperty("map_property")
@ApiModelProperty(value = "")
public Map<String, String> getMapProperty() {
@ -74,10 +74,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapOfMapProperty
* @return mapOfMapProperty
**/
**/
@JsonProperty("map_of_map_property")
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapOfMapProperty() {

View File

@ -38,10 +38,10 @@ public class Animal {
return this;
}
/**
/**
* Get className
* @return className
**/
**/
@JsonProperty("className")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -58,10 +58,10 @@ public class Animal {
return this;
}
/**
/**
* Get color
* @return color
**/
**/
@JsonProperty("color")
@ApiModelProperty(value = "")
public String getColor() {

View File

@ -44,10 +44,10 @@ public class ArrayOfArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
**/
@JsonProperty("ArrayArrayNumber")
@ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() {

View File

@ -44,10 +44,10 @@ public class ArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayNumber
* @return arrayNumber
**/
**/
@JsonProperty("ArrayNumber")
@ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() {

View File

@ -50,10 +50,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayOfString
* @return arrayOfString
**/
**/
@JsonProperty("array_of_string")
@ApiModelProperty(value = "")
public List<String> getArrayOfString() {
@ -77,10 +77,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
**/
@JsonProperty("array_array_of_integer")
@ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() {
@ -104,10 +104,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
**/
@JsonProperty("array_array_of_model")
@ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {

View File

@ -48,10 +48,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallCamel
* @return smallCamel
**/
**/
@JsonProperty("smallCamel")
@ApiModelProperty(value = "")
public String getSmallCamel() {
@ -67,10 +67,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalCamel
* @return capitalCamel
**/
**/
@JsonProperty("CapitalCamel")
@ApiModelProperty(value = "")
public String getCapitalCamel() {
@ -86,10 +86,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallSnake
* @return smallSnake
**/
**/
@JsonProperty("small_Snake")
@ApiModelProperty(value = "")
public String getSmallSnake() {
@ -105,10 +105,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalSnake
* @return capitalSnake
**/
**/
@JsonProperty("Capital_Snake")
@ApiModelProperty(value = "")
public String getCapitalSnake() {
@ -124,10 +124,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
**/
@JsonProperty("SCA_ETH_Flow_Points")
@ApiModelProperty(value = "")
public String getScAETHFlowPoints() {
@ -143,10 +143,10 @@ public class Capitalization {
return this;
}
/**
/**
* Name of the pet
* @return ATT_NAME
**/
**/
@JsonProperty("ATT_NAME")
@ApiModelProperty(value = "Name of the pet ")
public String getATTNAME() {

View File

@ -34,10 +34,10 @@ public class Cat extends Animal {
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
**/
@JsonProperty("declawed")
@ApiModelProperty(value = "")
public Boolean getDeclawed() {

View File

@ -36,10 +36,10 @@ public class Category {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -55,10 +55,10 @@ public class Category {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public String getName() {

View File

@ -34,10 +34,10 @@ public class ClassModel {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@JsonProperty("_class")
@ApiModelProperty(value = "")
public String getPropertyClass() {

View File

@ -33,10 +33,10 @@ public class Client {
return this;
}
/**
/**
* Get client
* @return client
**/
**/
@JsonProperty("client")
@ApiModelProperty(value = "")
public String getClient() {

View File

@ -34,10 +34,10 @@ public class Dog extends Animal {
return this;
}
/**
/**
* Get breed
* @return breed
**/
**/
@JsonProperty("breed")
@ApiModelProperty(value = "")
public String getBreed() {

View File

@ -101,10 +101,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get justSymbol
* @return justSymbol
**/
**/
@JsonProperty("just_symbol")
@ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() {
@ -128,10 +128,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get arrayEnum
* @return arrayEnum
**/
**/
@JsonProperty("array_enum")
@ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() {

View File

@ -139,10 +139,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumString
* @return enumString
**/
**/
@JsonProperty("enum_string")
@ApiModelProperty(value = "")
public EnumStringEnum getEnumString() {
@ -158,10 +158,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumInteger
* @return enumInteger
**/
**/
@JsonProperty("enum_integer")
@ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() {
@ -177,10 +177,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumNumber
* @return enumNumber
**/
**/
@JsonProperty("enum_number")
@ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() {
@ -196,10 +196,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnum
* @return outerEnum
**/
**/
@JsonProperty("outerEnum")
@ApiModelProperty(value = "")
public OuterEnum getOuterEnum() {

View File

@ -72,12 +72,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get integer
* minimum: 10
* maximum: 100
* @return integer
**/
**/
@JsonProperty("integer")
@ApiModelProperty(value = "")
@Min(10) @Max(100) public Integer getInteger() {
@ -93,12 +93,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get int32
* minimum: 20
* maximum: 200
* @return int32
**/
**/
@JsonProperty("int32")
@ApiModelProperty(value = "")
@Min(20) @Max(200) public Integer getInt32() {
@ -114,10 +114,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get int64
* @return int64
**/
**/
@JsonProperty("int64")
@ApiModelProperty(value = "")
public Long getInt64() {
@ -133,12 +133,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get number
* minimum: 32.1
* maximum: 543.2
* @return number
**/
**/
@JsonProperty("number")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -155,12 +155,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _float
* minimum: 54.3
* maximum: 987.6
* @return _float
**/
**/
@JsonProperty("float")
@ApiModelProperty(value = "")
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
@ -176,12 +176,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _double
* minimum: 67.8
* maximum: 123.4
* @return _double
**/
**/
@JsonProperty("double")
@ApiModelProperty(value = "")
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
@ -197,10 +197,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get string
* @return string
**/
**/
@JsonProperty("string")
@ApiModelProperty(value = "")
@Pattern(regexp="/[a-z]/i") public String getString() {
@ -216,14 +216,14 @@ public class FormatTest {
return this;
}
/**
/**
* Get _byte
* @return _byte
**/
**/
@JsonProperty("byte")
@ApiModelProperty(required = true, value = "")
@NotNull
public byte[] getByte() {
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
return _byte;
}
@ -236,10 +236,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get binary
* @return binary
**/
**/
@JsonProperty("binary")
@ApiModelProperty(value = "")
public byte[] getBinary() {
@ -255,10 +255,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get date
* @return date
**/
**/
@JsonProperty("date")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -275,10 +275,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@JsonProperty("dateTime")
@ApiModelProperty(value = "")
public Date getDateTime() {
@ -294,10 +294,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@JsonProperty("uuid")
@ApiModelProperty(value = "")
public UUID getUuid() {
@ -313,10 +313,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@JsonProperty("password")
@ApiModelProperty(required = true, value = "")
@NotNull

View File

@ -31,20 +31,20 @@ public class HasOnlyReadOnly {
@JsonProperty("foo")
private String foo = null;
/**
/**
* Get bar
* @return bar
**/
**/
@JsonProperty("bar")
@ApiModelProperty(value = "")
public String getBar() {
return bar;
}
/**
/**
* Get foo
* @return foo
**/
**/
@JsonProperty("foo")
@ApiModelProperty(value = "")
public String getFoo() {

View File

@ -79,10 +79,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapMapOfString
* @return mapMapOfString
**/
**/
@JsonProperty("map_map_of_string")
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() {
@ -106,10 +106,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapOfEnumString
* @return mapOfEnumString
**/
**/
@JsonProperty("map_of_enum_string")
@ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() {

View File

@ -45,10 +45,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@JsonProperty("uuid")
@ApiModelProperty(value = "")
public UUID getUuid() {
@ -64,10 +64,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@JsonProperty("dateTime")
@ApiModelProperty(value = "")
public Date getDateTime() {
@ -91,10 +91,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get map
* @return map
**/
**/
@JsonProperty("map")
@ApiModelProperty(value = "")
public Map<String, Animal> getMap() {

View File

@ -37,10 +37,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public Integer getName() {
@ -56,10 +56,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@JsonProperty("class")
@ApiModelProperty(value = "")
public String getPropertyClass() {

View File

@ -39,10 +39,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get code
* @return code
**/
**/
@JsonProperty("code")
@ApiModelProperty(value = "")
public Integer getCode() {
@ -58,10 +58,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get type
* @return type
**/
**/
@JsonProperty("type")
@ApiModelProperty(value = "")
public String getType() {
@ -77,10 +77,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get message
* @return message
**/
**/
@JsonProperty("message")
@ApiModelProperty(value = "")
public String getMessage() {

View File

@ -34,10 +34,10 @@ public class ModelReturn {
return this;
}
/**
/**
* Get _return
* @return _return
**/
**/
@JsonProperty("return")
@ApiModelProperty(value = "")
public Integer getReturn() {

View File

@ -43,10 +43,10 @@ public class Name {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -58,10 +58,10 @@ public class Name {
this.name = name;
}
/**
/**
* Get snakeCase
* @return snakeCase
**/
**/
@JsonProperty("snake_case")
@ApiModelProperty(value = "")
public Integer getSnakeCase() {
@ -73,10 +73,10 @@ public class Name {
return this;
}
/**
/**
* Get property
* @return property
**/
**/
@JsonProperty("property")
@ApiModelProperty(value = "")
public String getProperty() {
@ -87,10 +87,10 @@ public class Name {
this.property = property;
}
/**
/**
* Get _123Number
* @return _123Number
**/
**/
@JsonProperty("123Number")
@ApiModelProperty(value = "")
public Integer get123Number() {

View File

@ -34,10 +34,10 @@ public class NumberOnly {
return this;
}
/**
/**
* Get justNumber
* @return justNumber
**/
**/
@JsonProperty("JustNumber")
@ApiModelProperty(value = "")
public BigDecimal getJustNumber() {

View File

@ -83,10 +83,10 @@ public class Order {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -102,10 +102,10 @@ public class Order {
return this;
}
/**
/**
* Get petId
* @return petId
**/
**/
@JsonProperty("petId")
@ApiModelProperty(value = "")
public Long getPetId() {
@ -121,10 +121,10 @@ public class Order {
return this;
}
/**
/**
* Get quantity
* @return quantity
**/
**/
@JsonProperty("quantity")
@ApiModelProperty(value = "")
public Integer getQuantity() {
@ -140,10 +140,10 @@ public class Order {
return this;
}
/**
/**
* Get shipDate
* @return shipDate
**/
**/
@JsonProperty("shipDate")
@ApiModelProperty(value = "")
public Date getShipDate() {
@ -159,10 +159,10 @@ public class Order {
return this;
}
/**
/**
* Order Status
* @return status
**/
**/
@JsonProperty("status")
@ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() {
@ -178,10 +178,10 @@ public class Order {
return this;
}
/**
/**
* Get complete
* @return complete
**/
**/
@JsonProperty("complete")
@ApiModelProperty(value = "")
public Boolean getComplete() {

View File

@ -40,10 +40,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myNumber
* @return myNumber
**/
**/
@JsonProperty("my_number")
@ApiModelProperty(value = "")
public BigDecimal getMyNumber() {
@ -59,10 +59,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myString
* @return myString
**/
**/
@JsonProperty("my_string")
@ApiModelProperty(value = "")
public String getMyString() {
@ -78,10 +78,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myBoolean
* @return myBoolean
**/
**/
@JsonProperty("my_boolean")
@ApiModelProperty(value = "")
public Boolean getMyBoolean() {

View File

@ -86,10 +86,10 @@ public class Pet {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -105,10 +105,10 @@ public class Pet {
return this;
}
/**
/**
* Get category
* @return category
**/
**/
@JsonProperty("category")
@ApiModelProperty(value = "")
public Category getCategory() {
@ -124,10 +124,10 @@ public class Pet {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(example = "doggie", required = true, value = "")
@NotNull
@ -149,10 +149,10 @@ public class Pet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
**/
@JsonProperty("photoUrls")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -177,10 +177,10 @@ public class Pet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
**/
@JsonProperty("tags")
@ApiModelProperty(value = "")
public List<Tag> getTags() {
@ -196,10 +196,10 @@ public class Pet {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
**/
@JsonProperty("status")
@ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() {

View File

@ -31,10 +31,10 @@ public class ReadOnlyFirst {
@JsonProperty("baz")
private String baz = null;
/**
/**
* Get bar
* @return bar
**/
**/
@JsonProperty("bar")
@ApiModelProperty(value = "")
public String getBar() {
@ -46,10 +46,10 @@ public class ReadOnlyFirst {
return this;
}
/**
/**
* Get baz
* @return baz
**/
**/
@JsonProperty("baz")
@ApiModelProperty(value = "")
public String getBaz() {

View File

@ -33,10 +33,10 @@ public class SpecialModelName {
return this;
}
/**
/**
* Get specialPropertyName
* @return specialPropertyName
**/
**/
@JsonProperty("$special[property.name]")
@ApiModelProperty(value = "")
public Long getSpecialPropertyName() {

View File

@ -36,10 +36,10 @@ public class Tag {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -55,10 +55,10 @@ public class Tag {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public String getName() {

View File

@ -54,10 +54,10 @@ public class User {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -73,10 +73,10 @@ public class User {
return this;
}
/**
/**
* Get username
* @return username
**/
**/
@JsonProperty("username")
@ApiModelProperty(value = "")
public String getUsername() {
@ -92,10 +92,10 @@ public class User {
return this;
}
/**
/**
* Get firstName
* @return firstName
**/
**/
@JsonProperty("firstName")
@ApiModelProperty(value = "")
public String getFirstName() {
@ -111,10 +111,10 @@ public class User {
return this;
}
/**
/**
* Get lastName
* @return lastName
**/
**/
@JsonProperty("lastName")
@ApiModelProperty(value = "")
public String getLastName() {
@ -130,10 +130,10 @@ public class User {
return this;
}
/**
/**
* Get email
* @return email
**/
**/
@JsonProperty("email")
@ApiModelProperty(value = "")
public String getEmail() {
@ -149,10 +149,10 @@ public class User {
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@JsonProperty("password")
@ApiModelProperty(value = "")
public String getPassword() {
@ -168,10 +168,10 @@ public class User {
return this;
}
/**
/**
* Get phone
* @return phone
**/
**/
@JsonProperty("phone")
@ApiModelProperty(value = "")
public String getPhone() {
@ -187,10 +187,10 @@ public class User {
return this;
}
/**
/**
* User Status
* @return userStatus
**/
**/
@JsonProperty("userStatus")
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {

View File

@ -65,4 +65,10 @@ public class FakeApiServiceImpl extends FakeApiService {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
}
@Override
public Response testJsonFormData(String param, String param2, SecurityContext securityContext)
throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
}
}

View File

@ -47,10 +47,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapProperty
* @return mapProperty
**/
**/
@JsonProperty("map_property")
@ApiModelProperty(value = "")
public Map<String, String> getMapProperty() {
@ -74,10 +74,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapOfMapProperty
* @return mapOfMapProperty
**/
**/
@JsonProperty("map_of_map_property")
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapOfMapProperty() {

View File

@ -38,10 +38,10 @@ public class Animal {
return this;
}
/**
/**
* Get className
* @return className
**/
**/
@JsonProperty("className")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -58,10 +58,10 @@ public class Animal {
return this;
}
/**
/**
* Get color
* @return color
**/
**/
@JsonProperty("color")
@ApiModelProperty(value = "")
public String getColor() {

View File

@ -44,10 +44,10 @@ public class ArrayOfArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
**/
@JsonProperty("ArrayArrayNumber")
@ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() {

View File

@ -44,10 +44,10 @@ public class ArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayNumber
* @return arrayNumber
**/
**/
@JsonProperty("ArrayNumber")
@ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() {

View File

@ -50,10 +50,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayOfString
* @return arrayOfString
**/
**/
@JsonProperty("array_of_string")
@ApiModelProperty(value = "")
public List<String> getArrayOfString() {
@ -77,10 +77,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
**/
@JsonProperty("array_array_of_integer")
@ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() {
@ -104,10 +104,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
**/
@JsonProperty("array_array_of_model")
@ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {

View File

@ -48,10 +48,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallCamel
* @return smallCamel
**/
**/
@JsonProperty("smallCamel")
@ApiModelProperty(value = "")
public String getSmallCamel() {
@ -67,10 +67,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalCamel
* @return capitalCamel
**/
**/
@JsonProperty("CapitalCamel")
@ApiModelProperty(value = "")
public String getCapitalCamel() {
@ -86,10 +86,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallSnake
* @return smallSnake
**/
**/
@JsonProperty("small_Snake")
@ApiModelProperty(value = "")
public String getSmallSnake() {
@ -105,10 +105,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalSnake
* @return capitalSnake
**/
**/
@JsonProperty("Capital_Snake")
@ApiModelProperty(value = "")
public String getCapitalSnake() {
@ -124,10 +124,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
**/
@JsonProperty("SCA_ETH_Flow_Points")
@ApiModelProperty(value = "")
public String getScAETHFlowPoints() {
@ -143,10 +143,10 @@ public class Capitalization {
return this;
}
/**
/**
* Name of the pet
* @return ATT_NAME
**/
**/
@JsonProperty("ATT_NAME")
@ApiModelProperty(value = "Name of the pet ")
public String getATTNAME() {

View File

@ -34,10 +34,10 @@ public class Cat extends Animal {
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
**/
@JsonProperty("declawed")
@ApiModelProperty(value = "")
public Boolean getDeclawed() {

View File

@ -36,10 +36,10 @@ public class Category {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -55,10 +55,10 @@ public class Category {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public String getName() {

View File

@ -34,10 +34,10 @@ public class ClassModel {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@JsonProperty("_class")
@ApiModelProperty(value = "")
public String getPropertyClass() {

View File

@ -33,10 +33,10 @@ public class Client {
return this;
}
/**
/**
* Get client
* @return client
**/
**/
@JsonProperty("client")
@ApiModelProperty(value = "")
public String getClient() {

View File

@ -34,10 +34,10 @@ public class Dog extends Animal {
return this;
}
/**
/**
* Get breed
* @return breed
**/
**/
@JsonProperty("breed")
@ApiModelProperty(value = "")
public String getBreed() {

View File

@ -101,10 +101,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get justSymbol
* @return justSymbol
**/
**/
@JsonProperty("just_symbol")
@ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() {
@ -128,10 +128,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get arrayEnum
* @return arrayEnum
**/
**/
@JsonProperty("array_enum")
@ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() {

View File

@ -139,10 +139,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumString
* @return enumString
**/
**/
@JsonProperty("enum_string")
@ApiModelProperty(value = "")
public EnumStringEnum getEnumString() {
@ -158,10 +158,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumInteger
* @return enumInteger
**/
**/
@JsonProperty("enum_integer")
@ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() {
@ -177,10 +177,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumNumber
* @return enumNumber
**/
**/
@JsonProperty("enum_number")
@ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() {
@ -196,10 +196,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnum
* @return outerEnum
**/
**/
@JsonProperty("outerEnum")
@ApiModelProperty(value = "")
public OuterEnum getOuterEnum() {

View File

@ -72,12 +72,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get integer
* minimum: 10
* maximum: 100
* @return integer
**/
**/
@JsonProperty("integer")
@ApiModelProperty(value = "")
@Min(10) @Max(100) public Integer getInteger() {
@ -93,12 +93,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get int32
* minimum: 20
* maximum: 200
* @return int32
**/
**/
@JsonProperty("int32")
@ApiModelProperty(value = "")
@Min(20) @Max(200) public Integer getInt32() {
@ -114,10 +114,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get int64
* @return int64
**/
**/
@JsonProperty("int64")
@ApiModelProperty(value = "")
public Long getInt64() {
@ -133,12 +133,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get number
* minimum: 32.1
* maximum: 543.2
* @return number
**/
**/
@JsonProperty("number")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -155,12 +155,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _float
* minimum: 54.3
* maximum: 987.6
* @return _float
**/
**/
@JsonProperty("float")
@ApiModelProperty(value = "")
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
@ -176,12 +176,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _double
* minimum: 67.8
* maximum: 123.4
* @return _double
**/
**/
@JsonProperty("double")
@ApiModelProperty(value = "")
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
@ -197,10 +197,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get string
* @return string
**/
**/
@JsonProperty("string")
@ApiModelProperty(value = "")
@Pattern(regexp="/[a-z]/i") public String getString() {
@ -216,10 +216,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get _byte
* @return _byte
**/
**/
@JsonProperty("byte")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -236,10 +236,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get binary
* @return binary
**/
**/
@JsonProperty("binary")
@ApiModelProperty(value = "")
public byte[] getBinary() {
@ -255,10 +255,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get date
* @return date
**/
**/
@JsonProperty("date")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -275,10 +275,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@JsonProperty("dateTime")
@ApiModelProperty(value = "")
public Date getDateTime() {
@ -294,10 +294,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@JsonProperty("uuid")
@ApiModelProperty(value = "")
public UUID getUuid() {
@ -313,10 +313,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@JsonProperty("password")
@ApiModelProperty(required = true, value = "")
@NotNull

View File

@ -31,20 +31,20 @@ public class HasOnlyReadOnly {
@JsonProperty("foo")
private String foo = null;
/**
/**
* Get bar
* @return bar
**/
**/
@JsonProperty("bar")
@ApiModelProperty(value = "")
public String getBar() {
return bar;
}
/**
/**
* Get foo
* @return foo
**/
**/
@JsonProperty("foo")
@ApiModelProperty(value = "")
public String getFoo() {

View File

@ -79,10 +79,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapMapOfString
* @return mapMapOfString
**/
**/
@JsonProperty("map_map_of_string")
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() {
@ -106,10 +106,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapOfEnumString
* @return mapOfEnumString
**/
**/
@JsonProperty("map_of_enum_string")
@ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() {

View File

@ -45,10 +45,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@JsonProperty("uuid")
@ApiModelProperty(value = "")
public UUID getUuid() {
@ -64,10 +64,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@JsonProperty("dateTime")
@ApiModelProperty(value = "")
public Date getDateTime() {
@ -91,10 +91,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get map
* @return map
**/
**/
@JsonProperty("map")
@ApiModelProperty(value = "")
public Map<String, Animal> getMap() {

View File

@ -37,10 +37,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public Integer getName() {
@ -56,10 +56,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@JsonProperty("class")
@ApiModelProperty(value = "")
public String getPropertyClass() {

View File

@ -39,10 +39,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get code
* @return code
**/
**/
@JsonProperty("code")
@ApiModelProperty(value = "")
public Integer getCode() {
@ -58,10 +58,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get type
* @return type
**/
**/
@JsonProperty("type")
@ApiModelProperty(value = "")
public String getType() {
@ -77,10 +77,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get message
* @return message
**/
**/
@JsonProperty("message")
@ApiModelProperty(value = "")
public String getMessage() {

View File

@ -34,10 +34,10 @@ public class ModelReturn {
return this;
}
/**
/**
* Get _return
* @return _return
**/
**/
@JsonProperty("return")
@ApiModelProperty(value = "")
public Integer getReturn() {

View File

@ -43,10 +43,10 @@ public class Name {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -58,10 +58,10 @@ public class Name {
this.name = name;
}
/**
/**
* Get snakeCase
* @return snakeCase
**/
**/
@JsonProperty("snake_case")
@ApiModelProperty(value = "")
public Integer getSnakeCase() {
@ -73,10 +73,10 @@ public class Name {
return this;
}
/**
/**
* Get property
* @return property
**/
**/
@JsonProperty("property")
@ApiModelProperty(value = "")
public String getProperty() {
@ -87,10 +87,10 @@ public class Name {
this.property = property;
}
/**
/**
* Get _123Number
* @return _123Number
**/
**/
@JsonProperty("123Number")
@ApiModelProperty(value = "")
public Integer get123Number() {

View File

@ -34,10 +34,10 @@ public class NumberOnly {
return this;
}
/**
/**
* Get justNumber
* @return justNumber
**/
**/
@JsonProperty("JustNumber")
@ApiModelProperty(value = "")
public BigDecimal getJustNumber() {

View File

@ -83,10 +83,10 @@ public class Order {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -102,10 +102,10 @@ public class Order {
return this;
}
/**
/**
* Get petId
* @return petId
**/
**/
@JsonProperty("petId")
@ApiModelProperty(value = "")
public Long getPetId() {
@ -121,10 +121,10 @@ public class Order {
return this;
}
/**
/**
* Get quantity
* @return quantity
**/
**/
@JsonProperty("quantity")
@ApiModelProperty(value = "")
public Integer getQuantity() {
@ -140,10 +140,10 @@ public class Order {
return this;
}
/**
/**
* Get shipDate
* @return shipDate
**/
**/
@JsonProperty("shipDate")
@ApiModelProperty(value = "")
public Date getShipDate() {
@ -159,10 +159,10 @@ public class Order {
return this;
}
/**
/**
* Order Status
* @return status
**/
**/
@JsonProperty("status")
@ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() {
@ -178,10 +178,10 @@ public class Order {
return this;
}
/**
/**
* Get complete
* @return complete
**/
**/
@JsonProperty("complete")
@ApiModelProperty(value = "")
public Boolean getComplete() {

View File

@ -40,10 +40,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myNumber
* @return myNumber
**/
**/
@JsonProperty("my_number")
@ApiModelProperty(value = "")
public BigDecimal getMyNumber() {
@ -59,10 +59,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myString
* @return myString
**/
**/
@JsonProperty("my_string")
@ApiModelProperty(value = "")
public String getMyString() {
@ -78,10 +78,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myBoolean
* @return myBoolean
**/
**/
@JsonProperty("my_boolean")
@ApiModelProperty(value = "")
public Boolean getMyBoolean() {

View File

@ -86,10 +86,10 @@ public class Pet {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -105,10 +105,10 @@ public class Pet {
return this;
}
/**
/**
* Get category
* @return category
**/
**/
@JsonProperty("category")
@ApiModelProperty(value = "")
public Category getCategory() {
@ -124,10 +124,10 @@ public class Pet {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(example = "doggie", required = true, value = "")
@NotNull
@ -149,10 +149,10 @@ public class Pet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
**/
@JsonProperty("photoUrls")
@ApiModelProperty(required = true, value = "")
@NotNull
@ -177,10 +177,10 @@ public class Pet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
**/
@JsonProperty("tags")
@ApiModelProperty(value = "")
public List<Tag> getTags() {
@ -196,10 +196,10 @@ public class Pet {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
**/
@JsonProperty("status")
@ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() {

View File

@ -31,10 +31,10 @@ public class ReadOnlyFirst {
@JsonProperty("baz")
private String baz = null;
/**
/**
* Get bar
* @return bar
**/
**/
@JsonProperty("bar")
@ApiModelProperty(value = "")
public String getBar() {
@ -46,10 +46,10 @@ public class ReadOnlyFirst {
return this;
}
/**
/**
* Get baz
* @return baz
**/
**/
@JsonProperty("baz")
@ApiModelProperty(value = "")
public String getBaz() {

View File

@ -33,10 +33,10 @@ public class SpecialModelName {
return this;
}
/**
/**
* Get specialPropertyName
* @return specialPropertyName
**/
**/
@JsonProperty("$special[property.name]")
@ApiModelProperty(value = "")
public Long getSpecialPropertyName() {

View File

@ -36,10 +36,10 @@ public class Tag {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -55,10 +55,10 @@ public class Tag {
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@JsonProperty("name")
@ApiModelProperty(value = "")
public String getName() {

View File

@ -54,10 +54,10 @@ public class User {
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@JsonProperty("id")
@ApiModelProperty(value = "")
public Long getId() {
@ -73,10 +73,10 @@ public class User {
return this;
}
/**
/**
* Get username
* @return username
**/
**/
@JsonProperty("username")
@ApiModelProperty(value = "")
public String getUsername() {
@ -92,10 +92,10 @@ public class User {
return this;
}
/**
/**
* Get firstName
* @return firstName
**/
**/
@JsonProperty("firstName")
@ApiModelProperty(value = "")
public String getFirstName() {
@ -111,10 +111,10 @@ public class User {
return this;
}
/**
/**
* Get lastName
* @return lastName
**/
**/
@JsonProperty("lastName")
@ApiModelProperty(value = "")
public String getLastName() {
@ -130,10 +130,10 @@ public class User {
return this;
}
/**
/**
* Get email
* @return email
**/
**/
@JsonProperty("email")
@ApiModelProperty(value = "")
public String getEmail() {
@ -149,10 +149,10 @@ public class User {
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@JsonProperty("password")
@ApiModelProperty(value = "")
public String getPassword() {
@ -168,10 +168,10 @@ public class User {
return this;
}
/**
/**
* Get phone
* @return phone
**/
**/
@JsonProperty("phone")
@ApiModelProperty(value = "")
public String getPhone() {
@ -187,10 +187,10 @@ public class User {
return this;
}
/**
/**
* User Status
* @return userStatus
**/
**/
@JsonProperty("userStatus")
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {