forked from loafle/openapi-generator-original
Merge branch 'jfiala-jaxrs_beanval_final_4091'
This commit is contained in:
commit
fd7d251241
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.codegen.languages;
|
package io.swagger.codegen.languages;
|
||||||
|
|
||||||
import io.swagger.codegen.*;
|
import io.swagger.codegen.*;
|
||||||
|
import io.swagger.codegen.languages.features.BeanValidationFeatures;
|
||||||
import io.swagger.models.Operation;
|
import io.swagger.models.Operation;
|
||||||
import io.swagger.models.Path;
|
import io.swagger.models.Path;
|
||||||
import io.swagger.models.Swagger;
|
import io.swagger.models.Swagger;
|
||||||
@ -10,7 +11,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen {
|
public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen implements BeanValidationFeatures {
|
||||||
/**
|
/**
|
||||||
* Name of the sub-directory in "src/main/resource" where to find the
|
* Name of the sub-directory in "src/main/resource" where to find the
|
||||||
* Mustache template for the JAX-RS Codegen.
|
* Mustache template for the JAX-RS Codegen.
|
||||||
@ -19,6 +20,9 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen
|
|||||||
protected String implFolder = "src/main/java";
|
protected String implFolder = "src/main/java";
|
||||||
protected String testResourcesFolder = "src/test/resources";
|
protected String testResourcesFolder = "src/test/resources";
|
||||||
protected String title = "Swagger Server";
|
protected String title = "Swagger Server";
|
||||||
|
|
||||||
|
protected boolean useBeanValidation = true;
|
||||||
|
|
||||||
static Logger LOGGER = LoggerFactory.getLogger(AbstractJavaJAXRSServerCodegen.class);
|
static Logger LOGGER = LoggerFactory.getLogger(AbstractJavaJAXRSServerCodegen.class);
|
||||||
|
|
||||||
public AbstractJavaJAXRSServerCodegen()
|
public AbstractJavaJAXRSServerCodegen()
|
||||||
@ -40,6 +44,8 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen
|
|||||||
cliOptions.add(new CliOption(CodegenConstants.IMPL_FOLDER, CodegenConstants.IMPL_FOLDER_DESC));
|
cliOptions.add(new CliOption(CodegenConstants.IMPL_FOLDER, CodegenConstants.IMPL_FOLDER_DESC));
|
||||||
cliOptions.add(new CliOption("title", "a title describing the application"));
|
cliOptions.add(new CliOption("title", "a title describing the application"));
|
||||||
|
|
||||||
|
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -60,6 +66,15 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen
|
|||||||
if (additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {
|
if (additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {
|
||||||
implFolder = (String) additionalProperties.get(CodegenConstants.IMPL_FOLDER);
|
implFolder = (String) additionalProperties.get(CodegenConstants.IMPL_FOLDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
||||||
|
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (useBeanValidation) {
|
||||||
|
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -204,4 +219,9 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen
|
|||||||
private String implFileFolder(String output) {
|
private String implFileFolder(String output) {
|
||||||
return outputFolder + "/" + output + "/" + apiPackage().replace('.', '/');
|
return outputFolder + "/" + output + "/" + apiPackage().replace('.', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setUseBeanValidation(boolean useBeanValidation) {
|
||||||
|
this.useBeanValidation = useBeanValidation;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
|
|||||||
protected boolean addConsumesProducesJson = true;
|
protected boolean addConsumesProducesJson = true;
|
||||||
|
|
||||||
protected boolean useJaxbAnnotations = true;
|
protected boolean useJaxbAnnotations = true;
|
||||||
|
|
||||||
protected boolean useBeanValidation = false;
|
|
||||||
|
|
||||||
protected boolean generateSpringApplication = false;
|
protected boolean generateSpringApplication = false;
|
||||||
|
|
||||||
@ -41,7 +39,7 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
|
|||||||
protected boolean useWadlFeature = false;
|
protected boolean useWadlFeature = false;
|
||||||
|
|
||||||
protected boolean useMultipartFeature = false;
|
protected boolean useMultipartFeature = false;
|
||||||
|
|
||||||
protected boolean useBeanValidationFeature = false;
|
protected boolean useBeanValidationFeature = false;
|
||||||
|
|
||||||
protected boolean generateSpringBootApplication= false;
|
protected boolean generateSpringBootApplication= false;
|
||||||
@ -84,7 +82,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
|
|||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_JAXB_ANNOTATIONS, "Use JAXB annotations for XML"));
|
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(GENERATE_SPRING_APPLICATION, "Generate Spring application"));
|
cliOptions.add(CliOption.newBoolean(GENERATE_SPRING_APPLICATION, "Generate Spring application"));
|
||||||
cliOptions.add(CliOption.newBoolean(USE_SPRING_ANNOTATION_CONFIG, "Use Spring Annotation Config"));
|
cliOptions.add(CliOption.newBoolean(USE_SPRING_ANNOTATION_CONFIG, "Use Spring Annotation Config"));
|
||||||
|
|
||||||
@ -121,11 +118,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
|
|||||||
this.setUseJaxbAnnotations(useJaxbAnnotationsProp);
|
this.setUseJaxbAnnotations(useJaxbAnnotationsProp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
|
||||||
boolean useBeanValidationProp = convertPropertyToBooleanAndWriteBack(USE_BEANVALIDATION);
|
|
||||||
this.setUseBeanValidation(useBeanValidationProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (additionalProperties.containsKey(ADD_CONSUMES_PRODUCES_JSON)) {
|
if (additionalProperties.containsKey(ADD_CONSUMES_PRODUCES_JSON)) {
|
||||||
this.setAddConsumesProducesJson(convertPropertyToBooleanAndWriteBack(ADD_CONSUMES_PRODUCES_JSON));
|
this.setAddConsumesProducesJson(convertPropertyToBooleanAndWriteBack(ADD_CONSUMES_PRODUCES_JSON));
|
||||||
}
|
}
|
||||||
@ -224,10 +216,6 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen
|
|||||||
return "Generates a Java JAXRS Server application based on Apache CXF framework.";
|
return "Generates a Java JAXRS Server application based on Apache CXF framework.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseBeanValidation(boolean useBeanValidation) {
|
|
||||||
this.useBeanValidation = useBeanValidation;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGenerateSpringApplication(boolean generateSpringApplication) {
|
public void setGenerateSpringApplication(boolean generateSpringApplication) {
|
||||||
this.generateSpringApplication = generateSpringApplication;
|
this.generateSpringApplication = generateSpringApplication;
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,8 @@ import io.swagger.models.Swagger;
|
|||||||
import io.swagger.models.properties.Property;
|
import io.swagger.models.properties.Property;
|
||||||
import io.swagger.util.Json;
|
import io.swagger.util.Json;
|
||||||
|
|
||||||
public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen implements BeanValidationFeatures
|
public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen
|
||||||
{
|
{
|
||||||
protected boolean useBeanValidation = true;
|
|
||||||
|
|
||||||
public JavaJAXRSSpecServerCodegen()
|
public JavaJAXRSSpecServerCodegen()
|
||||||
{
|
{
|
||||||
@ -71,8 +70,6 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen i
|
|||||||
library.setEnum(supportedLibraries);
|
library.setEnum(supportedLibraries);
|
||||||
|
|
||||||
cliOptions.add(library);
|
cliOptions.add(library);
|
||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -80,14 +77,6 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen i
|
|||||||
{
|
{
|
||||||
super.processOpts();
|
super.processOpts();
|
||||||
|
|
||||||
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
|
||||||
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (useBeanValidation) {
|
|
||||||
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
|
||||||
}
|
|
||||||
|
|
||||||
supportingFiles.clear(); // Don't need extra files provided by AbstractJAX-RS & Java Codegen
|
supportingFiles.clear(); // Don't need extra files provided by AbstractJAX-RS & Java Codegen
|
||||||
writeOptional(outputFolder, new SupportingFile("pom.mustache", "", "pom.xml"));
|
writeOptional(outputFolder, new SupportingFile("pom.mustache", "", "pom.xml"));
|
||||||
|
|
||||||
@ -159,9 +148,4 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen i
|
|||||||
{
|
{
|
||||||
return "Generates a Java JAXRS Server according to JAXRS 2.0 specification.";
|
return "Generates a Java JAXRS Server according to JAXRS 2.0 specification.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseBeanValidation(boolean useBeanValidation) {
|
|
||||||
this.useBeanValidation = useBeanValidation;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,10 @@ import java.util.*;
|
|||||||
import org.apache.commons.lang3.BooleanUtils;
|
import org.apache.commons.lang3.BooleanUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen implements BeanValidationFeatures {
|
public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen {
|
||||||
|
|
||||||
protected static final String LIBRARY_JERSEY1 = "jersey1";
|
protected static final String LIBRARY_JERSEY1 = "jersey1";
|
||||||
protected static final String LIBRARY_JERSEY2 = "jersey2";
|
protected static final String LIBRARY_JERSEY2 = "jersey2";
|
||||||
protected boolean useBeanValidation = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default library template to use. (Default:{@value #DEFAULT_LIBRARY})
|
* Default library template to use. (Default:{@value #DEFAULT_LIBRARY})
|
||||||
@ -47,7 +46,6 @@ public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen impl
|
|||||||
|
|
||||||
cliOptions.add(library);
|
cliOptions.add(library);
|
||||||
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1/2 library."));
|
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1/2 library."));
|
||||||
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -88,14 +86,6 @@ public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen impl
|
|||||||
setLibrary(DEFAULT_LIBRARY);
|
setLibrary(DEFAULT_LIBRARY);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
|
||||||
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (useBeanValidation) {
|
|
||||||
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {
|
if ( additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {
|
||||||
implFolder = (String) additionalProperties.get(CodegenConstants.IMPL_FOLDER);
|
implFolder = (String) additionalProperties.get(CodegenConstants.IMPL_FOLDER);
|
||||||
}
|
}
|
||||||
@ -172,8 +162,4 @@ public class JavaJerseyServerCodegen extends AbstractJavaJAXRSServerCodegen impl
|
|||||||
co.baseName = basePath;
|
co.baseName = basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseBeanValidation(boolean useBeanValidation) {
|
|
||||||
this.useBeanValidation = useBeanValidation;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,8 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen implements JbossFeature, BeanValidationFeatures {
|
public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen implements JbossFeature {
|
||||||
|
|
||||||
protected boolean useBeanValidation = true;
|
|
||||||
protected boolean generateJbossDeploymentDescriptor = true;
|
protected boolean generateJbossDeploymentDescriptor = true;
|
||||||
|
|
||||||
public JavaResteasyServerCodegen() {
|
public JavaResteasyServerCodegen() {
|
||||||
@ -37,7 +36,6 @@ public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen im
|
|||||||
|
|
||||||
embeddedTemplateDir = templateDir = "JavaJaxRS" + File.separator + "resteasy";
|
embeddedTemplateDir = templateDir = "JavaJaxRS" + File.separator + "resteasy";
|
||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
|
||||||
cliOptions.add(
|
cliOptions.add(
|
||||||
CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, "Generate Jboss Deployment Descriptor"));
|
CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, "Generate Jboss Deployment Descriptor"));
|
||||||
}
|
}
|
||||||
@ -62,14 +60,6 @@ public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen im
|
|||||||
this.setGenerateJbossDeploymentDescriptor(generateJbossDeploymentDescriptorProp);
|
this.setGenerateJbossDeploymentDescriptor(generateJbossDeploymentDescriptorProp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
|
||||||
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (useBeanValidation) {
|
|
||||||
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
|
||||||
}
|
|
||||||
|
|
||||||
writeOptional(outputFolder, new SupportingFile("pom.mustache", "", "pom.xml"));
|
writeOptional(outputFolder, new SupportingFile("pom.mustache", "", "pom.xml"));
|
||||||
writeOptional(outputFolder, new SupportingFile("gradle.mustache", "", "build.gradle"));
|
writeOptional(outputFolder, new SupportingFile("gradle.mustache", "", "build.gradle"));
|
||||||
writeOptional(outputFolder, new SupportingFile("settingsGradle.mustache", "", "settings.gradle"));
|
writeOptional(outputFolder, new SupportingFile("settingsGradle.mustache", "", "settings.gradle"));
|
||||||
@ -226,10 +216,6 @@ public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen im
|
|||||||
return objs;
|
return objs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseBeanValidation(boolean useBeanValidation) {
|
|
||||||
this.useBeanValidation = useBeanValidation;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGenerateJbossDeploymentDescriptor(boolean generateJbossDeploymentDescriptor) {
|
public void setGenerateJbossDeploymentDescriptor(boolean generateJbossDeploymentDescriptor) {
|
||||||
this.generateJbossDeploymentDescriptor = generateJbossDeploymentDescriptor;
|
this.generateJbossDeploymentDescriptor = generateJbossDeploymentDescriptor;
|
||||||
}
|
}
|
||||||
|
@ -32,21 +32,22 @@
|
|||||||
{{^minItems}}
|
{{^minItems}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
@Size(max={{maxItems}})
|
@Size(max={{maxItems}})
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
|
{{! check for integer / number=decimal type}}
|
||||||
|
{{#isInteger}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
{{#isInteger}}
|
|
||||||
@Min({{minimum}})
|
@Min({{minimum}})
|
||||||
{{/isInteger}}
|
|
||||||
{{#isLong}}
|
|
||||||
@Min({{minimum}})
|
|
||||||
{{/isLong}}
|
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
{{#isInteger}}
|
|
||||||
@Max({{maximum}})
|
@Max({{maximum}})
|
||||||
{{/isInteger}}
|
|
||||||
{{#isLong}}
|
|
||||||
@Max({{maximum}})
|
|
||||||
{{/isLong}}
|
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
|
{{/isInteger}}
|
||||||
|
{{^isInteger}}
|
||||||
|
{{#minimum}}
|
||||||
|
@DecimalMin("{{minimum}}")
|
||||||
|
{{/minimum}}
|
||||||
|
{{#maximum}}
|
||||||
|
@DecimalMax("{{maximum}}")
|
||||||
|
{{/maximum}}
|
||||||
|
{{/isInteger}}
|
@ -32,11 +32,22 @@
|
|||||||
{{^minItems}}
|
{{^minItems}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
@Size(max={{maxItems}})
|
@Size(max={{maxItems}})
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
|
{{! check for integer / number=decimal type}}
|
||||||
|
{{#isInteger}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
@Min({{minimum}})
|
@Min({{minimum}})
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
@Max({{maximum}})
|
@Max({{maximum}})
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
|
{{/isInteger}}
|
||||||
|
{{^isInteger}}
|
||||||
|
{{#minimum}}
|
||||||
|
@DecimalMin("{{minimum}}")
|
||||||
|
{{/minimum}}
|
||||||
|
{{#maximum}}
|
||||||
|
@DecimalMax("{{maximum}}")
|
||||||
|
{{/maximum}}
|
||||||
|
{{/isInteger}}
|
@ -16,6 +16,7 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.jaxrs.PATCH;
|
import io.swagger.jaxrs.PATCH;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@Path("/")
|
@Path("/")
|
||||||
@Api(value = "/", description = "")
|
@Api(value = "/", description = "")
|
||||||
@ -40,6 +41,6 @@ public interface FakeApi {
|
|||||||
@Consumes({ "*/*" })
|
@Consumes({ "*/*" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
@ApiOperation(value = "To test enum parameters", tags={ "fake" })
|
@ApiOperation(value = "To test enum parameters", tags={ "fake" })
|
||||||
public void testEnumParameters(@Multipart(value = "enumFormStringArray", required = false) List<String> enumFormStringArray, @Multipart(value = "enumFormString", required = false) String enumFormString, @HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray, @HeaderParam("enum_header_string") String enumHeaderString, @QueryParam("enum_query_string_array")List<String> enumQueryStringArray, @QueryParam("enum_query_string")String enumQueryString, @QueryParam("enum_query_integer")Integer enumQueryInteger, @Multipart(value = "enumQueryDouble", required = false) Double enumQueryDouble);
|
public void testEnumParameters(@Multipart(value = "enumFormStringArray", required = false) List<String> enumFormStringArray, @Multipart(value = "enumFormString", required = false) String enumFormString, @HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray, @HeaderParam("enum_header_string") String enumHeaderString, @QueryParam("enum_query_string_array") List<String> enumQueryStringArray, @QueryParam("enum_query_string") String enumQueryString, @QueryParam("enum_query_integer") Integer enumQueryInteger, @Multipart(value = "enumQueryDouble", required = false) Double enumQueryDouble);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.jaxrs.PATCH;
|
import io.swagger.jaxrs.PATCH;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@Path("/")
|
@Path("/")
|
||||||
@Api(value = "/", description = "")
|
@Api(value = "/", description = "")
|
||||||
@ -38,13 +39,13 @@ public interface PetApi {
|
|||||||
@Path("/pet/findByStatus")
|
@Path("/pet/findByStatus")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Finds Pets by status", tags={ "pet", })
|
@ApiOperation(value = "Finds Pets by status", tags={ "pet", })
|
||||||
public List<Pet> findPetsByStatus(@QueryParam("status")List<String> status);
|
public List<Pet> findPetsByStatus(@QueryParam("status") @NotNull List<String> status);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/pet/findByTags")
|
@Path("/pet/findByTags")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Finds Pets by tags", tags={ "pet", })
|
@ApiOperation(value = "Finds Pets by tags", tags={ "pet", })
|
||||||
public List<Pet> findPetsByTags(@QueryParam("tags")List<String> tags);
|
public List<Pet> findPetsByTags(@QueryParam("tags") @NotNull List<String> tags);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/pet/{petId}")
|
@Path("/pet/{petId}")
|
||||||
|
@ -15,6 +15,7 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.jaxrs.PATCH;
|
import io.swagger.jaxrs.PATCH;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@Path("/")
|
@Path("/")
|
||||||
@Api(value = "/", description = "")
|
@Api(value = "/", description = "")
|
||||||
|
@ -15,6 +15,7 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.jaxrs.PATCH;
|
import io.swagger.jaxrs.PATCH;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@Path("/")
|
@Path("/")
|
||||||
@Api(value = "/", description = "")
|
@Api(value = "/", description = "")
|
||||||
@ -54,7 +55,7 @@ public interface UserApi {
|
|||||||
@Path("/user/login")
|
@Path("/user/login")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Logs user into the system", tags={ "user", })
|
@ApiOperation(value = "Logs user into the system", tags={ "user", })
|
||||||
public String loginUser(@QueryParam("username")String username, @QueryParam("password")String password);
|
public String loginUser(@QueryParam("username") @NotNull String username, @QueryParam("password") @NotNull String password);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/user/logout")
|
@Path("/user/logout")
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -27,9 +28,21 @@ public class AdditionalPropertiesClass {
|
|||||||
public Map<String, String> getMapProperty() {
|
public Map<String, String> getMapProperty() {
|
||||||
return mapProperty;
|
return mapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMapProperty(Map<String, String> mapProperty) {
|
public void setMapProperty(Map<String, String> mapProperty) {
|
||||||
this.mapProperty = mapProperty;
|
this.mapProperty = mapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||||
|
this.mapProperty = mapProperty;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapOfMapProperty
|
* Get mapOfMapProperty
|
||||||
* @return mapOfMapProperty
|
* @return mapOfMapProperty
|
||||||
@ -37,10 +50,22 @@ public class AdditionalPropertiesClass {
|
|||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
return mapOfMapProperty;
|
return mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
this.mapOfMapProperty = mapOfMapProperty;
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package io.swagger.model;
|
|||||||
|
|
||||||
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 javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -23,12 +24,20 @@ public class Animal {
|
|||||||
* Get className
|
* Get className
|
||||||
* @return className
|
* @return className
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClassName(String className) {
|
public void setClassName(String className) {
|
||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Animal className(String className) {
|
||||||
|
this.className = className;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get color
|
* Get color
|
||||||
* @return color
|
* @return color
|
||||||
@ -36,10 +45,17 @@ public class Animal {
|
|||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColor(String color) {
|
public void setColor(String color) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Animal color(String color) {
|
||||||
|
this.color = color;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -25,10 +26,22 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -25,10 +26,22 @@ public class ArrayOfNumberOnly {
|
|||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
this.arrayNumber = arrayNumber;
|
this.arrayNumber = arrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
|
this.arrayNumber = arrayNumber;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import io.swagger.model.ReadOnlyFirst;
|
import io.swagger.model.ReadOnlyFirst;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -29,9 +30,21 @@ public class ArrayTest {
|
|||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayOfString(List<String> arrayOfString) {
|
public void setArrayOfString(List<String> arrayOfString) {
|
||||||
this.arrayOfString = arrayOfString;
|
this.arrayOfString = arrayOfString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||||
|
this.arrayOfString = arrayOfString;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get arrayArrayOfInteger
|
* Get arrayArrayOfInteger
|
||||||
* @return arrayArrayOfInteger
|
* @return arrayArrayOfInteger
|
||||||
@ -39,9 +52,21 @@ public class ArrayTest {
|
|||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get arrayArrayOfModel
|
* Get arrayArrayOfModel
|
||||||
* @return arrayArrayOfModel
|
* @return arrayArrayOfModel
|
||||||
@ -49,10 +74,22 @@ public class ArrayTest {
|
|||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -32,9 +33,16 @@ public class Capitalization {
|
|||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSmallCamel(String smallCamel) {
|
public void setSmallCamel(String smallCamel) {
|
||||||
this.smallCamel = smallCamel;
|
this.smallCamel = smallCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization smallCamel(String smallCamel) {
|
||||||
|
this.smallCamel = smallCamel;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get capitalCamel
|
* Get capitalCamel
|
||||||
* @return capitalCamel
|
* @return capitalCamel
|
||||||
@ -42,9 +50,16 @@ public class Capitalization {
|
|||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCapitalCamel(String capitalCamel) {
|
public void setCapitalCamel(String capitalCamel) {
|
||||||
this.capitalCamel = capitalCamel;
|
this.capitalCamel = capitalCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization capitalCamel(String capitalCamel) {
|
||||||
|
this.capitalCamel = capitalCamel;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get smallSnake
|
* Get smallSnake
|
||||||
* @return smallSnake
|
* @return smallSnake
|
||||||
@ -52,9 +67,16 @@ public class Capitalization {
|
|||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSmallSnake(String smallSnake) {
|
public void setSmallSnake(String smallSnake) {
|
||||||
this.smallSnake = smallSnake;
|
this.smallSnake = smallSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization smallSnake(String smallSnake) {
|
||||||
|
this.smallSnake = smallSnake;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get capitalSnake
|
* Get capitalSnake
|
||||||
* @return capitalSnake
|
* @return capitalSnake
|
||||||
@ -62,9 +84,16 @@ public class Capitalization {
|
|||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCapitalSnake(String capitalSnake) {
|
public void setCapitalSnake(String capitalSnake) {
|
||||||
this.capitalSnake = capitalSnake;
|
this.capitalSnake = capitalSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization capitalSnake(String capitalSnake) {
|
||||||
|
this.capitalSnake = capitalSnake;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get scAETHFlowPoints
|
* Get scAETHFlowPoints
|
||||||
* @return scAETHFlowPoints
|
* @return scAETHFlowPoints
|
||||||
@ -72,9 +101,16 @@ public class Capitalization {
|
|||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setScAETHFlowPoints(String scAETHFlowPoints) {
|
public void setScAETHFlowPoints(String scAETHFlowPoints) {
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
||||||
|
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the pet
|
* Name of the pet
|
||||||
* @return ATT_NAME
|
* @return ATT_NAME
|
||||||
@ -82,10 +118,17 @@ public class Capitalization {
|
|||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setATTNAME(String ATT_NAME) {
|
public void setATTNAME(String ATT_NAME) {
|
||||||
this.ATT_NAME = ATT_NAME;
|
this.ATT_NAME = ATT_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Capitalization ATT_NAME(String ATT_NAME) {
|
||||||
|
this.ATT_NAME = ATT_NAME;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -23,10 +24,17 @@ public class Cat extends Animal {
|
|||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDeclawed(Boolean declawed) {
|
public void setDeclawed(Boolean declawed) {
|
||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Cat declawed(Boolean declawed) {
|
||||||
|
this.declawed = declawed;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -24,10 +25,17 @@ public class ClassModel {
|
|||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
public void setPropertyClass(String propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ClassModel propertyClass(String propertyClass) {
|
||||||
|
this.propertyClass = propertyClass;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -22,10 +23,17 @@ public class Client {
|
|||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClient(String client) {
|
public void setClient(String client) {
|
||||||
this.client = client;
|
this.client = client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Client client(String client) {
|
||||||
|
this.client = client;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -23,10 +24,17 @@ public class Dog extends Animal {
|
|||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBreed(String breed) {
|
public void setBreed(String breed) {
|
||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Dog breed(String breed) {
|
||||||
|
this.breed = breed;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package io.swagger.model;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -92,9 +93,16 @@ public enum ArrayEnumEnum {
|
|||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
||||||
this.justSymbol = justSymbol;
|
this.justSymbol = justSymbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||||
|
this.justSymbol = justSymbol;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get arrayEnum
|
* Get arrayEnum
|
||||||
* @return arrayEnum
|
* @return arrayEnum
|
||||||
@ -102,10 +110,22 @@ public enum ArrayEnumEnum {
|
|||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
this.arrayEnum = arrayEnum;
|
this.arrayEnum = arrayEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
|
this.arrayEnum = arrayEnum;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.model.OuterEnum;
|
import io.swagger.model.OuterEnum;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -128,9 +129,16 @@ public enum EnumNumberEnum {
|
|||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumString(EnumStringEnum enumString) {
|
public void setEnumString(EnumStringEnum enumString) {
|
||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumTest enumString(EnumStringEnum enumString) {
|
||||||
|
this.enumString = enumString;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get enumInteger
|
* Get enumInteger
|
||||||
* @return enumInteger
|
* @return enumInteger
|
||||||
@ -138,9 +146,16 @@ public enum EnumNumberEnum {
|
|||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
|
this.enumInteger = enumInteger;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get enumNumber
|
* Get enumNumber
|
||||||
* @return enumNumber
|
* @return enumNumber
|
||||||
@ -148,9 +163,16 @@ public enum EnumNumberEnum {
|
|||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
|
this.enumNumber = enumNumber;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get outerEnum
|
* Get outerEnum
|
||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
@ -158,10 +180,17 @@ public enum EnumNumberEnum {
|
|||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOuterEnum(OuterEnum outerEnum) {
|
public void setOuterEnum(OuterEnum outerEnum) {
|
||||||
this.outerEnum = outerEnum;
|
this.outerEnum = outerEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||||
|
this.outerEnum = outerEnum;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package io.swagger.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -47,24 +48,42 @@ public class FormatTest {
|
|||||||
* maximum: 100
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
|
@Min(10)
|
||||||
|
@Max(100)
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInteger(Integer integer) {
|
public void setInteger(Integer integer) {
|
||||||
this.integer = integer;
|
this.integer = integer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest integer(Integer integer) {
|
||||||
|
this.integer = integer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20
|
* minimum: 20
|
||||||
* maximum: 200
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
|
@Min(20)
|
||||||
|
@Max(200)
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInt32(Integer int32) {
|
public void setInt32(Integer int32) {
|
||||||
this.int32 = int32;
|
this.int32 = int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest int32(Integer int32) {
|
||||||
|
this.int32 = int32;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int64
|
* Get int64
|
||||||
* @return int64
|
* @return int64
|
||||||
@ -72,65 +91,116 @@ public class FormatTest {
|
|||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInt64(Long int64) {
|
public void setInt64(Long int64) {
|
||||||
this.int64 = int64;
|
this.int64 = int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest int64(Long int64) {
|
||||||
|
this.int64 = int64;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get number
|
* Get number
|
||||||
* minimum: 32.1
|
* minimum: 32.1
|
||||||
* maximum: 543.2
|
* maximum: 543.2
|
||||||
* @return number
|
* @return number
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
|
@DecimalMin("32.1")
|
||||||
|
@DecimalMax("543.2")
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNumber(BigDecimal number) {
|
public void setNumber(BigDecimal number) {
|
||||||
this.number = number;
|
this.number = number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest number(BigDecimal number) {
|
||||||
|
this.number = number;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get _float
|
* Get _float
|
||||||
* minimum: 54.3
|
* minimum: 54.3
|
||||||
* maximum: 987.6
|
* maximum: 987.6
|
||||||
* @return _float
|
* @return _float
|
||||||
**/
|
**/
|
||||||
|
@DecimalMin("54.3")
|
||||||
|
@DecimalMax("987.6")
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFloat(Float _float) {
|
public void setFloat(Float _float) {
|
||||||
this._float = _float;
|
this._float = _float;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest _float(Float _float) {
|
||||||
|
this._float = _float;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get _double
|
* Get _double
|
||||||
* minimum: 67.8
|
* minimum: 67.8
|
||||||
* maximum: 123.4
|
* maximum: 123.4
|
||||||
* @return _double
|
* @return _double
|
||||||
**/
|
**/
|
||||||
|
@DecimalMin("67.8")
|
||||||
|
@DecimalMax("123.4")
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDouble(Double _double) {
|
public void setDouble(Double _double) {
|
||||||
this._double = _double;
|
this._double = _double;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest _double(Double _double) {
|
||||||
|
this._double = _double;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get string
|
* Get string
|
||||||
* @return string
|
* @return string
|
||||||
**/
|
**/
|
||||||
|
@Pattern(regexp="/[a-z]/i")
|
||||||
public String getString() {
|
public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setString(String string) {
|
public void setString(String string) {
|
||||||
this.string = string;
|
this.string = string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest string(String string) {
|
||||||
|
this.string = string;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get _byte
|
* Get _byte
|
||||||
* @return _byte
|
* @return _byte
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setByte(byte[] _byte) {
|
public void setByte(byte[] _byte) {
|
||||||
this._byte = _byte;
|
this._byte = _byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest _byte(byte[] _byte) {
|
||||||
|
this._byte = _byte;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get binary
|
* Get binary
|
||||||
* @return binary
|
* @return binary
|
||||||
@ -138,19 +208,34 @@ public class FormatTest {
|
|||||||
public byte[] getBinary() {
|
public byte[] getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBinary(byte[] binary) {
|
public void setBinary(byte[] binary) {
|
||||||
this.binary = binary;
|
this.binary = binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest binary(byte[] binary) {
|
||||||
|
this.binary = binary;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get date
|
* Get date
|
||||||
* @return date
|
* @return date
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDate(LocalDate date) {
|
public void setDate(LocalDate date) {
|
||||||
this.date = date;
|
this.date = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest date(LocalDate date) {
|
||||||
|
this.date = date;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get dateTime
|
* Get dateTime
|
||||||
* @return dateTime
|
* @return dateTime
|
||||||
@ -158,9 +243,16 @@ public class FormatTest {
|
|||||||
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||||
|
this.dateTime = dateTime;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get uuid
|
* Get uuid
|
||||||
* @return uuid
|
* @return uuid
|
||||||
@ -168,20 +260,36 @@ public class FormatTest {
|
|||||||
public String getUuid() {
|
public String getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUuid(String uuid) {
|
public void setUuid(String uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest uuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get password
|
* Get password
|
||||||
* @return password
|
* @return password
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
|
@Size(min=10,max=64)
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPassword(String password) {
|
public void setPassword(String password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormatTest password(String password) {
|
||||||
|
this.password = password;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -24,9 +25,8 @@ public class HasOnlyReadOnly {
|
|||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
public void setBar(String bar) {
|
|
||||||
this.bar = bar;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Get foo
|
* Get foo
|
||||||
* @return foo
|
* @return foo
|
||||||
@ -34,9 +34,8 @@ public class HasOnlyReadOnly {
|
|||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
public void setFoo(String foo) {
|
|
||||||
this.foo = foo;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.model;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -60,9 +61,21 @@ public enum InnerEnum {
|
|||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
|
this.mapMapOfString = mapMapOfString;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapOfEnumString
|
* Get mapOfEnumString
|
||||||
* @return mapOfEnumString
|
* @return mapOfEnumString
|
||||||
@ -70,10 +83,22 @@ public enum InnerEnum {
|
|||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -4,6 +4,7 @@ import io.swagger.model.Animal;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -30,9 +31,16 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
public String getUuid() {
|
public String getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUuid(String uuid) {
|
public void setUuid(String uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get dateTime
|
* Get dateTime
|
||||||
* @return dateTime
|
* @return dateTime
|
||||||
@ -40,9 +48,16 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MixedPropertiesAndAdditionalPropertiesClass dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||||
|
this.dateTime = dateTime;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get map
|
* Get map
|
||||||
* @return map
|
* @return map
|
||||||
@ -50,10 +65,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMap(Map<String, Animal> map) {
|
public void setMap(Map<String, Animal> map) {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
||||||
|
this.map = map;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
this.map.put(key, mapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -26,9 +27,16 @@ public class Model200Response {
|
|||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(Integer name) {
|
public void setName(Integer name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Model200Response name(Integer name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get propertyClass
|
* Get propertyClass
|
||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
@ -36,10 +44,17 @@ public class Model200Response {
|
|||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
public void setPropertyClass(String propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Model200Response propertyClass(String propertyClass) {
|
||||||
|
this.propertyClass = propertyClass;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -24,10 +25,17 @@ public class ModelReturn {
|
|||||||
public Integer getReturn() {
|
public Integer getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReturn(Integer _return) {
|
public void setReturn(Integer _return) {
|
||||||
this._return = _return;
|
this._return = _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ModelReturn _return(Integer _return) {
|
||||||
|
this._return = _return;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -27,12 +28,20 @@ public class Name {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(Integer name) {
|
public void setName(Integer name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Name name(Integer name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get snakeCase
|
* Get snakeCase
|
||||||
* @return snakeCase
|
* @return snakeCase
|
||||||
@ -40,9 +49,8 @@ public class Name {
|
|||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
public void setSnakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Get property
|
* Get property
|
||||||
* @return property
|
* @return property
|
||||||
@ -50,9 +58,16 @@ public class Name {
|
|||||||
public String getProperty() {
|
public String getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProperty(String property) {
|
public void setProperty(String property) {
|
||||||
this.property = property;
|
this.property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Name property(String property) {
|
||||||
|
this.property = property;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get _123Number
|
* Get _123Number
|
||||||
* @return _123Number
|
* @return _123Number
|
||||||
@ -60,9 +75,8 @@ public class Name {
|
|||||||
public Integer get123Number() {
|
public Integer get123Number() {
|
||||||
return _123Number;
|
return _123Number;
|
||||||
}
|
}
|
||||||
public void set123Number(Integer _123Number) {
|
|
||||||
this._123Number = _123Number;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -23,10 +24,17 @@ public class NumberOnly {
|
|||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJustNumber(BigDecimal justNumber) {
|
public void setJustNumber(BigDecimal justNumber) {
|
||||||
this.justNumber = justNumber;
|
this.justNumber = justNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||||
|
this.justNumber = justNumber;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
@ -4,6 +4,7 @@ import io.swagger.model.Category;
|
|||||||
import io.swagger.model.Tag;
|
import io.swagger.model.Tag;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -100,6 +101,7 @@ public enum StatusEnum {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -117,6 +119,7 @@ public enum StatusEnum {
|
|||||||
* Get photoUrls
|
* Get photoUrls
|
||||||
* @return photoUrls
|
* @return photoUrls
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -24,9 +25,8 @@ public class ReadOnlyFirst {
|
|||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
public void setBar(String bar) {
|
|
||||||
this.bar = bar;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Get baz
|
* Get baz
|
||||||
* @return baz
|
* @return baz
|
||||||
@ -34,10 +34,17 @@ public class ReadOnlyFirst {
|
|||||||
public String getBaz() {
|
public String getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBaz(String baz) {
|
public void setBaz(String baz) {
|
||||||
this.baz = baz;
|
this.baz = baz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ReadOnlyFirst baz(String baz) {
|
||||||
|
this.baz = baz;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
@ -22,10 +23,17 @@ public class SpecialModelName {
|
|||||||
public Long getSpecialPropertyName() {
|
public Long getSpecialPropertyName() {
|
||||||
return specialPropertyName;
|
return specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSpecialPropertyName(Long specialPropertyName) {
|
public void setSpecialPropertyName(Long specialPropertyName) {
|
||||||
this.specialPropertyName = specialPropertyName;
|
this.specialPropertyName = specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SpecialModelName specialPropertyName(Long specialPropertyName) {
|
||||||
|
this.specialPropertyName = specialPropertyName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -108,10 +108,10 @@
|
|||||||
<version>2.7</version>
|
<version>2.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
<artifactId>swagger-jaxrs</artifactId>
|
<artifactId>swagger-jaxrs</artifactId>
|
||||||
<version>${swagger-core-version}</version>
|
<version>${swagger-core-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
@ -138,6 +138,14 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- Bean Validation API support -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.validation</groupId>
|
||||||
|
<artifactId>validation-api</artifactId>
|
||||||
|
<version>1.1.0.Final</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -108,8 +108,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ "available", "pending", "sold" ],
|
"default" : "available",
|
||||||
"default" : "available"
|
"enum" : [ "available", "pending", "sold" ]
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
} ],
|
} ],
|
||||||
@ -650,8 +650,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_form_string",
|
"name" : "enum_form_string",
|
||||||
@ -669,8 +669,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_header_string",
|
"name" : "enum_header_string",
|
||||||
@ -688,8 +688,8 @@
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"enum" : [ ">", "$" ],
|
"default" : "$",
|
||||||
"default" : "$"
|
"enum" : [ ">", "$" ]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name" : "enum_query_string",
|
"name" : "enum_query_string",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user