diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java index 0681e18ab9..41aa83903b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java @@ -1,5 +1,20 @@ package org.openapitools.codegen.languages; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.Operation; +import io.swagger.v3.oas.models.PathItem; + +import org.openapitools.codegen.CliOption; +import org.openapitools.codegen.CodegenConstants; +import org.openapitools.codegen.CodegenOperation; +import org.openapitools.codegen.CodegenParameter; +import org.openapitools.codegen.CodegenResponse; +import org.openapitools.codegen.CodegenType; +import org.openapitools.codegen.languages.features.BeanValidationFeatures; +import org.openapitools.codegen.utils.URLPathUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import java.net.URL; import java.util.ArrayList; import java.util.Arrays; @@ -7,15 +22,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import org.openapitools.codegen.*; -import org.openapitools.codegen.languages.features.BeanValidationFeatures; -import org.openapitools.codegen.utils.ModelUtils; -import org.openapitools.codegen.utils.URLPathUtils; -import io.swagger.v3.oas.models.*; - public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen implements BeanValidationFeatures { /** * Name of the sub-directory in "src/main/resource" where to find the @@ -34,12 +40,12 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen super(); sourceFolder = "src/gen/java"; - invokerPackage = "io.swagger.api"; + invokerPackage = "org.openapitools.api"; artifactId = "swagger-jaxrs-server"; dateLibrary = "legacy"; //TODO: add joda support to all jax-rs - apiPackage = "io.swagger.api"; - modelPackage = "io.swagger.model"; + apiPackage = "org.openapitools.api"; + modelPackage = "org.openapitools.model"; additionalProperties.put("title", title); // java inflector uses the jackson lib diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java index 148e318403..9ee66407fd 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java @@ -1,18 +1,23 @@ package org.openapitools.codegen.languages; -import java.io.File; -import java.util.List; -import java.util.Map; +import io.swagger.v3.oas.models.Operation; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import org.openapitools.codegen.*; +import org.openapitools.codegen.CliOption; +import org.openapitools.codegen.CodegenModel; +import org.openapitools.codegen.CodegenOperation; +import org.openapitools.codegen.CodegenProperty; +import org.openapitools.codegen.CodegenType; +import org.openapitools.codegen.SupportingFile; import org.openapitools.codegen.languages.features.BeanValidationFeatures; import org.openapitools.codegen.languages.features.GzipTestFeatures; import org.openapitools.codegen.languages.features.LoggingTestFeatures; import org.openapitools.codegen.languages.features.UseGenericResponseFeatures; -import io.swagger.v3.oas.models.*; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.File; +import java.util.List; +import java.util.Map; public class JavaCXFClientCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, UseGenericResponseFeatures, GzipTestFeatures, LoggingTestFeatures { @@ -39,12 +44,12 @@ public class JavaCXFClientCodegen extends AbstractJavaCodegen supportsInheritance = true; sourceFolder = "src/gen/java"; - invokerPackage = "io.swagger.api"; + invokerPackage = "org.openapitools.api"; artifactId = "swagger-jaxrs-client"; dateLibrary = "legacy"; //TODO: add joda support to all jax-rs - apiPackage = "io.swagger.api"; - modelPackage = "io.swagger.model"; + apiPackage = "org.openapitools.api"; + modelPackage = "org.openapitools.model"; outputFolder = "generated-code/JavaJaxRS-CXF"; diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaCXFClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaCXFClientCodegenTest.java index 02772b7ea5..8b077f7596 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaCXFClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaCXFClientCodegenTest.java @@ -64,45 +64,45 @@ public class JavaCXFClientCodegenTest { Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE); Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); - Assert.assertEquals(codegen.modelPackage(), "io.swagger.model"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "io.swagger.model"); - Assert.assertEquals(codegen.apiPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "io.swagger.api"); - Assert.assertEquals(codegen.getInvokerPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "io.swagger.api"); + Assert.assertEquals(codegen.modelPackage(), "org.openapitools.model"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "org.openapitools.model"); + Assert.assertEquals(codegen.apiPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "org.openapitools.api"); + Assert.assertEquals(codegen.getInvokerPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "org.openapitools.api"); } @Test public void testSettersForConfigValues() throws Exception { final JavaCXFClientCodegen codegen = new JavaCXFClientCodegen(); codegen.setHideGenerationTimestamp(true); - codegen.setInvokerPackage("io.swagger.client.xyz.invoker"); + codegen.setInvokerPackage("org.openapitools.client.xyz.invoker"); codegen.processOpts(); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE); Assert.assertEquals(codegen.isHideGenerationTimestamp(), true); - Assert.assertEquals(codegen.modelPackage(), "io.swagger.model"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "io.swagger.model"); - Assert.assertEquals(codegen.apiPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "io.swagger.api"); - Assert.assertEquals(codegen.getInvokerPackage(), "io.swagger.client.xyz.invoker"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "io.swagger.client.xyz.invoker"); + Assert.assertEquals(codegen.modelPackage(), "org.openapitools.model"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "org.openapitools.model"); + Assert.assertEquals(codegen.apiPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "org.openapitools.api"); + Assert.assertEquals(codegen.getInvokerPackage(), "org.openapitools.client.xyz.invoker"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "org.openapitools.client.xyz.invoker"); } @Test public void testAdditionalPropertiesPutForConfigValues() throws Exception { final JavaCXFClientCodegen codegen = new JavaCXFClientCodegen(); codegen.additionalProperties().put(CodegenConstants.HIDE_GENERATION_TIMESTAMP, "false"); - codegen.additionalProperties().put(CodegenConstants.INVOKER_PACKAGE,"io.swagger.client.xyz.invoker"); + codegen.additionalProperties().put(CodegenConstants.INVOKER_PACKAGE,"org.openapitools.client.xyz.invoker"); codegen.processOpts(); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE); Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); - Assert.assertEquals(codegen.modelPackage(), "io.swagger.model"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "io.swagger.model"); - Assert.assertEquals(codegen.apiPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "io.swagger.api"); - Assert.assertEquals(codegen.getInvokerPackage(), "io.swagger.client.xyz.invoker"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "io.swagger.client.xyz.invoker"); + Assert.assertEquals(codegen.modelPackage(), "org.openapitools.model"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "org.openapitools.model"); + Assert.assertEquals(codegen.apiPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "org.openapitools.api"); + Assert.assertEquals(codegen.getInvokerPackage(), "org.openapitools.client.xyz.invoker"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "org.openapitools.client.xyz.invoker"); } } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/AbstractJavaJAXRSServerCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/AbstractJavaJAXRSServerCodegenTest.java index 43dc0abc80..9bc72ca23b 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/AbstractJavaJAXRSServerCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/AbstractJavaJAXRSServerCodegenTest.java @@ -1,11 +1,10 @@ package org.openapitools.codegen.java.jaxrs; -import org.testng.Assert; -import org.testng.annotations.Test; - import org.openapitools.codegen.CodegenConstants; import org.openapitools.codegen.CodegenType; import org.openapitools.codegen.languages.AbstractJavaJAXRSServerCodegen; +import org.testng.Assert; +import org.testng.annotations.Test; public class AbstractJavaJAXRSServerCodegenTest { @@ -27,12 +26,12 @@ public class AbstractJavaJAXRSServerCodegenTest { Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE); Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); - Assert.assertEquals(codegen.modelPackage(), "io.swagger.model"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "io.swagger.model"); - Assert.assertEquals(codegen.apiPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "io.swagger.api"); - Assert.assertEquals(codegen.getInvokerPackage(), "io.swagger.api"); - Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "io.swagger.api"); + Assert.assertEquals(codegen.modelPackage(), "org.openapitools.model"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "org.openapitools.model"); + Assert.assertEquals(codegen.apiPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "org.openapitools.api"); + Assert.assertEquals(codegen.getInvokerPackage(), "org.openapitools.api"); + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "org.openapitools.api"); } @Test diff --git a/samples/client/petstore/jaxrs-cxf-client/.openapi-generator-ignore b/samples/client/petstore/jaxrs-cxf-client/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/client/petstore/jaxrs-cxf-client/.openapi-generator-ignore +++ b/samples/client/petstore/jaxrs-cxf-client/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/PetApi.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/PetApi.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/PetApi.java index ed10c09564..34a40c62e4 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/StoreApi.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/StoreApi.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/StoreApi.java index db188a9f8c..28dac3d0a4 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,6 +1,6 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/UserApi.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/UserApi.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/UserApi.java index 4c98e09c02..52b875c047 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/api/UserApi.java @@ -1,6 +1,6 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Category.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Category.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java index a718f7f60e..5daa0c5019 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Category.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java index be82193b30..b391921f4c 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Order.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Order.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java index ba30efea36..3aa2ec3d55 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Order.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import java.util.Date; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Pet.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Pet.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java index 4e7fdfae30..c7e7cda691 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Pet.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java @@ -1,10 +1,10 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import io.swagger.annotations.ApiModelProperty; import javax.xml.bind.annotation.XmlElement; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Tag.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Tag.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java index 4f6240b5be..1369edbdf3 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/Tag.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/User.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/User.java rename to samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java index 21fbe3d5ef..fd278e1a9a 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/model/User.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/PetApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java similarity index 97% rename from samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/PetApiTest.java rename to samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java index dde4ebf04a..105d7c1884 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/PetApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java @@ -23,11 +23,11 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/StoreApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/StoreApiTest.java rename to samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java index 38be5353db..26ef4dc7d5 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/StoreApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java @@ -23,9 +23,9 @@ */ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Order; +import org.openapitools.model.Order; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/UserApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java similarity index 98% rename from samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/UserApiTest.java rename to samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java index 57a545fbf5..bb9eab21de 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/io/swagger/api/UserApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java @@ -23,9 +23,9 @@ */ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.User; +import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/.openapi-generator-ignore b/samples/server/petstore/jaxrs-cxf-annotated-base-path/.openapi-generator-ignore index c5fa491b4c..70b88e7103 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +**/impl/* \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/pom.xml b/samples/server/petstore/jaxrs-cxf-annotated-base-path/pom.xml index 8df9d5b0d4..1628371f34 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/pom.xml +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/pom.xml @@ -33,7 +33,7 @@ 8079 stopit - 8080 + -1 60000 @@ -166,10 +166,9 @@ compile - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson-jaxrs-version} - compile + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${jackson-jaxrs-version} diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java index 5aab91293e..7b7c882fe7 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java index 668a6a9e4d..b690cbd3b5 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java index 0ac447c08d..4c9c1d7447 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Category.java index 58a601a15e..e03374a55c 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/ModelApiResponse.java index e21ad8e09f..d9d7952c04 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Order.java index 02f367a3e7..9f9c27dfdb 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import java.util.Date; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java index 9316b5ae0a..038bad580c 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java @@ -1,10 +1,10 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Tag.java index 9dd2016f0d..c1e32d6021 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/User.java index 13e9cf3954..b81bc0c625 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index de1bba03e9..eb5c3b9af2 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,9 +1,9 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 8b54549696..1c7678fe24 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index f233c06892..fb4ec43138 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java similarity index 83% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/PetApiTest.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java index bbb67c2439..105d7c1884 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java @@ -23,11 +23,11 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -49,7 +49,11 @@ import java.util.Map; /** - * API tests for PetApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for PetApi */ public class PetApiTest { @@ -72,15 +76,13 @@ public class PetApiTest { /** * Add a new pet to the store * - * - * * @throws ApiException * if the Api call fails */ @Test public void addPetTest() { - Pet body = null; - //api.addPet(body); + Pet pet = null; + //api.addPet(pet); // TODO: test validations @@ -90,8 +92,6 @@ public class PetApiTest { /** * Deletes a pet * - * - * * @throws ApiException * if the Api call fails */ @@ -99,7 +99,7 @@ public class PetApiTest { public void deletePetTest() { Long petId = null; String apiKey = null; - //api.deletePet(petId, apiKey); + //api.deletePet(petId, apiKey); // TODO: test validations @@ -117,7 +117,7 @@ public class PetApiTest { @Test public void findPetsByStatusTest() { List status = null; - //List response = api.findPetsByStatus(status); + //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations @@ -135,7 +135,7 @@ public class PetApiTest { @Test public void findPetsByTagsTest() { List tags = null; - //List response = api.findPetsByTags(tags); + //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations @@ -153,7 +153,7 @@ public class PetApiTest { @Test public void getPetByIdTest() { Long petId = null; - //Pet response = api.getPetById(petId); + //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations @@ -163,15 +163,13 @@ public class PetApiTest { /** * Update an existing pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void updatePetTest() { - Pet body = null; - //api.updatePet(body); + Pet pet = null; + //api.updatePet(pet); // TODO: test validations @@ -181,8 +179,6 @@ public class PetApiTest { /** * Updates a pet in the store with form data * - * - * * @throws ApiException * if the Api call fails */ @@ -191,7 +187,7 @@ public class PetApiTest { Long petId = null; String name = null; String status = null; - //api.updatePetWithForm(petId, name, status); + //api.updatePetWithForm(petId, name, status); // TODO: test validations @@ -201,8 +197,6 @@ public class PetApiTest { /** * uploads an image * - * - * * @throws ApiException * if the Api call fails */ @@ -211,7 +205,7 @@ public class PetApiTest { Long petId = null; String additionalMetadata = null; org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java similarity index 84% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/StoreApiTest.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java index af89e255a9..994ccedd71 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for StoreApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for StoreApi */ public class StoreApiTest { @@ -79,7 +83,7 @@ public class StoreApiTest { @Test public void deleteOrderTest() { String orderId = null; - //api.deleteOrder(orderId); + //api.deleteOrder(orderId); // TODO: test validations @@ -96,7 +100,7 @@ public class StoreApiTest { */ @Test public void getInventoryTest() { - //Map response = api.getInventory(); + //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations @@ -114,7 +118,7 @@ public class StoreApiTest { @Test public void getOrderByIdTest() { Long orderId = null; - //Order response = api.getOrderById(orderId); + //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations @@ -124,15 +128,13 @@ public class StoreApiTest { /** * Place an order for a pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void placeOrderTest() { - Order body = null; - //Order response = api.placeOrder(body); + Order order = null; + //Order response = api.placeOrder(order); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java similarity index 83% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/UserApiTest.java rename to samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java index f789f0fc93..d3fcb9f0f2 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/io/swagger/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for UserApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for UserApi */ public class UserApiTest { @@ -78,8 +82,8 @@ public class UserApiTest { */ @Test public void createUserTest() { - User body = null; - //api.createUser(body); + User user = null; + //api.createUser(user); // TODO: test validations @@ -89,15 +93,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithArrayInputTest() { - List body = null; - //api.createUsersWithArrayInput(body); + List user = null; + //api.createUsersWithArrayInput(user); // TODO: test validations @@ -107,15 +109,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithListInputTest() { - List body = null; - //api.createUsersWithListInput(body); + List user = null; + //api.createUsersWithListInput(user); // TODO: test validations @@ -133,7 +133,7 @@ public class UserApiTest { @Test public void deleteUserTest() { String username = null; - //api.deleteUser(username); + //api.deleteUser(username); // TODO: test validations @@ -143,15 +143,13 @@ public class UserApiTest { /** * Get user by user name * - * - * * @throws ApiException * if the Api call fails */ @Test public void getUserByNameTest() { String username = null; - //User response = api.getUserByName(username); + //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations @@ -161,8 +159,6 @@ public class UserApiTest { /** * Logs user into the system * - * - * * @throws ApiException * if the Api call fails */ @@ -170,7 +166,7 @@ public class UserApiTest { public void loginUserTest() { String username = null; String password = null; - //String response = api.loginUser(username, password); + //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations @@ -180,14 +176,12 @@ public class UserApiTest { /** * Logs out current logged in user session * - * - * * @throws ApiException * if the Api call fails */ @Test public void logoutUserTest() { - //api.logoutUser(); + //api.logoutUser(); // TODO: test validations @@ -205,8 +199,8 @@ public class UserApiTest { @Test public void updateUserTest() { String username = null; - User body = null; - //api.updateUser(username, body); + User user = null; + //api.updateUser(username, user); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf-cdi/.openapi-generator-ignore b/samples/server/petstore/jaxrs-cxf-cdi/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-cxf-cdi/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/io/swagger/api/RestApplication.java index 3b43beeb9b..1ae5493877 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/io/swagger/api/RestApplication.java @@ -1,9 +1,9 @@ -package io.swagger.api; - -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; - -@ApplicationPath("/") -public class RestApplication extends Application { - // Add implementation-specific details here +package io.swagger.api; + +import javax.ws.rs.ApplicationPath; +import javax.ws.rs.core.Application; + +@ApplicationPath("/") +public class RestApplication extends Application { + // Add implementation-specific details here } \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/main/webapp/WEB-INF/beans.xml b/samples/server/petstore/jaxrs-cxf-cdi/src/main/webapp/WEB-INF/beans.xml index f9f7d3d948..cb6d500d43 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/main/webapp/WEB-INF/beans.xml +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/main/webapp/WEB-INF/beans.xml @@ -1,13 +1,13 @@ - - - - - + + + + + \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf-cdi/swagger.json b/samples/server/petstore/jaxrs-cxf-cdi/swagger.json deleted file mode 100644 index 388bfca115..0000000000 --- a/samples/server/petstore/jaxrs-cxf-cdi/swagger.json +++ /dev/null @@ -1,831 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "version" : "1.0.0", - "title" : "Swagger Petstore", - "termsOfService" : "http://swagger.io/terms/", - "contact" : { - "email" : "apiteam@swagger.io" - }, - "license" : { - "name" : "Apache-2.0", - "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host" : "petstore.swagger.io", - "basePath" : "/v2", - "tags" : [ { - "name" : "pet", - "description" : "Everything about your Pets", - "externalDocs" : { - "description" : "Find out more", - "url" : "http://swagger.io" - } - }, { - "name" : "store", - "description" : "Access to Petstore orders" - }, { - "name" : "user", - "description" : "Operations about user", - "externalDocs" : { - "description" : "Find out more about our store", - "url" : "http://swagger.io" - } - } ], - "schemes" : [ "http" ], - "paths" : { - "/pet" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "Add a new pet to the store", - "description" : "", - "operationId" : "addPet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "put" : { - "tags" : [ "pet" ], - "summary" : "Update an existing pet", - "description" : "", - "operationId" : "updatePet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - }, - "405" : { - "description" : "Validation exception" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByStatus" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by status", - "description" : "Multiple status values can be provided with comma separated strings", - "operationId" : "findPetsByStatus", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "status", - "in" : "query", - "description" : "Status values that need to be considered for filter", - "required" : true, - "type" : "array", - "items" : { - "type" : "string", - "default" : "available", - "enum" : [ "available", "pending", "sold" ] - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid status value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByTags" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by tags", - "description" : "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "operationId" : "findPetsByTags", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "tags", - "in" : "query", - "description" : "Tags to filter by", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid tag value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ], - "deprecated" : true - } - }, - "/pet/{petId}" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Find pet by ID", - "description" : "Returns a single pet", - "operationId" : "getPetById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to return", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Pet" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - } - }, - "security" : [ { - "api_key" : [ ] - } ] - }, - "post" : { - "tags" : [ "pet" ], - "summary" : "Updates a pet in the store with form data", - "description" : "", - "operationId" : "updatePetWithForm", - "consumes" : [ "application/x-www-form-urlencoded" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet that needs to be updated", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "name", - "in" : "formData", - "description" : "Updated name of the pet", - "required" : false, - "type" : "string" - }, { - "name" : "status", - "in" : "formData", - "description" : "Updated status of the pet", - "required" : false, - "type" : "string" - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "delete" : { - "tags" : [ "pet" ], - "summary" : "Deletes a pet", - "description" : "", - "operationId" : "deletePet", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "api_key", - "in" : "header", - "required" : false, - "type" : "string" - }, { - "name" : "petId", - "in" : "path", - "description" : "Pet id to delete", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "400" : { - "description" : "Invalid pet value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/{petId}/uploadImage" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "uploads an image", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to update", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "additionalMetadata", - "in" : "formData", - "description" : "Additional data to pass to server", - "required" : false, - "type" : "string" - }, { - "name" : "file", - "in" : "formData", - "description" : "file to upload", - "required" : false, - "type" : "file" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ApiResponse" - } - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/store/inventory" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Returns pet inventories by status", - "description" : "Returns a map of status codes to quantities", - "operationId" : "getInventory", - "produces" : [ "application/json" ], - "parameters" : [ ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "integer", - "format" : "int32" - } - } - } - }, - "security" : [ { - "api_key" : [ ] - } ] - } - }, - "/store/order" : { - "post" : { - "tags" : [ "store" ], - "summary" : "Place an order for a pet", - "description" : "", - "operationId" : "placeOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "order placed for purchasing the pet", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Order" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid Order" - } - } - } - }, - "/store/order/{orderId}" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Find purchase order by ID", - "description" : "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId" : "getOrderById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "orderId", - "in" : "path", - "description" : "ID of pet that needs to be fetched", - "required" : true, - "type" : "integer", - "maximum" : 5, - "minimum" : 1, - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - }, - "delete" : { - "tags" : [ "store" ], - "summary" : "Delete purchase order by ID", - "description" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId" : "deleteOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "orderId", - "in" : "path", - "description" : "ID of the order that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - } - }, - "/user" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Create user", - "description" : "This can only be done by the logged in user.", - "operationId" : "createUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Created user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithArray" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithArrayInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithList" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithListInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/login" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs user into the system", - "description" : "", - "operationId" : "loginUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "query", - "description" : "The user name for login", - "required" : true, - "type" : "string" - }, { - "name" : "password", - "in" : "query", - "description" : "The password for login in clear text", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - }, - "headers" : { - "X-Rate-Limit" : { - "type" : "integer", - "format" : "int32", - "description" : "calls per hour allowed by the user" - }, - "X-Expires-After" : { - "type" : "string", - "format" : "date-time", - "description" : "date in UTC when toekn expires" - } - } - }, - "400" : { - "description" : "Invalid username/password supplied" - } - } - } - }, - "/user/logout" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs out current logged in user session", - "description" : "", - "operationId" : "logoutUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/{username}" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Get user by user name", - "description" : "", - "operationId" : "getUserByName", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be fetched. Use user1 for testing. ", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/User" - } - }, - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "put" : { - "tags" : [ "user" ], - "summary" : "Updated user", - "description" : "This can only be done by the logged in user.", - "operationId" : "updateUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "name that need to be deleted", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "description" : "Updated user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid user supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "delete" : { - "tags" : [ "user" ], - "summary" : "Delete user", - "description" : "This can only be done by the logged in user.", - "operationId" : "deleteUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - } - } - }, - "securityDefinitions" : { - "petstore_auth" : { - "type" : "oauth2", - "authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog", - "flow" : "implicit", - "scopes" : { - "write:pets" : "modify pets in your account", - "read:pets" : "read your pets" - } - }, - "api_key" : { - "type" : "apiKey", - "name" : "api_key", - "in" : "header" - } - }, - "definitions" : { - "Order" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "petId" : { - "type" : "integer", - "format" : "int64" - }, - "quantity" : { - "type" : "integer", - "format" : "int32" - }, - "shipDate" : { - "type" : "string", - "format" : "date-time" - }, - "status" : { - "type" : "string", - "description" : "Order Status", - "enum" : [ "placed", "approved", "delivered" ] - }, - "complete" : { - "type" : "boolean", - "default" : false - } - }, - "title" : "Pet Order", - "description" : "An order for a pets from the pet store", - "xml" : { - "name" : "Order" - } - }, - "Category" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "title" : "Pet category", - "description" : "A category for a pet", - "xml" : { - "name" : "Category" - } - }, - "User" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "username" : { - "type" : "string" - }, - "firstName" : { - "type" : "string" - }, - "lastName" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "password" : { - "type" : "string" - }, - "phone" : { - "type" : "string" - }, - "userStatus" : { - "type" : "integer", - "format" : "int32", - "description" : "User Status" - } - }, - "title" : "a User", - "description" : "A User who is purchasing from the pet store", - "xml" : { - "name" : "User" - } - }, - "Tag" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "title" : "Pet Tag", - "description" : "A tag for a pet", - "xml" : { - "name" : "Tag" - } - }, - "Pet" : { - "type" : "object", - "required" : [ "name", "photoUrls" ], - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "category" : { - "$ref" : "#/definitions/Category" - }, - "name" : { - "type" : "string", - "example" : "doggie" - }, - "photoUrls" : { - "type" : "array", - "xml" : { - "name" : "photoUrl", - "wrapped" : true - }, - "items" : { - "type" : "string" - } - }, - "tags" : { - "type" : "array", - "xml" : { - "name" : "tag", - "wrapped" : true - }, - "items" : { - "$ref" : "#/definitions/Tag" - } - }, - "status" : { - "type" : "string", - "description" : "pet status in the store", - "enum" : [ "available", "pending", "sold" ] - } - }, - "title" : "a Pet", - "description" : "A pet for sale in the pet store", - "xml" : { - "name" : "Pet" - } - }, - "ApiResponse" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "integer", - "format" : "int32" - }, - "type" : { - "type" : "string" - }, - "message" : { - "type" : "string" - } - }, - "title" : "An uploaded response", - "description" : "Describes the result of uploading an image resource" - } - }, - "externalDocs" : { - "description" : "Find out more about Swagger", - "url" : "http://swagger.io" - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/.openapi-generator-ignore b/samples/server/petstore/jaxrs-cxf-non-spring-app/.openapi-generator-ignore index c5fa491b4c..70b88e7103 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +**/impl/* \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml b/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml index 6e7a09e3cb..3f93d2f926 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml @@ -33,7 +33,7 @@ 8079 stopit - 8080 + -1 60000 @@ -166,10 +166,9 @@ compile - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson-jaxrs-version} - compile + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${jackson-jaxrs-version} diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java index d64af1964d..96293bcf99 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java index aec77121ff..9758409c43 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java index 20183abc11..d856bee6a0 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Category.java index 58a601a15e..e03374a55c 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/ModelApiResponse.java index e21ad8e09f..d9d7952c04 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Order.java index 02f367a3e7..9f9c27dfdb 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import java.util.Date; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java index 9316b5ae0a..038bad580c 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java @@ -1,10 +1,10 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Tag.java index 9dd2016f0d..c1e32d6021 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/User.java index 13e9cf3954..b81bc0c625 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index de1bba03e9..eb5c3b9af2 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,9 +1,9 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 8b54549696..1c7678fe24 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index f233c06892..fb4ec43138 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/webapp/WEB-INF/web.xml index f10eaf1921..74273f5b86 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/main/webapp/WEB-INF/web.xml @@ -8,7 +8,7 @@ org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet jaxrs.serviceClasses - io.swagger.api.impl.PetApiServiceImpl,io.swagger.api.impl.StoreApiServiceImpl,io.swagger.api.impl.UserApiServiceImpl + org.openapitools.api.impl.PetApiServiceImpl,org.openapitools.api.impl.StoreApiServiceImpl,org.openapitools.api.impl.UserApiServiceImpl jaxrs.providers diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java similarity index 83% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/PetApiTest.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java index bbb67c2439..105d7c1884 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java @@ -23,11 +23,11 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -49,7 +49,11 @@ import java.util.Map; /** - * API tests for PetApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for PetApi */ public class PetApiTest { @@ -72,15 +76,13 @@ public class PetApiTest { /** * Add a new pet to the store * - * - * * @throws ApiException * if the Api call fails */ @Test public void addPetTest() { - Pet body = null; - //api.addPet(body); + Pet pet = null; + //api.addPet(pet); // TODO: test validations @@ -90,8 +92,6 @@ public class PetApiTest { /** * Deletes a pet * - * - * * @throws ApiException * if the Api call fails */ @@ -99,7 +99,7 @@ public class PetApiTest { public void deletePetTest() { Long petId = null; String apiKey = null; - //api.deletePet(petId, apiKey); + //api.deletePet(petId, apiKey); // TODO: test validations @@ -117,7 +117,7 @@ public class PetApiTest { @Test public void findPetsByStatusTest() { List status = null; - //List response = api.findPetsByStatus(status); + //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations @@ -135,7 +135,7 @@ public class PetApiTest { @Test public void findPetsByTagsTest() { List tags = null; - //List response = api.findPetsByTags(tags); + //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations @@ -153,7 +153,7 @@ public class PetApiTest { @Test public void getPetByIdTest() { Long petId = null; - //Pet response = api.getPetById(petId); + //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations @@ -163,15 +163,13 @@ public class PetApiTest { /** * Update an existing pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void updatePetTest() { - Pet body = null; - //api.updatePet(body); + Pet pet = null; + //api.updatePet(pet); // TODO: test validations @@ -181,8 +179,6 @@ public class PetApiTest { /** * Updates a pet in the store with form data * - * - * * @throws ApiException * if the Api call fails */ @@ -191,7 +187,7 @@ public class PetApiTest { Long petId = null; String name = null; String status = null; - //api.updatePetWithForm(petId, name, status); + //api.updatePetWithForm(petId, name, status); // TODO: test validations @@ -201,8 +197,6 @@ public class PetApiTest { /** * uploads an image * - * - * * @throws ApiException * if the Api call fails */ @@ -211,7 +205,7 @@ public class PetApiTest { Long petId = null; String additionalMetadata = null; org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java similarity index 84% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/StoreApiTest.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java index af89e255a9..994ccedd71 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for StoreApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for StoreApi */ public class StoreApiTest { @@ -79,7 +83,7 @@ public class StoreApiTest { @Test public void deleteOrderTest() { String orderId = null; - //api.deleteOrder(orderId); + //api.deleteOrder(orderId); // TODO: test validations @@ -96,7 +100,7 @@ public class StoreApiTest { */ @Test public void getInventoryTest() { - //Map response = api.getInventory(); + //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations @@ -114,7 +118,7 @@ public class StoreApiTest { @Test public void getOrderByIdTest() { Long orderId = null; - //Order response = api.getOrderById(orderId); + //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations @@ -124,15 +128,13 @@ public class StoreApiTest { /** * Place an order for a pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void placeOrderTest() { - Order body = null; - //Order response = api.placeOrder(body); + Order order = null; + //Order response = api.placeOrder(order); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java similarity index 83% rename from samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/UserApiTest.java rename to samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java index f789f0fc93..d3fcb9f0f2 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/io/swagger/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for UserApi + * Swagger Petstore + * + *

This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * + * API tests for UserApi */ public class UserApiTest { @@ -78,8 +82,8 @@ public class UserApiTest { */ @Test public void createUserTest() { - User body = null; - //api.createUser(body); + User user = null; + //api.createUser(user); // TODO: test validations @@ -89,15 +93,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithArrayInputTest() { - List body = null; - //api.createUsersWithArrayInput(body); + List user = null; + //api.createUsersWithArrayInput(user); // TODO: test validations @@ -107,15 +109,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithListInputTest() { - List body = null; - //api.createUsersWithListInput(body); + List user = null; + //api.createUsersWithListInput(user); // TODO: test validations @@ -133,7 +133,7 @@ public class UserApiTest { @Test public void deleteUserTest() { String username = null; - //api.deleteUser(username); + //api.deleteUser(username); // TODO: test validations @@ -143,15 +143,13 @@ public class UserApiTest { /** * Get user by user name * - * - * * @throws ApiException * if the Api call fails */ @Test public void getUserByNameTest() { String username = null; - //User response = api.getUserByName(username); + //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations @@ -161,8 +159,6 @@ public class UserApiTest { /** * Logs user into the system * - * - * * @throws ApiException * if the Api call fails */ @@ -170,7 +166,7 @@ public class UserApiTest { public void loginUserTest() { String username = null; String password = null; - //String response = api.loginUser(username, password); + //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations @@ -180,14 +176,12 @@ public class UserApiTest { /** * Logs out current logged in user session * - * - * * @throws ApiException * if the Api call fails */ @Test public void logoutUserTest() { - //api.logoutUser(); + //api.logoutUser(); // TODO: test validations @@ -205,8 +199,8 @@ public class UserApiTest { @Test public void updateUserTest() { String username = null; - User body = null; - //api.updateUser(username, body); + User user = null; + //api.updateUser(username, user); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/.openapi-generator-ignore b/samples/server/petstore/jaxrs-cxf/.openapi-generator-ignore index e36d46f134..70b88e7103 100644 --- a/samples/server/petstore/jaxrs-cxf/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-cxf/.openapi-generator-ignore @@ -22,4 +22,4 @@ # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -#**/impl/* +**/impl/* \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-cxf/pom.xml b/samples/server/petstore/jaxrs-cxf/pom.xml index 119701b3e8..6d1fab5ec1 100644 --- a/samples/server/petstore/jaxrs-cxf/pom.xml +++ b/samples/server/petstore/jaxrs-cxf/pom.xml @@ -166,10 +166,9 @@ compile - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson-jaxrs-version} - compile + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${jackson-jaxrs-version} diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/AnotherFakeApi.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 1ac19171c3..6abf259b30 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -1,6 +1,6 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeApi.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java index 8597dd380a..ede2eeff2b 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java @@ -1,13 +1,13 @@ -package io.swagger.api; +package org.openapitools.api; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import org.joda.time.LocalDate; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 6ee9fdf6c4..ab8a0d9670 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -1,6 +1,6 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java index b9d07a6238..4eb3881520 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java index 6b3abb736f..a5964ea218 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java index 50aef2b895..20c33bfbaa 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java @@ -1,7 +1,7 @@ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 17e16e8f72..70d0b3fb04 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.HashMap; import java.util.List; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Animal.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Animal.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Animal.java index ec63c65ca3..3ddc9f4a1d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Animal.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Animal.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AnimalFarm.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AnimalFarm.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AnimalFarm.java index 433dec45a3..ea7ba3a7d1 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/AnimalFarm.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AnimalFarm.java @@ -1,8 +1,8 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.Animal; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Animal; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index e384af40a6..8d71e8d684 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.math.BigDecimal; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index c46dc7b48d..4f0dcee51e 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.math.BigDecimal; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayTest.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayTest.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayTest.java index aa599a49e8..38dc1305f7 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ArrayTest.java @@ -1,8 +1,8 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.ReadOnlyFirst; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.ReadOnlyFirst; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Capitalization.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Capitalization.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Capitalization.java index a13ea6d903..23f6518587 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Capitalization.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Cat.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Cat.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Cat.java index 45151da21a..394807dcfc 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Cat.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Cat.java @@ -1,6 +1,6 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Category.java index c555cbbf10..7e35b0e8e7 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ClassModel.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ClassModel.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ClassModel.java index f8ea47f9ad..789e164db0 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ClassModel.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Client.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Client.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Client.java index 93fb0e20b6..b079876c79 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Client.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Client.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Dog.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Dog.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Dog.java index 6bed49c315..062891c899 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Dog.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Dog.java @@ -1,6 +1,6 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumArrays.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumArrays.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumArrays.java index e9828b7fb3..fe8d2eaf2d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumArrays.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.ArrayList; import java.util.List; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumClass.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumClass.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumClass.java index 8434226138..2893c9d03d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumClass.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumClass.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumTest.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumTest.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumTest.java index e564259dfd..4ce089ccab 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/EnumTest.java @@ -1,6 +1,6 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.OuterEnum; +import org.openapitools.model.OuterEnum; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/FormatTest.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java index eda45a0014..f49d833135 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.io.File; import java.math.BigDecimal; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/HasOnlyReadOnly.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 675cc8f4eb..704dd6e8f8 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MapTest.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MapTest.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MapTest.java index 557c040e97..9c8f128bf1 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MapTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MapTest.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.HashMap; import java.util.List; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d54bee75e2..ada14ed2bf 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -1,11 +1,11 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.Animal; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; +import org.openapitools.model.Animal; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Model200Response.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Model200Response.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Model200Response.java index 47364cc3b0..0a4b0546c2 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Model200Response.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelApiResponse.java index 8dda26ada3..016f396ced 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelReturn.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelReturn.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelReturn.java index eafbe41f53..8162d879d0 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ModelReturn.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Name.java similarity index 91% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Name.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Name.java index 94bb6caa53..feaa49e743 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Name.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; @@ -30,7 +30,7 @@ public class Name { private String property = null; @ApiModelProperty(value = "") - private Integer _123Number = null; + private Integer _123number = null; /** * Get name * @return name @@ -79,12 +79,12 @@ public class Name { } /** - * Get _123Number - * @return _123Number + * Get _123number + * @return _123number **/ @JsonProperty("123Number") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } @@ -97,7 +97,7 @@ public class Name { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/NumberOnly.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/NumberOnly.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/NumberOnly.java index 1318a296e3..948d200470 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/NumberOnly.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.math.BigDecimal; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Order.java index 2d3cab3e0a..0cd52dc078 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Date; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterBoolean.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterBoolean.java similarity index 96% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterBoolean.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterBoolean.java index 8d2e893f83..3ecea6b1c2 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterBoolean.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterBoolean.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterComposite.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterComposite.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterComposite.java index 2d0c2bce5d..3feb137566 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterComposite.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.math.BigDecimal; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterEnum.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterEnum.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterEnum.java index 09afd692d8..bf50025193 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterEnum.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterEnum.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterNumber.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterNumber.java similarity index 96% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterNumber.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterNumber.java index ba96961e0d..a8ec86ab33 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterNumber.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterNumber.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterString.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterString.java similarity index 96% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterString.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterString.java index 89b9846a69..cdafdd0230 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/OuterString.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/OuterString.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java index 3b322d1bb7..d25eb5c647 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java @@ -1,9 +1,9 @@ -package io.swagger.model; +package org.openapitools.model; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ReadOnlyFirst.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ReadOnlyFirst.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 41603bec5f..df0053c020 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/SpecialModelName.java similarity index 66% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/SpecialModelName.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/SpecialModelName.java index 51f98e6882..6a80cf9785 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; @@ -16,22 +16,22 @@ import com.fasterxml.jackson.annotation.JsonProperty; public class SpecialModelName { @ApiModelProperty(value = "") - private Long specialPropertyName = null; + private Long $specialPropertyName = null; /** - * Get specialPropertyName - * @return specialPropertyName + * Get $specialPropertyName + * @return $specialPropertyName **/ @JsonProperty("$special[property.name]") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,7 +41,7 @@ public class SpecialModelName { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Tag.java index f10842e429..19b0967479 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/User.java index c759db2cda..2225938e63 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import javax.validation.constraints.*; import javax.validation.Valid; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java similarity index 88% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index a5452e2f5d..c3dab9d531 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -1,7 +1,7 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.Client; +import org.openapitools.api.*; +import org.openapitools.model.Client; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index b52f14f285..e75ca34351 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import org.joda.time.LocalDate; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java similarity index 89% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index 9a4c53610f..d6caa8c38f 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -1,7 +1,7 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.Client; +import org.openapitools.api.*; +import org.openapitools.model.Client; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index c3fe19e611..7822835cf2 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,9 +1,9 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 94% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index ea57b50769..8923787129 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 95% rename from samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index d8ff1dbf3e..1a39e2d99f 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,8 +1,8 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; +import org.openapitools.api.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.io.InputStream; import java.io.OutputStream; diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/AnotherFakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java similarity index 85% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/AnotherFakeApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java index 85670e1923..79ec92b357 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/AnotherFakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java @@ -23,9 +23,9 @@ */ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Client; +import org.openapitools.model.Client; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -47,7 +47,11 @@ import java.util.Map; /** - * API tests for AnotherFakeApi + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for AnotherFakeApi */ public class AnotherFakeApiTest { @@ -77,8 +81,8 @@ public class AnotherFakeApiTest { */ @Test public void testSpecialTagsTest() { - Client body = null; - //Client response = api.testSpecialTags(body); + Client client = null; + //Client response = api.testSpecialTags(client); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java similarity index 55% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java index 20334be985..56a239eebf 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java @@ -23,12 +23,16 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; +import java.io.File; import org.joda.time.LocalDate; +import java.util.Map; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -50,7 +54,11 @@ import java.util.Map; /** - * API tests for FakeApi + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for FakeApi */ public class FakeApiTest { @@ -63,13 +71,84 @@ public class FakeApiTest { List providers = new ArrayList(); providers.add(provider); - api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", FakeApi.class, providers); + api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); ClientConfiguration config = WebClient.getConfig(client); } + /** + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeOuterBooleanSerializeTest() { + Boolean booleanPostBody = null; + //Boolean response = api.fakeOuterBooleanSerialize(booleanPostBody); + //assertNotNull(response); + // TODO: test validations + + + } + + /** + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeOuterCompositeSerializeTest() { + OuterComposite outerComposite = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); + //assertNotNull(response); + // TODO: test validations + + + } + + /** + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeOuterNumberSerializeTest() { + BigDecimal body = null; + //BigDecimal response = api.fakeOuterNumberSerialize(body); + //assertNotNull(response); + // TODO: test validations + + + } + + /** + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeOuterStringSerializeTest() { + String body = null; + //String response = api.fakeOuterStringSerialize(body); + //assertNotNull(response); + // TODO: test validations + + + } + + /** + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyWithQueryParamsTest() { + String query = null; + User user = null; + //api.testBodyWithQueryParams(query, user); + + // TODO: test validations + + + } + /** * To test \"client\" model * @@ -80,8 +159,8 @@ public class FakeApiTest { */ @Test public void testClientModelTest() { - Client body = null; - //Client response = api.testClientModel(body); + Client client = null; + //Client response = api.testClientModel(client); //assertNotNull(response); // TODO: test validations @@ -107,7 +186,7 @@ public class FakeApiTest { Long int64 = null; Float _float = null; String string = null; - byte[] binary = null; + org.apache.cxf.jaxrs.ext.multipart.Attachment binary = null; LocalDate date = null; Date dateTime = null; String password = null; @@ -129,15 +208,48 @@ public class FakeApiTest { */ @Test public void testEnumParametersTest() { - List enumFormStringArray = null; - String enumFormString = null; List enumHeaderStringArray = null; String enumHeaderString = null; List enumQueryStringArray = null; String enumQueryString = null; Integer enumQueryInteger = null; Double enumQueryDouble = null; - //api.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble); + List enumFormStringArray = null; + String enumFormString = null; + //api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + + // TODO: test validations + + + } + + /** + * test inline additionalProperties + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testInlineAdditionalPropertiesTest() { + String requestBody = null; + //api.testInlineAdditionalProperties(requestBody); + + // TODO: test validations + + + } + + /** + * test json serialization of form data + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testJsonFormDataTest() { + String param = null; + String param2 = null; + //api.testJsonFormData(param, param2); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeClassnameTags123ApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java similarity index 82% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeClassnameTags123ApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java index 0cbd5df920..c798a9e7b7 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/FakeClassnameTags123ApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java @@ -23,9 +23,9 @@ */ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.Client; +import org.openapitools.model.Client; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -47,7 +47,11 @@ import java.util.Map; /** - * API tests for FakeClassnameTags123Api + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for FakeClassnameTags123Api */ public class FakeClassnameTags123ApiTest { @@ -60,7 +64,7 @@ public class FakeClassnameTags123ApiTest { List providers = new ArrayList(); providers.add(provider); - api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", FakeClassnameTags123Api.class, providers); + api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeClassnameTags123Api.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); ClientConfiguration config = WebClient.getConfig(client); @@ -70,15 +74,15 @@ public class FakeClassnameTags123ApiTest { /** * To test class name in snake case * - * + * To test class name in snake case * * @throws ApiException * if the Api call fails */ @Test public void testClassnameTest() { - Client body = null; - //Client response = api.testClassname(body); + Client client = null; + //Client response = api.testClassname(client); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java similarity index 86% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/PetApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java index 444c595b78..8dd432fed9 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java @@ -23,11 +23,11 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -49,7 +49,11 @@ import java.util.Map; /** - * API tests for PetApi + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for PetApi */ public class PetApiTest { @@ -62,7 +66,7 @@ public class PetApiTest { List providers = new ArrayList(); providers.add(provider); - api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", PetApi.class, providers); + api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", PetApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); ClientConfiguration config = WebClient.getConfig(client); @@ -72,15 +76,13 @@ public class PetApiTest { /** * Add a new pet to the store * - * - * * @throws ApiException * if the Api call fails */ @Test public void addPetTest() { - Pet body = null; - //api.addPet(body); + Pet pet = null; + //api.addPet(pet); // TODO: test validations @@ -90,8 +92,6 @@ public class PetApiTest { /** * Deletes a pet * - * - * * @throws ApiException * if the Api call fails */ @@ -99,7 +99,7 @@ public class PetApiTest { public void deletePetTest() { Long petId = null; String apiKey = null; - //api.deletePet(petId, apiKey); + //api.deletePet(petId, apiKey); // TODO: test validations @@ -153,7 +153,7 @@ public class PetApiTest { @Test public void getPetByIdTest() { Long petId = null; - //Pet response = api.getPetById(petId); + //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations @@ -163,15 +163,13 @@ public class PetApiTest { /** * Update an existing pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void updatePetTest() { - Pet body = null; - //api.updatePet(body); + Pet pet = null; + //api.updatePet(pet); // TODO: test validations @@ -181,8 +179,6 @@ public class PetApiTest { /** * Updates a pet in the store with form data * - * - * * @throws ApiException * if the Api call fails */ @@ -191,7 +187,7 @@ public class PetApiTest { Long petId = null; String name = null; String status = null; - //api.updatePetWithForm(petId, name, status); + //api.updatePetWithForm(petId, name, status); // TODO: test validations @@ -201,8 +197,6 @@ public class PetApiTest { /** * uploads an image * - * - * * @throws ApiException * if the Api call fails */ @@ -211,7 +205,7 @@ public class PetApiTest { Long petId = null; String additionalMetadata = null; org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java similarity index 87% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/StoreApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java index c0cd10dca7..eebc070db5 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for StoreApi + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for StoreApi */ public class StoreApiTest { @@ -61,7 +65,7 @@ public class StoreApiTest { List providers = new ArrayList(); providers.add(provider); - api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", StoreApi.class, providers); + api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", StoreApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); ClientConfiguration config = WebClient.getConfig(client); @@ -79,7 +83,7 @@ public class StoreApiTest { @Test public void deleteOrderTest() { String orderId = null; - //api.deleteOrder(orderId); + //api.deleteOrder(orderId); // TODO: test validations @@ -114,7 +118,7 @@ public class StoreApiTest { @Test public void getOrderByIdTest() { Long orderId = null; - //Order response = api.getOrderById(orderId); + //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations @@ -124,15 +128,13 @@ public class StoreApiTest { /** * Place an order for a pet * - * - * * @throws ApiException * if the Api call fails */ @Test public void placeOrderTest() { - Order body = null; - //Order response = api.placeOrder(body); + Order order = null; + //Order response = api.placeOrder(order); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java similarity index 84% rename from samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/UserApiTest.java rename to samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java index 2d1481bde3..27e54fe390 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/io/swagger/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java @@ -23,10 +23,10 @@ */ -package io.swagger.api; +package org.openapitools.api; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -48,7 +48,11 @@ import java.util.Map; /** - * API tests for UserApi + * Swagger Petstore + * + *

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API tests for UserApi */ public class UserApiTest { @@ -61,7 +65,7 @@ public class UserApiTest { List providers = new ArrayList(); providers.add(provider); - api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", UserApi.class, providers); + api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", UserApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); ClientConfiguration config = WebClient.getConfig(client); @@ -78,8 +82,8 @@ public class UserApiTest { */ @Test public void createUserTest() { - User body = null; - //api.createUser(body); + User user = null; + //api.createUser(user); // TODO: test validations @@ -89,15 +93,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithArrayInputTest() { - List body = null; - //api.createUsersWithArrayInput(body); + List user = null; + //api.createUsersWithArrayInput(user); // TODO: test validations @@ -107,15 +109,13 @@ public class UserApiTest { /** * Creates list of users with given input array * - * - * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithListInputTest() { - List body = null; - //api.createUsersWithListInput(body); + List user = null; + //api.createUsersWithListInput(user); // TODO: test validations @@ -133,7 +133,7 @@ public class UserApiTest { @Test public void deleteUserTest() { String username = null; - //api.deleteUser(username); + //api.deleteUser(username); // TODO: test validations @@ -143,15 +143,13 @@ public class UserApiTest { /** * Get user by user name * - * - * * @throws ApiException * if the Api call fails */ @Test public void getUserByNameTest() { String username = null; - //User response = api.getUserByName(username); + //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations @@ -161,8 +159,6 @@ public class UserApiTest { /** * Logs user into the system * - * - * * @throws ApiException * if the Api call fails */ @@ -170,7 +166,7 @@ public class UserApiTest { public void loginUserTest() { String username = null; String password = null; - //String response = api.loginUser(username, password); + //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations @@ -180,14 +176,12 @@ public class UserApiTest { /** * Logs out current logged in user session * - * - * * @throws ApiException * if the Api call fails */ @Test public void logoutUserTest() { - //api.logoutUser(); + //api.logoutUser(); // TODO: test validations @@ -205,8 +199,8 @@ public class UserApiTest { @Test public void updateUserTest() { String username = null; - User body = null; - //api.updateUser(username, body); + User user = null; + //api.updateUser(username, user); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator-ignore b/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator-ignore deleted file mode 100644 index c5fa491b4c..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator/VERSION b/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator/VERSION deleted file mode 100644 index 855ff9501e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.0-SNAPSHOT \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/README.md b/samples/server/petstore/jaxrs-datelib-j8/README.md deleted file mode 100644 index da8e89ff9b..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Jersey generated server - -## Overview -This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the -[OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This -is an example of building a swagger-enabled JAX-RS server. - -This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework. - -To run the server, please execute the following: - -``` -mvn clean package jetty:run -``` - -You can then view the swagger listing here: - -``` -http://localhost:80/v2/swagger.json -``` - -Note that if you have configured the `host` to be something other than localhost, the calls through -swagger-ui will be directed to that host and not localhost! \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/pom.xml b/samples/server/petstore/jaxrs-datelib-j8/pom.xml deleted file mode 100644 index 0deb558f4d..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/pom.xml +++ /dev/null @@ -1,185 +0,0 @@ - - 4.0.0 - io.swagger - swagger-jaxrs-datelib-j8-server - jar - swagger-jaxrs-datelib-j8-server - 1.0.0 - - - - Unlicense - http://www.apache.org/licenses/LICENSE-2.0.html - repo - - - - - src/main/java - - - org.apache.maven.plugins - maven-war-plugin - 3.1.0 - - - maven-failsafe-plugin - 2.6 - - - - integration-test - verify - - - - - - org.eclipse.jetty - jetty-maven-plugin - ${jetty-version} - - - / - - target/${project.artifactId}-${project.version} - 8079 - stopit - 10 - - 10080 - 60000 - - - - - start-jetty - pre-integration-test - - start - - - 0 - true - - - - stop-jetty - post-integration-test - - stop - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.9.1 - - - add-source - generate-sources - - add-source - - - - src/gen/java - - - - - - - - - - io.swagger - swagger-jersey2-jaxrs - compile - ${swagger-core-version} - - - ch.qos.logback - logback-classic - ${logback-version} - compile - - - ch.qos.logback - logback-core - ${logback-version} - compile - - - junit - junit - ${junit-version} - test - - - javax.servlet - servlet-api - ${servlet-api-version} - - - org.glassfish.jersey.containers - jersey-container-servlet-core - ${jersey2-version} - - - org.glassfish.jersey.media - jersey-media-multipart - ${jersey2-version} - - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - ${jackson-version} - - - com.fasterxml.jackson.jaxrs - jackson-jaxrs-json-provider - ${jackson-version} - - - - com.brsanthu - migbase64 - 2.2 - - - - - - javax.validation - validation-api - 1.1.0.Final - provided - - - - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - true - - - - - 1.8 - ${java.version} - ${java.version} - 1.5.18 - 9.2.9.v20150224 - 2.22.2 - 2.8.9 - 4.12 - 1.1.7 - 2.5 - UTF-8 - - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApi.java deleted file mode 100644 index c79af3fc28..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.factories.AnotherFakeApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import io.swagger.model.Client; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/another-fake") - - -@io.swagger.annotations.Api(description = "the another-fake API") - -public class AnotherFakeApi { - private final AnotherFakeApiService delegate; - - public AnotherFakeApi(@Context ServletConfig servletContext) { - AnotherFakeApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("AnotherFakeApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (AnotherFakeApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = AnotherFakeApiServiceFactory.getAnotherFakeApi(); - } - - this.delegate = delegate; - } - - @PATCH - @Path("/dummy") - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testSpecialTags(@ApiParam(value = "client model" ,required=true) Client body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testSpecialTags(body,securityContext); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApiService.java deleted file mode 100644 index ca43c203e8..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/AnotherFakeApiService.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import io.swagger.model.Client; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class AnotherFakeApiService { - public abstract Response testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApi.java deleted file mode 100644 index 92a9464300..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApi.java +++ /dev/null @@ -1,196 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.FakeApiService; -import io.swagger.api.factories.FakeApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import java.math.BigDecimal; -import io.swagger.model.Client; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import io.swagger.model.OuterComposite; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/fake") - - -@io.swagger.annotations.Api(description = "the fake API") - -public class FakeApi { - private final FakeApiService delegate; - - public FakeApi(@Context ServletConfig servletContext) { - FakeApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("FakeApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (FakeApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = FakeApiServiceFactory.getFakeApi(); - } - - this.delegate = delegate; - } - - @POST - @Path("/outer/boolean") - - - @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.fakeOuterBooleanSerialize(body,securityContext); - } - @POST - @Path("/outer/composite") - - - @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) OuterComposite body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(body,securityContext); - } - @POST - @Path("/outer/number") - - - @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.fakeOuterNumberSerialize(body,securityContext); - } - @POST - @Path("/outer/string") - - - @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.fakeOuterStringSerialize(body,securityContext); - } - @PATCH - - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model" ,required=true) Client body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testClientModel(body,securityContext); - } - @POST - - @Consumes({ "application/xml; charset=utf-8", "application/json; charset=utf-8" }) - @Produces({ "application/xml; charset=utf-8", "application/json; charset=utf-8" }) - @io.swagger.annotations.ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", response = Void.class, authorizations = { - @io.swagger.annotations.Authorization(value = "http_basic_test") - }, tags={ "fake", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response testEndpointParameters(@ApiParam(value = "None", required=true) @FormParam("number") BigDecimal number -,@ApiParam(value = "None", required=true) @FormParam("double") Double _double -,@ApiParam(value = "None", required=true) @FormParam("pattern_without_delimiter") String patternWithoutDelimiter -,@ApiParam(value = "None", required=true) @FormParam("byte") byte[] _byte -,@ApiParam(value = "None") @FormParam("integer") Integer integer -,@ApiParam(value = "None") @FormParam("int32") Integer int32 -,@ApiParam(value = "None") @FormParam("int64") Long int64 -,@ApiParam(value = "None") @FormParam("float") Float _float -,@ApiParam(value = "None") @FormParam("string") String string -,@ApiParam(value = "None") @FormParam("binary") byte[] binary -,@ApiParam(value = "None") @FormParam("date") LocalDate date -,@ApiParam(value = "None") @FormParam("dateTime") OffsetDateTime dateTime -,@ApiParam(value = "None") @FormParam("password") String password -,@ApiParam(value = "None") @FormParam("callback") String paramCallback -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binary,date,dateTime,password,paramCallback,securityContext); - } - @GET - - @Consumes({ "*/*" }) - @Produces({ "*/*" }) - @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) }) - public Response testEnumParameters(@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @FormParam("enum_form_string_array") List enumFormStringArray -,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString -,@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray -,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString -,@ApiParam(value = "Query parameter enum test (string array)", allowableValues=">, $") @QueryParam("enum_query_string_array") List enumQueryStringArray -,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString -,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger -,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @FormParam("enum_query_double") Double enumQueryDouble -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testEnumParameters(enumFormStringArray,enumFormString,enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,securityContext); - } - @POST - @Path("/inline-additionalProperties") - @Consumes({ "application/json" }) - - @io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", 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 testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) Object param -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testInlineAdditionalProperties(param,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); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApiService.java deleted file mode 100644 index 0912852fd9..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeApiService.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import java.math.BigDecimal; -import io.swagger.model.Client; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import io.swagger.model.OuterComposite; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class FakeApiService { - public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,byte[] binary,LocalDate date,OffsetDateTime dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; - public abstract Response testEnumParameters(List enumFormStringArray,String enumFormString,List enumHeaderStringArray,String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger,Double enumQueryDouble,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Object param,SecurityContext securityContext) throws NotFoundException; - public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApi.java deleted file mode 100644 index d72e946b99..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApi.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.factories.FakeClassnameTestApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import io.swagger.model.Client; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/fake_classname_test") - - -@io.swagger.annotations.Api(description = "the fake_classname_test API") - -public class FakeClassnameTestApi { - private final FakeClassnameTestApiService delegate; - - public FakeClassnameTestApi(@Context ServletConfig servletContext) { - FakeClassnameTestApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("FakeClassnameTestApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (FakeClassnameTestApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = FakeClassnameTestApiServiceFactory.getFakeClassnameTestApi(); - } - - this.delegate = delegate; - } - - @PATCH - - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @io.swagger.annotations.ApiOperation(value = "To test class name in snake case", notes = "", response = Client.class, authorizations = { - @io.swagger.annotations.Authorization(value = "api_key_query") - }, tags={ "fake_classname_tags 123#$%^", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model" ,required=true) Client body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.testClassname(body,securityContext); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java deleted file mode 100644 index 9bf76fef9e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import io.swagger.model.Client; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class FakeClassnameTestApiService { - public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/JacksonJsonProvider.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/JacksonJsonProvider.java deleted file mode 100644 index ac794e2f5c..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/JacksonJsonProvider.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.swagger.api; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; - -import com.fasterxml.jackson.datatype.jsr310.*; - -import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; - -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; - -@Provider -@Produces({MediaType.APPLICATION_JSON}) -public class JacksonJsonProvider extends JacksonJaxbJsonProvider { - - public JacksonJsonProvider() { - - ObjectMapper objectMapper = new ObjectMapper() - .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) - .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) - .registerModule(new JavaTimeModule()) - .setDateFormat(new RFC3339DateFormat()); - - setMapper(objectMapper); - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/LocalDateProvider.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/LocalDateProvider.java deleted file mode 100644 index a3b2c89410..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/LocalDateProvider.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.swagger.api; - -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; -import java.time.LocalDate; - -@Provider -public class LocalDateProvider implements ParamConverterProvider { - - public ParamConverter getConverter(Class clazz, Type type, Annotation[] annotations) { - if (clazz.getName().equals(LocalDate.class.getName())) { - return new ParamConverter() { - @SuppressWarnings("unchecked") - public T fromString(String value) { - return value!=null ? (T) LocalDate.parse(value) : null; - } - - public String toString(T bean) { - return bean!=null ? bean.toString() : ""; - } - }; - } - return null; - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/OffsetDateTimeProvider.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/OffsetDateTimeProvider.java deleted file mode 100644 index 3f81bd4c00..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/OffsetDateTimeProvider.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.swagger.api; - -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; -import java.time.OffsetDateTime; - -@Provider -public class OffsetDateTimeProvider implements ParamConverterProvider { - - public ParamConverter getConverter(Class clazz, Type type, Annotation[] annotations) { - if (clazz.getName().equals(OffsetDateTime.class.getName())) { - return new ParamConverter() { - @SuppressWarnings("unchecked") - public T fromString(String value) { - return value != null ? (T) OffsetDateTime.parse(value) : null; - } - - public String toString(T bean) { - return bean != null ? bean.toString() : ""; - } - }; - } - return null; - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApi.java deleted file mode 100644 index 0ce48e9ecb..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApi.java +++ /dev/null @@ -1,211 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.PetApiService; -import io.swagger.api.factories.PetApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/pet") - - -@io.swagger.annotations.Api(description = "the pet API") - -public class PetApi { - private final PetApiService delegate; - - public PetApi(@Context ServletConfig servletContext) { - PetApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("PetApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (PetApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = PetApiServiceFactory.getPetApi(); - } - - this.delegate = delegate; - } - - @POST - - @Consumes({ "application/json", "application/xml" }) - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.addPet(body,securityContext); - } - @DELETE - @Path("/{petId}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Deletes a pet", notes = "", response = Void.class, authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathParam("petId") Long petId -,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.deletePet(petId,apiKey,securityContext); - } - @GET - @Path("/findByStatus") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold") @QueryParam("status") List status -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.findPetsByStatus(status,securityContext); - } - @GET - @Path("/findByTags") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by",required=true) @QueryParam("tags") List tags -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.findPetsByTags(tags,securityContext); - } - @GET - @Path("/{petId}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = { - @io.swagger.annotations.Authorization(value = "api_key") - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.getPetById(petId,securityContext); - } - @PUT - - @Consumes({ "application/json", "application/xml" }) - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.updatePet(body,securityContext); - } - @POST - @Path("/{petId}") - @Consumes({ "application/x-www-form-urlencoded" }) - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = Void.class, authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathParam("petId") Long petId -,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name -,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.updatePetWithForm(petId,name,status,securityContext); - } - @POST - @Path("/{petId}/uploadImage") - @Consumes({ "multipart/form-data" }) - @Produces({ "application/json" }) - @io.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = { - @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { - @io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathParam("petId") Long petId -,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata -, - @FormDataParam("file") InputStream fileInputStream, - @FormDataParam("file") FormDataContentDisposition fileDetail -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.uploadFile(petId,additionalMetadata,fileInputStream, fileDetail,securityContext); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApiService.java deleted file mode 100644 index 31566759c5..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/PetApiService.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class PetApiService { - public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; - public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; - public abstract Response findPetsByStatus( @NotNull List status,SecurityContext securityContext) throws NotFoundException; - public abstract Response findPetsByTags( @NotNull List tags,SecurityContext securityContext) throws NotFoundException; - public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; - public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApi.java deleted file mode 100644 index ab75794709..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApi.java +++ /dev/null @@ -1,115 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.StoreApiService; -import io.swagger.api.factories.StoreApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import java.util.Map; -import io.swagger.model.Order; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/store") - - -@io.swagger.annotations.Api(description = "the store API") - -public class StoreApi { - private final StoreApiService delegate; - - public StoreApi(@Context ServletConfig servletContext) { - StoreApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("StoreApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (StoreApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = StoreApiServiceFactory.getStoreApi(); - } - - this.delegate = delegate; - } - - @DELETE - @Path("/order/{order_id}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", response = Void.class, tags={ "store", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.deleteOrder(orderId,securityContext); - } - @GET - @Path("/inventory") - - @Produces({ "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = { - @io.swagger.annotations.Authorization(value = "api_key") - }, tags={ "store", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) - public Response getInventory(@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.getInventory(securityContext); - } - @GET - @Path("/order/{order_id}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("order_id") Long orderId -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.getOrderById(orderId,securityContext); - } - @POST - @Path("/order") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class, tags={ "store", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) Order body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.placeOrder(body,securityContext); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApiService.java deleted file mode 100644 index bc578b5d97..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StoreApiService.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import java.util.Map; -import io.swagger.model.Order; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class StoreApiService { - public abstract Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response getInventory(SecurityContext securityContext) throws NotFoundException; - public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApi.java deleted file mode 100644 index 3cc93e9043..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApi.java +++ /dev/null @@ -1,165 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.*; -import io.swagger.api.UserApiService; -import io.swagger.api.factories.UserApiServiceFactory; - -import io.swagger.annotations.ApiParam; -import io.swagger.jaxrs.*; - -import java.util.List; -import io.swagger.model.User; - -import java.util.Map; -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import javax.servlet.ServletConfig; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.*; -import javax.validation.constraints.*; - -@Path("/user") - - -@io.swagger.annotations.Api(description = "the user API") - -public class UserApi { - private final UserApiService delegate; - - public UserApi(@Context ServletConfig servletContext) { - UserApiService delegate = null; - - if (servletContext != null) { - String implClass = servletContext.getInitParameter("UserApi.implementation"); - if (implClass != null && !"".equals(implClass.trim())) { - try { - delegate = (UserApiService) Class.forName(implClass).newInstance(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - if (delegate == null) { - delegate = UserApiServiceFactory.getUserApi(); - } - - this.delegate = delegate; - } - - @POST - - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) User body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.createUser(body,securityContext); - } - @POST - @Path("/createWithArray") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) List body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.createUsersWithArrayInput(body,securityContext); - } - @POST - @Path("/createWithList") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) List body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.createUsersWithListInput(body,securityContext); - } - @DELETE - @Path("/{username}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.deleteUser(username,securityContext); - } - @GET - @Path("/{username}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Get user by user name", notes = "", response = User.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = User.class), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ",required=true) @PathParam("username") String username -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.getUserByName(username,securityContext); - } - @GET - @Path("/login") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Logs user into the system", notes = "", response = String.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), - - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login",required=true) @QueryParam("username") String username -,@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.loginUser(username,password,securityContext); - } - @GET - @Path("/logout") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Logs out current logged in user session", notes = "", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response logoutUser(@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.logoutUser(securityContext); - } - @PUT - @Path("/{username}") - - @Produces({ "application/xml", "application/json" }) - @io.swagger.annotations.ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) - @io.swagger.annotations.ApiResponses(value = { - @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), - - @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username -,@ApiParam(value = "Updated user object" ,required=true) User body -,@Context SecurityContext securityContext) - throws NotFoundException { - return delegate.updateUser(username,body,securityContext); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApiService.java deleted file mode 100644 index 8bbee3394d..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/UserApiService.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.swagger.api; - -import io.swagger.api.*; -import io.swagger.model.*; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import java.util.List; -import io.swagger.model.User; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public abstract class UserApiService { - public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; - public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; - public abstract Response getUserByName(String username,SecurityContext securityContext) throws NotFoundException; - public abstract Response loginUser( @NotNull String username, @NotNull String password,SecurityContext securityContext) throws NotFoundException; - public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java deleted file mode 100644 index 93259ae1d6..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * AdditionalPropertiesClass - */ - -public class AdditionalPropertiesClass implements Serializable { - @JsonProperty("map_property") - private Map mapProperty = null; - - @JsonProperty("map_of_map_property") - private Map> mapOfMapProperty = null; - - public AdditionalPropertiesClass mapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - return this; - } - - public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) { - if (this.mapProperty == null) { - this.mapProperty = new HashMap<>(); - } - this.mapProperty.put(key, mapPropertyItem); - return this; - } - - /** - * Get mapProperty - * @return mapProperty - **/ - @JsonProperty("map_property") - @ApiModelProperty(value = "") - public Map getMapProperty() { - return mapProperty; - } - - public void setMapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - } - - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { - this.mapOfMapProperty = mapOfMapProperty; - return this; - } - - public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map mapOfMapPropertyItem) { - if (this.mapOfMapProperty == null) { - this.mapOfMapProperty = new HashMap<>(); - } - this.mapOfMapProperty.put(key, mapOfMapPropertyItem); - return this; - } - - /** - * Get mapOfMapProperty - * @return mapOfMapProperty - **/ - @JsonProperty("map_of_map_property") - @ApiModelProperty(value = "") - public Map> getMapOfMapProperty() { - return mapOfMapProperty; - } - - public void setMapOfMapProperty(Map> mapOfMapProperty) { - this.mapOfMapProperty = mapOfMapProperty; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o; - return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) && - Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty); - } - - @Override - public int hashCode() { - return Objects.hash(mapProperty, mapOfMapProperty); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesClass {\n"); - - sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n"); - sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Animal.java deleted file mode 100644 index ec137e0355..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Animal.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Animal - */ - -public class Animal implements Serializable { - @JsonProperty("className") - private String className = null; - - @JsonProperty("color") - private String color = "red"; - - public Animal className(String className) { - this.className = className; - return this; - } - - /** - * Get className - * @return className - **/ - @JsonProperty("className") - @ApiModelProperty(required = true, value = "") - @NotNull - public String getClassName() { - return className; - } - - public void setClassName(String className) { - this.className = className; - } - - public Animal color(String color) { - this.color = color; - return this; - } - - /** - * Get color - * @return color - **/ - @JsonProperty("color") - @ApiModelProperty(value = "") - public String getColor() { - return color; - } - - public void setColor(String color) { - this.color = color; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Animal animal = (Animal) o; - return Objects.equals(this.className, animal.className) && - Objects.equals(this.color, animal.color); - } - - @Override - public int hashCode() { - return Objects.hash(className, color); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Animal {\n"); - - sb.append(" className: ").append(toIndentedString(className)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AnimalFarm.java deleted file mode 100644 index 4d4ae7caff..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/AnimalFarm.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import io.swagger.model.Animal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * AnimalFarm - */ - -public class AnimalFarm extends ArrayList implements Serializable { - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AnimalFarm {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java deleted file mode 100644 index c53469c132..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * ArrayOfArrayOfNumberOnly - */ - -public class ArrayOfArrayOfNumberOnly implements Serializable { - @JsonProperty("ArrayArrayNumber") - private List> arrayArrayNumber = null; - - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { - this.arrayArrayNumber = arrayArrayNumber; - return this; - } - - public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { - if (this.arrayArrayNumber == null) { - this.arrayArrayNumber = new ArrayList<>(); - } - this.arrayArrayNumber.add(arrayArrayNumberItem); - return this; - } - - /** - * Get arrayArrayNumber - * @return arrayArrayNumber - **/ - @JsonProperty("ArrayArrayNumber") - @ApiModelProperty(value = "") - public List> getArrayArrayNumber() { - return arrayArrayNumber; - } - - public void setArrayArrayNumber(List> arrayArrayNumber) { - this.arrayArrayNumber = arrayArrayNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o; - return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayArrayNumber); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfArrayOfNumberOnly {\n"); - - sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java deleted file mode 100644 index c58c941a47..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * ArrayOfNumberOnly - */ - -public class ArrayOfNumberOnly implements Serializable { - @JsonProperty("ArrayNumber") - private List arrayNumber = null; - - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { - this.arrayNumber = arrayNumber; - return this; - } - - public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { - if (this.arrayNumber == null) { - this.arrayNumber = new ArrayList<>(); - } - this.arrayNumber.add(arrayNumberItem); - return this; - } - - /** - * Get arrayNumber - * @return arrayNumber - **/ - @JsonProperty("ArrayNumber") - @ApiModelProperty(value = "") - public List getArrayNumber() { - return arrayNumber; - } - - public void setArrayNumber(List arrayNumber) { - this.arrayNumber = arrayNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o; - return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayNumber); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfNumberOnly {\n"); - - sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayTest.java deleted file mode 100644 index 4b315c69ed..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ArrayTest.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.ReadOnlyFirst; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * ArrayTest - */ - -public class ArrayTest implements Serializable { - @JsonProperty("array_of_string") - private List arrayOfString = null; - - @JsonProperty("array_array_of_integer") - private List> arrayArrayOfInteger = null; - - @JsonProperty("array_array_of_model") - private List> arrayArrayOfModel = null; - - public ArrayTest arrayOfString(List arrayOfString) { - this.arrayOfString = arrayOfString; - return this; - } - - public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { - if (this.arrayOfString == null) { - this.arrayOfString = new ArrayList<>(); - } - this.arrayOfString.add(arrayOfStringItem); - return this; - } - - /** - * Get arrayOfString - * @return arrayOfString - **/ - @JsonProperty("array_of_string") - @ApiModelProperty(value = "") - public List getArrayOfString() { - return arrayOfString; - } - - public void setArrayOfString(List arrayOfString) { - this.arrayOfString = arrayOfString; - } - - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { - this.arrayArrayOfInteger = arrayArrayOfInteger; - return this; - } - - public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (this.arrayArrayOfInteger == null) { - this.arrayArrayOfInteger = new ArrayList<>(); - } - this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); - return this; - } - - /** - * Get arrayArrayOfInteger - * @return arrayArrayOfInteger - **/ - @JsonProperty("array_array_of_integer") - @ApiModelProperty(value = "") - public List> getArrayArrayOfInteger() { - return arrayArrayOfInteger; - } - - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { - this.arrayArrayOfInteger = arrayArrayOfInteger; - } - - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { - this.arrayArrayOfModel = arrayArrayOfModel; - return this; - } - - public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) { - if (this.arrayArrayOfModel == null) { - this.arrayArrayOfModel = new ArrayList<>(); - } - this.arrayArrayOfModel.add(arrayArrayOfModelItem); - return this; - } - - /** - * Get arrayArrayOfModel - * @return arrayArrayOfModel - **/ - @JsonProperty("array_array_of_model") - @ApiModelProperty(value = "") - public List> getArrayArrayOfModel() { - return arrayArrayOfModel; - } - - public void setArrayArrayOfModel(List> arrayArrayOfModel) { - this.arrayArrayOfModel = arrayArrayOfModel; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayTest arrayTest = (ArrayTest) o; - return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) && - Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) && - Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel); - } - - @Override - public int hashCode() { - return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayTest {\n"); - - sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n"); - sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n"); - sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Capitalization.java deleted file mode 100644 index 75776a65ec..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Capitalization.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Capitalization - */ - -public class Capitalization implements Serializable { - @JsonProperty("smallCamel") - private String smallCamel = null; - - @JsonProperty("CapitalCamel") - private String capitalCamel = null; - - @JsonProperty("small_Snake") - private String smallSnake = null; - - @JsonProperty("Capital_Snake") - private String capitalSnake = null; - - @JsonProperty("SCA_ETH_Flow_Points") - private String scAETHFlowPoints = null; - - @JsonProperty("ATT_NAME") - private String ATT_NAME = null; - - public Capitalization smallCamel(String smallCamel) { - this.smallCamel = smallCamel; - return this; - } - - /** - * Get smallCamel - * @return smallCamel - **/ - @JsonProperty("smallCamel") - @ApiModelProperty(value = "") - public String getSmallCamel() { - return smallCamel; - } - - public void setSmallCamel(String smallCamel) { - this.smallCamel = smallCamel; - } - - public Capitalization capitalCamel(String capitalCamel) { - this.capitalCamel = capitalCamel; - return this; - } - - /** - * Get capitalCamel - * @return capitalCamel - **/ - @JsonProperty("CapitalCamel") - @ApiModelProperty(value = "") - public String getCapitalCamel() { - return capitalCamel; - } - - public void setCapitalCamel(String capitalCamel) { - this.capitalCamel = capitalCamel; - } - - public Capitalization smallSnake(String smallSnake) { - this.smallSnake = smallSnake; - return this; - } - - /** - * Get smallSnake - * @return smallSnake - **/ - @JsonProperty("small_Snake") - @ApiModelProperty(value = "") - public String getSmallSnake() { - return smallSnake; - } - - public void setSmallSnake(String smallSnake) { - this.smallSnake = smallSnake; - } - - public Capitalization capitalSnake(String capitalSnake) { - this.capitalSnake = capitalSnake; - return this; - } - - /** - * Get capitalSnake - * @return capitalSnake - **/ - @JsonProperty("Capital_Snake") - @ApiModelProperty(value = "") - public String getCapitalSnake() { - return capitalSnake; - } - - public void setCapitalSnake(String capitalSnake) { - this.capitalSnake = capitalSnake; - } - - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { - this.scAETHFlowPoints = scAETHFlowPoints; - return this; - } - - /** - * Get scAETHFlowPoints - * @return scAETHFlowPoints - **/ - @JsonProperty("SCA_ETH_Flow_Points") - @ApiModelProperty(value = "") - public String getScAETHFlowPoints() { - return scAETHFlowPoints; - } - - public void setScAETHFlowPoints(String scAETHFlowPoints) { - this.scAETHFlowPoints = scAETHFlowPoints; - } - - public Capitalization ATT_NAME(String ATT_NAME) { - this.ATT_NAME = ATT_NAME; - return this; - } - - /** - * Name of the pet - * @return ATT_NAME - **/ - @JsonProperty("ATT_NAME") - @ApiModelProperty(value = "Name of the pet ") - public String getATTNAME() { - return ATT_NAME; - } - - public void setATTNAME(String ATT_NAME) { - this.ATT_NAME = ATT_NAME; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Capitalization capitalization = (Capitalization) o; - return Objects.equals(this.smallCamel, capitalization.smallCamel) && - Objects.equals(this.capitalCamel, capitalization.capitalCamel) && - Objects.equals(this.smallSnake, capitalization.smallSnake) && - Objects.equals(this.capitalSnake, capitalization.capitalSnake) && - Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) && - Objects.equals(this.ATT_NAME, capitalization.ATT_NAME); - } - - @Override - public int hashCode() { - return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Capitalization {\n"); - - sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n"); - sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n"); - sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n"); - sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n"); - sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n"); - sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Cat.java deleted file mode 100644 index cadd5c9325..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Cat.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Cat - */ - -public class Cat extends Animal implements Serializable { - @JsonProperty("declawed") - private Boolean declawed = null; - - public Cat declawed(Boolean declawed) { - this.declawed = declawed; - return this; - } - - /** - * Get declawed - * @return declawed - **/ - @JsonProperty("declawed") - @ApiModelProperty(value = "") - public Boolean isDeclawed() { - return declawed; - } - - public void setDeclawed(Boolean declawed) { - this.declawed = declawed; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Cat cat = (Cat) o; - return Objects.equals(this.declawed, cat.declawed) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(declawed, super.hashCode()); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Cat {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Category.java deleted file mode 100644 index 4acf22b5f6..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Category.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Category - */ - -public class Category implements Serializable { - @JsonProperty("id") - private Long id = null; - - @JsonProperty("name") - private String name = null; - - public Category id(Long id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @JsonProperty("id") - @ApiModelProperty(value = "") - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Category name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @JsonProperty("name") - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Category category = (Category) o; - return Objects.equals(this.id, category.id) && - Objects.equals(this.name, category.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, name); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Category {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ClassModel.java deleted file mode 100644 index 3c3c17b768..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ClassModel.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Model for testing model with \"_class\" property - */ -@ApiModel(description = "Model for testing model with \"_class\" property") - -public class ClassModel implements Serializable { - @JsonProperty("_class") - private String propertyClass = null; - - public ClassModel propertyClass(String propertyClass) { - this.propertyClass = propertyClass; - return this; - } - - /** - * Get propertyClass - * @return propertyClass - **/ - @JsonProperty("_class") - @ApiModelProperty(value = "") - public String getPropertyClass() { - return propertyClass; - } - - public void setPropertyClass(String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClassModel classModel = (ClassModel) o; - return Objects.equals(this.propertyClass, classModel.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(propertyClass); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ClassModel {\n"); - - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Client.java deleted file mode 100644 index b456e0f00a..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Client.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Client - */ - -public class Client implements Serializable { - @JsonProperty("client") - private String client = null; - - public Client client(String client) { - this.client = client; - return this; - } - - /** - * Get client - * @return client - **/ - @JsonProperty("client") - @ApiModelProperty(value = "") - public String getClient() { - return client; - } - - public void setClient(String client) { - this.client = client; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Client client = (Client) o; - return Objects.equals(this.client, client.client); - } - - @Override - public int hashCode() { - return Objects.hash(client); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Client {\n"); - - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Dog.java deleted file mode 100644 index 95bce03530..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Dog.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Dog - */ - -public class Dog extends Animal implements Serializable { - @JsonProperty("breed") - private String breed = null; - - public Dog breed(String breed) { - this.breed = breed; - return this; - } - - /** - * Get breed - * @return breed - **/ - @JsonProperty("breed") - @ApiModelProperty(value = "") - public String getBreed() { - return breed; - } - - public void setBreed(String breed) { - this.breed = breed; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Dog dog = (Dog) o; - return Objects.equals(this.breed, dog.breed) && - super.equals(o); - } - - @Override - public int hashCode() { - return Objects.hash(breed, super.hashCode()); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Dog {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" breed: ").append(toIndentedString(breed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumArrays.java deleted file mode 100644 index 92504ca022..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumArrays.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * EnumArrays - */ - -public class EnumArrays implements Serializable { - /** - * Gets or Sets justSymbol - */ - public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), - - DOLLAR("$"); - - private String value; - - JustSymbolEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static JustSymbolEnum fromValue(String text) { - for (JustSymbolEnum b : JustSymbolEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("just_symbol") - private JustSymbolEnum justSymbol = null; - - /** - * Gets or Sets arrayEnum - */ - public enum ArrayEnumEnum { - FISH("fish"), - - CRAB("crab"); - - private String value; - - ArrayEnumEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ArrayEnumEnum fromValue(String text) { - for (ArrayEnumEnum b : ArrayEnumEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("array_enum") - private List arrayEnum = null; - - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { - this.justSymbol = justSymbol; - return this; - } - - /** - * Get justSymbol - * @return justSymbol - **/ - @JsonProperty("just_symbol") - @ApiModelProperty(value = "") - public JustSymbolEnum getJustSymbol() { - return justSymbol; - } - - public void setJustSymbol(JustSymbolEnum justSymbol) { - this.justSymbol = justSymbol; - } - - public EnumArrays arrayEnum(List arrayEnum) { - this.arrayEnum = arrayEnum; - return this; - } - - public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (this.arrayEnum == null) { - this.arrayEnum = new ArrayList<>(); - } - this.arrayEnum.add(arrayEnumItem); - return this; - } - - /** - * Get arrayEnum - * @return arrayEnum - **/ - @JsonProperty("array_enum") - @ApiModelProperty(value = "") - public List getArrayEnum() { - return arrayEnum; - } - - public void setArrayEnum(List arrayEnum) { - this.arrayEnum = arrayEnum; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumArrays enumArrays = (EnumArrays) o; - return Objects.equals(this.justSymbol, enumArrays.justSymbol) && - Objects.equals(this.arrayEnum, enumArrays.arrayEnum); - } - - @Override - public int hashCode() { - return Objects.hash(justSymbol, arrayEnum); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumArrays {\n"); - - sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n"); - sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumClass.java deleted file mode 100644 index 37886ca42f..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumClass.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import javax.validation.constraints.*; - -import com.fasterxml.jackson.annotation.JsonCreator; - -/** - * Gets or Sets EnumClass - */ -public enum EnumClass { - - _ABC("_abc"), - - _EFG("-efg"), - - _XYZ_("(xyz)"); - - private String value; - - EnumClass(String value) { - this.value = value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumClass fromValue(String text) { - for (EnumClass b : EnumClass.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumTest.java deleted file mode 100644 index a691bacb17..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/EnumTest.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.OuterEnum; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * EnumTest - */ - -public class EnumTest implements Serializable { - /** - * Gets or Sets enumString - */ - public enum EnumStringEnum { - UPPER("UPPER"), - - LOWER("lower"), - - EMPTY(""); - - private String value; - - EnumStringEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumStringEnum fromValue(String text) { - for (EnumStringEnum b : EnumStringEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("enum_string") - private EnumStringEnum enumString = null; - - /** - * Gets or Sets enumInteger - */ - public enum EnumIntegerEnum { - NUMBER_1(1), - - NUMBER_MINUS_1(-1); - - private Integer value; - - EnumIntegerEnum(Integer value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumIntegerEnum fromValue(String text) { - for (EnumIntegerEnum b : EnumIntegerEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("enum_integer") - private EnumIntegerEnum enumInteger = null; - - /** - * Gets or Sets enumNumber - */ - public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), - - NUMBER_MINUS_1_DOT_2(-1.2); - - private Double value; - - EnumNumberEnum(Double value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumNumberEnum fromValue(String text) { - for (EnumNumberEnum b : EnumNumberEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("enum_number") - private EnumNumberEnum enumNumber = null; - - @JsonProperty("outerEnum") - private OuterEnum outerEnum = null; - - public EnumTest enumString(EnumStringEnum enumString) { - this.enumString = enumString; - return this; - } - - /** - * Get enumString - * @return enumString - **/ - @JsonProperty("enum_string") - @ApiModelProperty(value = "") - public EnumStringEnum getEnumString() { - return enumString; - } - - public void setEnumString(EnumStringEnum enumString) { - this.enumString = enumString; - } - - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { - this.enumInteger = enumInteger; - return this; - } - - /** - * Get enumInteger - * @return enumInteger - **/ - @JsonProperty("enum_integer") - @ApiModelProperty(value = "") - public EnumIntegerEnum getEnumInteger() { - return enumInteger; - } - - public void setEnumInteger(EnumIntegerEnum enumInteger) { - this.enumInteger = enumInteger; - } - - public EnumTest enumNumber(EnumNumberEnum enumNumber) { - this.enumNumber = enumNumber; - return this; - } - - /** - * Get enumNumber - * @return enumNumber - **/ - @JsonProperty("enum_number") - @ApiModelProperty(value = "") - public EnumNumberEnum getEnumNumber() { - return enumNumber; - } - - public void setEnumNumber(EnumNumberEnum enumNumber) { - this.enumNumber = enumNumber; - } - - public EnumTest outerEnum(OuterEnum outerEnum) { - this.outerEnum = outerEnum; - return this; - } - - /** - * Get outerEnum - * @return outerEnum - **/ - @JsonProperty("outerEnum") - @ApiModelProperty(value = "") - public OuterEnum getOuterEnum() { - return outerEnum; - } - - public void setOuterEnum(OuterEnum outerEnum) { - this.outerEnum = outerEnum; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumTest enumTest = (EnumTest) o; - return Objects.equals(this.enumString, enumTest.enumString) && - Objects.equals(this.enumInteger, enumTest.enumInteger) && - Objects.equals(this.enumNumber, enumTest.enumNumber) && - Objects.equals(this.outerEnum, enumTest.outerEnum); - } - - @Override - public int hashCode() { - return Objects.hash(enumString, enumInteger, enumNumber, outerEnum); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumTest {\n"); - - sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n"); - sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n"); - sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); - sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/FormatTest.java deleted file mode 100644 index a5ae77a934..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/FormatTest.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.UUID; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * FormatTest - */ - -public class FormatTest implements Serializable { - @JsonProperty("integer") - private Integer integer = null; - - @JsonProperty("int32") - private Integer int32 = null; - - @JsonProperty("int64") - private Long int64 = null; - - @JsonProperty("number") - private BigDecimal number = null; - - @JsonProperty("float") - private Float _float = null; - - @JsonProperty("double") - private Double _double = null; - - @JsonProperty("string") - private String string = null; - - @JsonProperty("byte") - private byte[] _byte = null; - - @JsonProperty("binary") - private byte[] binary = null; - - @JsonProperty("date") - private LocalDate date = null; - - @JsonProperty("dateTime") - private OffsetDateTime dateTime = null; - - @JsonProperty("uuid") - private UUID uuid = null; - - @JsonProperty("password") - private String password = null; - - public FormatTest integer(Integer integer) { - this.integer = integer; - return this; - } - - /** - * Get integer - * minimum: 10 - * maximum: 100 - * @return integer - **/ - @JsonProperty("integer") - @ApiModelProperty(value = "") - @Min(10) @Max(100) public Integer getInteger() { - return integer; - } - - public void setInteger(Integer integer) { - this.integer = integer; - } - - public FormatTest int32(Integer int32) { - this.int32 = int32; - return this; - } - - /** - * Get int32 - * minimum: 20 - * maximum: 200 - * @return int32 - **/ - @JsonProperty("int32") - @ApiModelProperty(value = "") - @Min(20) @Max(200) public Integer getInt32() { - return int32; - } - - public void setInt32(Integer int32) { - this.int32 = int32; - } - - public FormatTest int64(Long int64) { - this.int64 = int64; - return this; - } - - /** - * Get int64 - * @return int64 - **/ - @JsonProperty("int64") - @ApiModelProperty(value = "") - public Long getInt64() { - return int64; - } - - public void setInt64(Long int64) { - this.int64 = int64; - } - - public FormatTest number(BigDecimal number) { - this.number = number; - return this; - } - - /** - * Get number - * minimum: 32.1 - * maximum: 543.2 - * @return number - **/ - @JsonProperty("number") - @ApiModelProperty(required = true, value = "") - @NotNull - @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { - return number; - } - - public void setNumber(BigDecimal number) { - this.number = number; - } - - public FormatTest _float(Float _float) { - this._float = _float; - 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() { - return _float; - } - - public void setFloat(Float _float) { - this._float = _float; - } - - public FormatTest _double(Double _double) { - this._double = _double; - 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() { - return _double; - } - - public void setDouble(Double _double) { - this._double = _double; - } - - public FormatTest string(String string) { - this.string = string; - return this; - } - - /** - * Get string - * @return string - **/ - @JsonProperty("string") - @ApiModelProperty(value = "") - @Pattern(regexp="/[a-z]/i") public String getString() { - return string; - } - - public void setString(String string) { - this.string = string; - } - - public FormatTest _byte(byte[] _byte) { - this._byte = _byte; - return this; - } - - /** - * Get _byte - * @return _byte - **/ - @JsonProperty("byte") - @ApiModelProperty(required = true, value = "") - @NotNull - @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() { - return _byte; - } - - public void setByte(byte[] _byte) { - this._byte = _byte; - } - - public FormatTest binary(byte[] binary) { - this.binary = binary; - return this; - } - - /** - * Get binary - * @return binary - **/ - @JsonProperty("binary") - @ApiModelProperty(value = "") - public byte[] getBinary() { - return binary; - } - - public void setBinary(byte[] binary) { - this.binary = binary; - } - - public FormatTest date(LocalDate date) { - this.date = date; - return this; - } - - /** - * Get date - * @return date - **/ - @JsonProperty("date") - @ApiModelProperty(required = true, value = "") - @NotNull - public LocalDate getDate() { - return date; - } - - public void setDate(LocalDate date) { - this.date = date; - } - - public FormatTest dateTime(OffsetDateTime dateTime) { - this.dateTime = dateTime; - return this; - } - - /** - * Get dateTime - * @return dateTime - **/ - @JsonProperty("dateTime") - @ApiModelProperty(value = "") - public OffsetDateTime getDateTime() { - return dateTime; - } - - public void setDateTime(OffsetDateTime dateTime) { - this.dateTime = dateTime; - } - - public FormatTest uuid(UUID uuid) { - this.uuid = uuid; - return this; - } - - /** - * Get uuid - * @return uuid - **/ - @JsonProperty("uuid") - @ApiModelProperty(value = "") - public UUID getUuid() { - return uuid; - } - - public void setUuid(UUID uuid) { - this.uuid = uuid; - } - - public FormatTest password(String password) { - this.password = password; - return this; - } - - /** - * Get password - * @return password - **/ - @JsonProperty("password") - @ApiModelProperty(required = true, value = "") - @NotNull - @Size(min=10,max=64) public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FormatTest formatTest = (FormatTest) o; - return Objects.equals(this.integer, formatTest.integer) && - Objects.equals(this.int32, formatTest.int32) && - Objects.equals(this.int64, formatTest.int64) && - Objects.equals(this.number, formatTest.number) && - Objects.equals(this._float, formatTest._float) && - Objects.equals(this._double, formatTest._double) && - Objects.equals(this.string, formatTest.string) && - Objects.equals(this._byte, formatTest._byte) && - Objects.equals(this.binary, formatTest.binary) && - Objects.equals(this.date, formatTest.date) && - Objects.equals(this.dateTime, formatTest.dateTime) && - Objects.equals(this.uuid, formatTest.uuid) && - Objects.equals(this.password, formatTest.password); - } - - @Override - public int hashCode() { - return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FormatTest {\n"); - - sb.append(" integer: ").append(toIndentedString(integer)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" _float: ").append(toIndentedString(_float)).append("\n"); - sb.append(" _double: ").append(toIndentedString(_double)).append("\n"); - sb.append(" string: ").append(toIndentedString(string)).append("\n"); - sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n"); - sb.append(" binary: ").append(toIndentedString(binary)).append("\n"); - sb.append(" date: ").append(toIndentedString(date)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/HasOnlyReadOnly.java deleted file mode 100644 index 7e231212b5..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * HasOnlyReadOnly - */ - -public class HasOnlyReadOnly implements Serializable { - @JsonProperty("bar") - private String bar = null; - - @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() { - return foo; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o; - return Objects.equals(this.bar, hasOnlyReadOnly.bar) && - Objects.equals(this.foo, hasOnlyReadOnly.foo); - } - - @Override - public int hashCode() { - return Objects.hash(bar, foo); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HasOnlyReadOnly {\n"); - - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" foo: ").append(toIndentedString(foo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MapTest.java deleted file mode 100644 index 4849186df5..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MapTest.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * MapTest - */ - -public class MapTest implements Serializable { - @JsonProperty("map_map_of_string") - private Map> mapMapOfString = null; - - /** - * Gets or Sets inner - */ - public enum InnerEnum { - UPPER("UPPER"), - - LOWER("lower"); - - private String value; - - InnerEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static InnerEnum fromValue(String text) { - for (InnerEnum b : InnerEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("map_of_enum_string") - private Map mapOfEnumString = null; - - public MapTest mapMapOfString(Map> mapMapOfString) { - this.mapMapOfString = mapMapOfString; - return this; - } - - public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { - if (this.mapMapOfString == null) { - this.mapMapOfString = new HashMap<>(); - } - this.mapMapOfString.put(key, mapMapOfStringItem); - return this; - } - - /** - * Get mapMapOfString - * @return mapMapOfString - **/ - @JsonProperty("map_map_of_string") - @ApiModelProperty(value = "") - public Map> getMapMapOfString() { - return mapMapOfString; - } - - public void setMapMapOfString(Map> mapMapOfString) { - this.mapMapOfString = mapMapOfString; - } - - public MapTest mapOfEnumString(Map mapOfEnumString) { - this.mapOfEnumString = mapOfEnumString; - return this; - } - - public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { - if (this.mapOfEnumString == null) { - this.mapOfEnumString = new HashMap<>(); - } - this.mapOfEnumString.put(key, mapOfEnumStringItem); - return this; - } - - /** - * Get mapOfEnumString - * @return mapOfEnumString - **/ - @JsonProperty("map_of_enum_string") - @ApiModelProperty(value = "") - public Map getMapOfEnumString() { - return mapOfEnumString; - } - - public void setMapOfEnumString(Map mapOfEnumString) { - this.mapOfEnumString = mapOfEnumString; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MapTest mapTest = (MapTest) o; - return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) && - Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString); - } - - @Override - public int hashCode() { - return Objects.hash(mapMapOfString, mapOfEnumString); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MapTest {\n"); - - sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n"); - sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java deleted file mode 100644 index 07b1c93625..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * MixedPropertiesAndAdditionalPropertiesClass - */ - -public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable { - @JsonProperty("uuid") - private UUID uuid = null; - - @JsonProperty("dateTime") - private OffsetDateTime dateTime = null; - - @JsonProperty("map") - private Map map = null; - - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { - this.uuid = uuid; - return this; - } - - /** - * Get uuid - * @return uuid - **/ - @JsonProperty("uuid") - @ApiModelProperty(value = "") - public UUID getUuid() { - return uuid; - } - - public void setUuid(UUID uuid) { - this.uuid = uuid; - } - - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { - this.dateTime = dateTime; - return this; - } - - /** - * Get dateTime - * @return dateTime - **/ - @JsonProperty("dateTime") - @ApiModelProperty(value = "") - public OffsetDateTime getDateTime() { - return dateTime; - } - - public void setDateTime(OffsetDateTime dateTime) { - this.dateTime = dateTime; - } - - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { - this.map = map; - return this; - } - - public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { - if (this.map == null) { - this.map = new HashMap<>(); - } - this.map.put(key, mapItem); - return this; - } - - /** - * Get map - * @return map - **/ - @JsonProperty("map") - @ApiModelProperty(value = "") - public Map getMap() { - return map; - } - - public void setMap(Map map) { - this.map = map; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o; - return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) && - Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) && - Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map); - } - - @Override - public int hashCode() { - return Objects.hash(uuid, dateTime, map); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n"); - - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" map: ").append(toIndentedString(map)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Model200Response.java deleted file mode 100644 index a3a8fb6ddb..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Model200Response.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Model for testing model name starting with number - */ -@ApiModel(description = "Model for testing model name starting with number") - -public class Model200Response implements Serializable { - @JsonProperty("name") - private Integer name = null; - - @JsonProperty("class") - private String propertyClass = null; - - public Model200Response name(Integer name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @JsonProperty("name") - @ApiModelProperty(value = "") - public Integer getName() { - return name; - } - - public void setName(Integer name) { - this.name = name; - } - - public Model200Response propertyClass(String propertyClass) { - this.propertyClass = propertyClass; - return this; - } - - /** - * Get propertyClass - * @return propertyClass - **/ - @JsonProperty("class") - @ApiModelProperty(value = "") - public String getPropertyClass() { - return propertyClass; - } - - public void setPropertyClass(String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(this.name, _200Response.name) && - Objects.equals(this.propertyClass, _200Response.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(name, propertyClass); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Model200Response {\n"); - - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelApiResponse.java deleted file mode 100644 index 496cf844a5..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelApiResponse.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * ModelApiResponse - */ - -public class ModelApiResponse implements Serializable { - @JsonProperty("code") - private Integer code = null; - - @JsonProperty("type") - private String type = null; - - @JsonProperty("message") - private String message = null; - - public ModelApiResponse code(Integer code) { - this.code = code; - return this; - } - - /** - * Get code - * @return code - **/ - @JsonProperty("code") - @ApiModelProperty(value = "") - public Integer getCode() { - return code; - } - - public void setCode(Integer code) { - this.code = code; - } - - public ModelApiResponse type(String type) { - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @JsonProperty("type") - @ApiModelProperty(value = "") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public ModelApiResponse message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @JsonProperty("message") - @ApiModelProperty(value = "") - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelApiResponse _apiResponse = (ModelApiResponse) o; - return Objects.equals(this.code, _apiResponse.code) && - Objects.equals(this.type, _apiResponse.type) && - Objects.equals(this.message, _apiResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, type, message); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelApiResponse {\n"); - - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelReturn.java deleted file mode 100644 index c3ef933035..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ModelReturn.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Model for testing reserved words - */ -@ApiModel(description = "Model for testing reserved words") - -public class ModelReturn implements Serializable { - @JsonProperty("return") - private Integer _return = null; - - public ModelReturn _return(Integer _return) { - this._return = _return; - return this; - } - - /** - * Get _return - * @return _return - **/ - @JsonProperty("return") - @ApiModelProperty(value = "") - public Integer getReturn() { - return _return; - } - - public void setReturn(Integer _return) { - this._return = _return; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelReturn _return = (ModelReturn) o; - return Objects.equals(this._return, _return._return); - } - - @Override - public int hashCode() { - return Objects.hash(_return); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelReturn {\n"); - - sb.append(" _return: ").append(toIndentedString(_return)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Name.java deleted file mode 100644 index 6fc1efd261..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Name.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Model for testing model name same as property name - */ -@ApiModel(description = "Model for testing model name same as property name") - -public class Name implements Serializable { - @JsonProperty("name") - private Integer name = null; - - @JsonProperty("snake_case") - private Integer snakeCase = null; - - @JsonProperty("property") - private String property = null; - - @JsonProperty("123Number") - private Integer _123Number = null; - - public Name name(Integer name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @JsonProperty("name") - @ApiModelProperty(required = true, value = "") - @NotNull - public Integer getName() { - return name; - } - - public void setName(Integer name) { - this.name = name; - } - - /** - * Get snakeCase - * @return snakeCase - **/ - @JsonProperty("snake_case") - @ApiModelProperty(value = "") - public Integer getSnakeCase() { - return snakeCase; - } - - public Name property(String property) { - this.property = property; - return this; - } - - /** - * Get property - * @return property - **/ - @JsonProperty("property") - @ApiModelProperty(value = "") - public String getProperty() { - return property; - } - - public void setProperty(String property) { - this.property = property; - } - - /** - * Get _123Number - * @return _123Number - **/ - @JsonProperty("123Number") - @ApiModelProperty(value = "") - public Integer get123Number() { - return _123Number; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Name name = (Name) o; - return Objects.equals(this.name, name.name) && - Objects.equals(this.snakeCase, name.snakeCase) && - Objects.equals(this.property, name.property) && - Objects.equals(this._123Number, name._123Number); - } - - @Override - public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Name {\n"); - - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/NumberOnly.java deleted file mode 100644 index b8768adacd..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/NumberOnly.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * NumberOnly - */ - -public class NumberOnly implements Serializable { - @JsonProperty("JustNumber") - private BigDecimal justNumber = null; - - public NumberOnly justNumber(BigDecimal justNumber) { - this.justNumber = justNumber; - return this; - } - - /** - * Get justNumber - * @return justNumber - **/ - @JsonProperty("JustNumber") - @ApiModelProperty(value = "") - public BigDecimal getJustNumber() { - return justNumber; - } - - public void setJustNumber(BigDecimal justNumber) { - this.justNumber = justNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NumberOnly numberOnly = (NumberOnly) o; - return Objects.equals(this.justNumber, numberOnly.justNumber); - } - - @Override - public int hashCode() { - return Objects.hash(justNumber); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NumberOnly {\n"); - - sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Order.java deleted file mode 100644 index 5bde8e492c..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Order.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Order - */ - -public class Order implements Serializable { - @JsonProperty("id") - private Long id = null; - - @JsonProperty("petId") - private Long petId = null; - - @JsonProperty("quantity") - private Integer quantity = null; - - @JsonProperty("shipDate") - private OffsetDateTime shipDate = null; - - /** - * Order Status - */ - public enum StatusEnum { - PLACED("placed"), - - APPROVED("approved"), - - DELIVERED("delivered"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("status") - private StatusEnum status = null; - - @JsonProperty("complete") - private Boolean complete = false; - - public Order id(Long id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @JsonProperty("id") - @ApiModelProperty(value = "") - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Order petId(Long petId) { - this.petId = petId; - return this; - } - - /** - * Get petId - * @return petId - **/ - @JsonProperty("petId") - @ApiModelProperty(value = "") - public Long getPetId() { - return petId; - } - - public void setPetId(Long petId) { - this.petId = petId; - } - - public Order quantity(Integer quantity) { - this.quantity = quantity; - return this; - } - - /** - * Get quantity - * @return quantity - **/ - @JsonProperty("quantity") - @ApiModelProperty(value = "") - public Integer getQuantity() { - return quantity; - } - - public void setQuantity(Integer quantity) { - this.quantity = quantity; - } - - public Order shipDate(OffsetDateTime shipDate) { - this.shipDate = shipDate; - return this; - } - - /** - * Get shipDate - * @return shipDate - **/ - @JsonProperty("shipDate") - @ApiModelProperty(value = "") - public OffsetDateTime getShipDate() { - return shipDate; - } - - public void setShipDate(OffsetDateTime shipDate) { - this.shipDate = shipDate; - } - - public Order status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * Order Status - * @return status - **/ - @JsonProperty("status") - @ApiModelProperty(value = "Order Status") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public Order complete(Boolean complete) { - this.complete = complete; - return this; - } - - /** - * Get complete - * @return complete - **/ - @JsonProperty("complete") - @ApiModelProperty(value = "") - public Boolean isComplete() { - return complete; - } - - public void setComplete(Boolean complete) { - this.complete = complete; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Order order = (Order) o; - return Objects.equals(this.id, order.id) && - Objects.equals(this.petId, order.petId) && - Objects.equals(this.quantity, order.quantity) && - Objects.equals(this.shipDate, order.shipDate) && - Objects.equals(this.status, order.status) && - Objects.equals(this.complete, order.complete); - } - - @Override - public int hashCode() { - return Objects.hash(id, petId, quantity, shipDate, status, complete); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Order {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" petId: ").append(toIndentedString(petId)).append("\n"); - sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); - sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" complete: ").append(toIndentedString(complete)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterComposite.java deleted file mode 100644 index aa7033f934..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterComposite.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * OuterComposite - */ - -public class OuterComposite implements Serializable { - @JsonProperty("my_number") - private BigDecimal myNumber = null; - - @JsonProperty("my_string") - private String myString = null; - - @JsonProperty("my_boolean") - private Boolean myBoolean = null; - - public OuterComposite myNumber(BigDecimal myNumber) { - this.myNumber = myNumber; - return this; - } - - /** - * Get myNumber - * @return myNumber - **/ - @JsonProperty("my_number") - @ApiModelProperty(value = "") - public BigDecimal getMyNumber() { - return myNumber; - } - - public void setMyNumber(BigDecimal myNumber) { - this.myNumber = myNumber; - } - - public OuterComposite myString(String myString) { - this.myString = myString; - return this; - } - - /** - * Get myString - * @return myString - **/ - @JsonProperty("my_string") - @ApiModelProperty(value = "") - public String getMyString() { - return myString; - } - - public void setMyString(String myString) { - this.myString = myString; - } - - public OuterComposite myBoolean(Boolean myBoolean) { - this.myBoolean = myBoolean; - return this; - } - - /** - * Get myBoolean - * @return myBoolean - **/ - @JsonProperty("my_boolean") - @ApiModelProperty(value = "") - public Boolean getMyBoolean() { - return myBoolean; - } - - public void setMyBoolean(Boolean myBoolean) { - this.myBoolean = myBoolean; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OuterComposite outerComposite = (OuterComposite) o; - return Objects.equals(this.myNumber, outerComposite.myNumber) && - Objects.equals(this.myString, outerComposite.myString) && - Objects.equals(this.myBoolean, outerComposite.myBoolean); - } - - @Override - public int hashCode() { - return Objects.hash(myNumber, myString, myBoolean); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OuterComposite {\n"); - - sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n"); - sb.append(" myString: ").append(toIndentedString(myString)).append("\n"); - sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterEnum.java deleted file mode 100644 index d2c5526ede..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/OuterEnum.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import javax.validation.constraints.*; - -import com.fasterxml.jackson.annotation.JsonCreator; - -/** - * Gets or Sets OuterEnum - */ -public enum OuterEnum { - - PLACED("placed"), - - APPROVED("approved"), - - DELIVERED("delivered"); - - private String value; - - OuterEnum(String value) { - this.value = value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OuterEnum fromValue(String text) { - for (OuterEnum b : OuterEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Pet.java deleted file mode 100644 index 4d350eb3f3..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Pet.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Category; -import io.swagger.model.Tag; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Pet - */ - -public class Pet implements Serializable { - @JsonProperty("id") - private Long id = null; - - @JsonProperty("category") - private Category category = null; - - @JsonProperty("name") - private String name = null; - - @JsonProperty("photoUrls") - private List photoUrls = new ArrayList<>(); - - @JsonProperty("tags") - private List tags = null; - - /** - * pet status in the store - */ - public enum StatusEnum { - AVAILABLE("available"), - - PENDING("pending"), - - SOLD("sold"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - } - - @JsonProperty("status") - private StatusEnum status = null; - - public Pet id(Long id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @JsonProperty("id") - @ApiModelProperty(value = "") - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Pet category(Category category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @JsonProperty("category") - @ApiModelProperty(value = "") - public Category getCategory() { - return category; - } - - public void setCategory(Category category) { - this.category = category; - } - - public Pet name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @JsonProperty("name") - @ApiModelProperty(example = "doggie", required = true, value = "") - @NotNull - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Pet photoUrls(List photoUrls) { - this.photoUrls = photoUrls; - return this; - } - - public Pet addPhotoUrlsItem(String photoUrlsItem) { - this.photoUrls.add(photoUrlsItem); - return this; - } - - /** - * Get photoUrls - * @return photoUrls - **/ - @JsonProperty("photoUrls") - @ApiModelProperty(required = true, value = "") - @NotNull - public List getPhotoUrls() { - return photoUrls; - } - - public void setPhotoUrls(List photoUrls) { - this.photoUrls = photoUrls; - } - - public Pet tags(List tags) { - this.tags = tags; - return this; - } - - public Pet addTagsItem(Tag tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * Get tags - * @return tags - **/ - @JsonProperty("tags") - @ApiModelProperty(value = "") - public List getTags() { - return tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public Pet status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * pet status in the store - * @return status - **/ - @JsonProperty("status") - @ApiModelProperty(value = "pet status in the store") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Pet pet = (Pet) o; - return Objects.equals(this.id, pet.id) && - Objects.equals(this.category, pet.category) && - Objects.equals(this.name, pet.name) && - Objects.equals(this.photoUrls, pet.photoUrls) && - Objects.equals(this.tags, pet.tags) && - Objects.equals(this.status, pet.status); - } - - @Override - public int hashCode() { - return Objects.hash(id, category, name, photoUrls, tags, status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Pet {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ReadOnlyFirst.java deleted file mode 100644 index b69a26e818..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * ReadOnlyFirst - */ - -public class ReadOnlyFirst implements Serializable { - @JsonProperty("bar") - private String bar = null; - - @JsonProperty("baz") - private String baz = null; - - /** - * Get bar - * @return bar - **/ - @JsonProperty("bar") - @ApiModelProperty(value = "") - public String getBar() { - return bar; - } - - public ReadOnlyFirst baz(String baz) { - this.baz = baz; - return this; - } - - /** - * Get baz - * @return baz - **/ - @JsonProperty("baz") - @ApiModelProperty(value = "") - public String getBaz() { - return baz; - } - - public void setBaz(String baz) { - this.baz = baz; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o; - return Objects.equals(this.bar, readOnlyFirst.bar) && - Objects.equals(this.baz, readOnlyFirst.baz); - } - - @Override - public int hashCode() { - return Objects.hash(bar, baz); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReadOnlyFirst {\n"); - - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" baz: ").append(toIndentedString(baz)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/SpecialModelName.java deleted file mode 100644 index e3410cc40e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/SpecialModelName.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * SpecialModelName - */ - -public class SpecialModelName implements Serializable { - @JsonProperty("$special[property.name]") - private Long specialPropertyName = null; - - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; - return this; - } - - /** - * Get specialPropertyName - * @return specialPropertyName - **/ - @JsonProperty("$special[property.name]") - @ApiModelProperty(value = "") - public Long getSpecialPropertyName() { - return specialPropertyName; - } - - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName); - } - - @Override - public int hashCode() { - return Objects.hash(specialPropertyName); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SpecialModelName {\n"); - - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Tag.java deleted file mode 100644 index 92e347cd8e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/Tag.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * Tag - */ - -public class Tag implements Serializable { - @JsonProperty("id") - private Long id = null; - - @JsonProperty("name") - private String name = null; - - public Tag id(Long id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @JsonProperty("id") - @ApiModelProperty(value = "") - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Tag name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @JsonProperty("name") - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tag tag = (Tag) o; - return Objects.equals(this.id, tag.id) && - Objects.equals(this.name, tag.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, name); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Tag {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/User.java deleted file mode 100644 index 7c9a29680e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/model/User.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Swagger Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.swagger.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.Serializable; -import javax.validation.constraints.*; - -/** - * User - */ - -public class User implements Serializable { - @JsonProperty("id") - private Long id = null; - - @JsonProperty("username") - private String username = null; - - @JsonProperty("firstName") - private String firstName = null; - - @JsonProperty("lastName") - private String lastName = null; - - @JsonProperty("email") - private String email = null; - - @JsonProperty("password") - private String password = null; - - @JsonProperty("phone") - private String phone = null; - - @JsonProperty("userStatus") - private Integer userStatus = null; - - public User id(Long id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @JsonProperty("id") - @ApiModelProperty(value = "") - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public User username(String username) { - this.username = username; - return this; - } - - /** - * Get username - * @return username - **/ - @JsonProperty("username") - @ApiModelProperty(value = "") - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public User firstName(String firstName) { - this.firstName = firstName; - return this; - } - - /** - * Get firstName - * @return firstName - **/ - @JsonProperty("firstName") - @ApiModelProperty(value = "") - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public User lastName(String lastName) { - this.lastName = lastName; - return this; - } - - /** - * Get lastName - * @return lastName - **/ - @JsonProperty("lastName") - @ApiModelProperty(value = "") - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public User email(String email) { - this.email = email; - return this; - } - - /** - * Get email - * @return email - **/ - @JsonProperty("email") - @ApiModelProperty(value = "") - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public User password(String password) { - this.password = password; - return this; - } - - /** - * Get password - * @return password - **/ - @JsonProperty("password") - @ApiModelProperty(value = "") - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public User phone(String phone) { - this.phone = phone; - return this; - } - - /** - * Get phone - * @return phone - **/ - @JsonProperty("phone") - @ApiModelProperty(value = "") - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public User userStatus(Integer userStatus) { - this.userStatus = userStatus; - return this; - } - - /** - * User Status - * @return userStatus - **/ - @JsonProperty("userStatus") - @ApiModelProperty(value = "User Status") - public Integer getUserStatus() { - return userStatus; - } - - public void setUserStatus(Integer userStatus) { - this.userStatus = userStatus; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - User user = (User) o; - return Objects.equals(this.id, user.id) && - Objects.equals(this.username, user.username) && - Objects.equals(this.firstName, user.firstName) && - Objects.equals(this.lastName, user.lastName) && - Objects.equals(this.email, user.email) && - Objects.equals(this.password, user.password) && - Objects.equals(this.phone, user.phone) && - Objects.equals(this.userStatus, user.userStatus); - } - - @Override - public int hashCode() { - return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class User {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); - sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java deleted file mode 100644 index dc12311301..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.impl.FakeClassnameTestApiServiceImpl; - - -public class FakeClassnameTestApiServiceFactory { - private final static FakeClassnameTestApiService service = new FakeClassnameTestApiServiceImpl(); - - public static FakeClassnameTestApiService getFakeClassnameTestApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java deleted file mode 100644 index 77b9e35857..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import io.swagger.model.Client; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { - @Override - public Response testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java deleted file mode 100644 index 299c018ea0..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import java.math.BigDecimal; -import io.swagger.model.Client; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import io.swagger.model.OuterComposite; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class FakeApiServiceImpl extends FakeApiService { - @Override - public Response fakeOuterBooleanSerialize(Boolean body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response testEnumParameters(List enumFormStringArray, String enumFormString, List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response testInlineAdditionalProperties(Object param, SecurityContext securityContext) throws NotFoundException { - // 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(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java deleted file mode 100644 index 2d77e24e3e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import io.swagger.model.Client; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class FakeClassnameTestApiServiceImpl extends FakeClassnameTestApiService { - @Override - public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java deleted file mode 100644 index be3e7e167e..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class PetApiServiceImpl extends PetApiService { - @Override - public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response deletePet(Long petId, String apiKey, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response findPetsByStatus( @NotNull List status, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response findPetsByTags( @NotNull List tags, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response getPetById(Long petId, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response updatePetWithForm(Long petId, String name, String status, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response uploadFile(Long petId, String additionalMetadata, InputStream fileInputStream, FormDataContentDisposition fileDetail, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java deleted file mode 100644 index fb17fea3fd..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import java.util.Map; -import io.swagger.model.Order; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class StoreApiServiceImpl extends StoreApiService { - @Override - public Response deleteOrder(String orderId, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response getInventory(SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response getOrderById( @Min(1L) @Max(5L)Long orderId, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java deleted file mode 100644 index 5853e33168..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -package io.swagger.api.impl; - -import io.swagger.api.*; -import io.swagger.model.*; - -import java.util.List; -import io.swagger.model.User; - -import java.util.List; -import io.swagger.api.NotFoundException; - -import java.io.InputStream; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.validation.constraints.*; - -public class UserApiServiceImpl extends UserApiService { - @Override - public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response deleteUser(String username, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response getUserByName(String username, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response loginUser( @NotNull String username, @NotNull String password, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response logoutUser(SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } - @Override - public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { - // do some magic! - return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); - } -} diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-datelib-j8/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 61b112e3d8..0000000000 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - jersey - org.glassfish.jersey.servlet.ServletContainer - - jersey.config.server.provider.packages - - io.swagger.jaxrs.listing, - io.swagger.sample.resource, - io.swagger.api - - - - jersey.config.server.provider.classnames - org.glassfish.jersey.media.multipart.MultiPartFeature - - - jersey.config.server.wadl.disableWadl - true - - 1 - - - - Jersey2Config - io.swagger.jersey.config.JerseyJaxrsConfig - - api.version - 1.0.0 - - - swagger.api.title - Swagger Server - - - swagger.api.basepath - http://petstore.swagger.io:80/v2 - - - 2 - - - Bootstrap - io.swagger.api.Bootstrap - 2 - - - jersey - /v2/* - - - ApiOriginFilter - io.swagger.api.ApiOriginFilter - - - ApiOriginFilter - /* - - diff --git a/samples/server/petstore/jaxrs-resteasy/default/.openapi-generator-ignore b/samples/server/petstore/jaxrs-resteasy/default/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-resteasy/default/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/server/petstore/jaxrs-resteasy/default/README.md b/samples/server/petstore/jaxrs-resteasy/default/README.md index cc011c37ee..7d93c4ae45 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/README.md +++ b/samples/server/petstore/jaxrs-resteasy/default/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:-1/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiException.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiException.class deleted file mode 100644 index 532edd306d..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiException.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiOriginFilter.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiOriginFilter.class deleted file mode 100644 index 491891093f..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiOriginFilter.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiResponseMessage.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiResponseMessage.class deleted file mode 100644 index 662e2e846f..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/ApiResponseMessage.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$1.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$1.class deleted file mode 100644 index 9271b6069d..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$1.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$2.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$2.class deleted file mode 100644 index 2260a4b19b..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1$2.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1.class deleted file mode 100644 index c757c04724..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig$1.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig.class deleted file mode 100644 index b4368ff247..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/JacksonConfig.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/NotFoundException.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/NotFoundException.class deleted file mode 100644 index cb77365725..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/NotFoundException.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApi.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApi.class deleted file mode 100644 index 71f34c8625..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApi.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApiService.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApiService.class deleted file mode 100644 index 92283312be..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/PetApiService.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RFC3339DateFormat.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RFC3339DateFormat.class deleted file mode 100644 index 0f5053f2a0..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RFC3339DateFormat.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RestApplication.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RestApplication.class deleted file mode 100644 index 1bd466b82d..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/RestApplication.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApi.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApi.class deleted file mode 100644 index b132fb0908..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApi.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApiService.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApiService.class deleted file mode 100644 index da4fd7608f..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StoreApiService.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StringUtil.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StringUtil.class deleted file mode 100644 index 72824471de..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/StringUtil.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApi.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApi.class deleted file mode 100644 index df0b5b337f..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApi.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApiService.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApiService.class deleted file mode 100644 index d12b14b233..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/UserApiService.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class deleted file mode 100644 index e36041a5f0..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class deleted file mode 100644 index 60fc71759c..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class deleted file mode 100644 index 86d82b1e0d..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Category.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Category.class deleted file mode 100644 index e0d0faed10..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Category.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/ModelApiResponse.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/ModelApiResponse.class deleted file mode 100644 index df7bdc5bbe..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/ModelApiResponse.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order$StatusEnum.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order$StatusEnum.class deleted file mode 100644 index 8f111540b8..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order$StatusEnum.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order.class deleted file mode 100644 index 5aed19284b..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Order.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet$StatusEnum.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet$StatusEnum.class deleted file mode 100644 index 514e6558ae..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet$StatusEnum.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet.class deleted file mode 100644 index 88f6594636..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Pet.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Tag.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Tag.class deleted file mode 100644 index 40027f0aeb..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/Tag.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/User.class b/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/User.class deleted file mode 100644 index 253481fbd9..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/classes/main/io/swagger/model/User.class and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/libs/swagger-jaxrs-resteasy-server-1.0.0.war b/samples/server/petstore/jaxrs-resteasy/default/build/libs/swagger-jaxrs-resteasy-server-1.0.0.war deleted file mode 100644 index 4d6cba4823..0000000000 Binary files a/samples/server/petstore/jaxrs-resteasy/default/build/libs/swagger-jaxrs-resteasy-server-1.0.0.war and /dev/null differ diff --git a/samples/server/petstore/jaxrs-resteasy/default/build/tmp/war/MANIFEST.MF b/samples/server/petstore/jaxrs-resteasy/default/build/tmp/war/MANIFEST.MF deleted file mode 100644 index 59499bce4a..0000000000 --- a/samples/server/petstore/jaxrs-resteasy/default/build/tmp/war/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RestApplication.java deleted file mode 100644 index 24aa63ce82..0000000000 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RestApplication.java +++ /dev/null @@ -1,9 +0,0 @@ -package io.swagger.api; - -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; - -@ApplicationPath("/") -public class RestApplication extends Application { - -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiException.java similarity index 85% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiException.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiException.java index 97e535d3c2..fdbaeee3a2 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiException.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class ApiException extends Exception{ diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiOriginFilter.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiOriginFilter.java index f914bb6e89..5cfa35dec8 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.IOException; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 96a46422a5..4a71dd85ca 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/JacksonConfig.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/JacksonConfig.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/JacksonConfig.java index d19c9120fd..a7d1fcae4b 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/JacksonConfig.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/JacksonConfig.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.core.JsonGenerationException; import com.fasterxml.jackson.core.JsonGenerator; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/NotFoundException.java similarity index 86% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/NotFoundException.java index b28b67ea4b..526df6c1c1 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/NotFoundException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class NotFoundException extends ApiException { diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java index e836bd2a61..586189eaa9 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java similarity index 83% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java index 7ebc628495..d2202af6d8 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RFC3339DateFormat.java similarity index 94% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RFC3339DateFormat.java index 7c9e260509..b471837701 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import com.fasterxml.jackson.databind.util.ISO8601Utils; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RestApplication.java similarity index 82% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RestApplication.java index 24aa63ce82..a82cb9c3fa 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/RestApplication.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java index 70a8f982c2..9fd412dea0 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 77% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java index b0bb62c499..2dd93106dc 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StringUtil.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StringUtil.java index 6f4a3dadbb..3672835589 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StringUtil.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class StringUtil { diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java index 0f860f6ceb..1970ba54db 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java index 934687b4c8..d10882c576 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Category.java index 85fdecdc66..67f137a16e 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/ModelApiResponse.java index 9a9ff0db8c..c3f9355d2b 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Order.java index 2f62263c9d..adf5f24756 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java index 4e48fb253b..d749435d67 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import io.swagger.annotations.*; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Tag.java index 750e1a82b1..3ed2cc6d01 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/User.java index a52524db22..48200bde0b 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index df359b1060..f3640de411 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,16 +1,16 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 87% rename from samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index f9efeef790..1bbd004195 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 92% rename from samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index c12ab1a72e..e03dc8eddd 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml index 52a89e9213..f52301872f 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml @@ -5,7 +5,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/README.md b/samples/server/petstore/jaxrs-resteasy/eap-java8/README.md index 499909ec87..7843ad970a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/README.md +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/README.md @@ -12,7 +12,7 @@ You can deploy the WAR file to Jboss EAP or any other JEE server supporting Jbos You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:-1/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java index 4d783b8b99..0665516ced 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java @@ -1,13 +1,13 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java index 1b02a99b87..3f37368b52 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java index 8647c092bf..a58a79c6cf 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Category.java index 833b7c0457..8c46a6c2b4 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2ec59cd9f2..660b5b9093 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Order.java index 3b7151b390..8518699c01 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java index ce85506626..b045a55b56 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import io.swagger.annotations.*; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Tag.java index 356b2abc3b..94185c53ca 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/User.java index 50b50e4551..7cab17060c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/JacksonConfig.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/JacksonConfig.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/JacksonConfig.java index 4109c5875c..a24dbe0c5b 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/JacksonConfig.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/JacksonConfig.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/RestApplication.java similarity index 71% rename from samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/RestApplication.java index 65184dc2f3..14822d3717 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/RestApplication.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @@ -6,9 +6,9 @@ import javax.ws.rs.core.Application; import java.util.Set; import java.util.HashSet; -import io.swagger.api.impl.PetApiServiceImpl; -import io.swagger.api.impl.StoreApiServiceImpl; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.impl.PetApiServiceImpl; +import org.openapitools.api.impl.StoreApiServiceImpl; +import org.openapitools.api.impl.UserApiServiceImpl; @ApplicationPath("/") public class RestApplication extends Application { diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 89% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index aa241d216e..7f91026af3 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 6e8215e42a..ed2962e025 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 5b34eaf9a7..cea09d4a0f 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/webapp/WEB-INF/web.xml index 6df076cc36..9b5e1a6d58 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/webapp/WEB-INF/web.xml @@ -4,6 +4,6 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> resteasy.providers - io.swagger.api.JacksonConfig + org.openapitools.api.JacksonConfig diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/README.md b/samples/server/petstore/jaxrs-resteasy/eap-joda/README.md index cc011c37ee..7843ad970a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/README.md +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/README.md @@ -5,18 +5,14 @@ This server was generated by the [swagger-codegen](https://github.com/swagger-ap [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This is an example of building a swagger-enabled JAX-RS server. -This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework. +This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework for Jboss Resteasy. -To run the server, please execute the following: - -``` -mvn clean package jetty:run -``` +You can deploy the WAR file to Jboss EAP or any other JEE server supporting Jboss Resteasy. You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:-1/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java index 4d783b8b99..0665516ced 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java @@ -1,13 +1,13 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java index 1b02a99b87..3f37368b52 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java index 8647c092bf..a58a79c6cf 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Category.java index 833b7c0457..8c46a6c2b4 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2ec59cd9f2..660b5b9093 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Order.java index 7e5b9613d7..e1cf859474 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java index 0e258641f2..172f1bc51c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import io.swagger.annotations.*; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Tag.java index 356b2abc3b..94185c53ca 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/User.java index 50b50e4551..7cab17060c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/JacksonConfig.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/JacksonConfig.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/JacksonConfig.java index 2cf35d3d1e..666f5aedc4 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/JacksonConfig.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/JacksonConfig.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/RestApplication.java similarity index 71% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/RestApplication.java index 65184dc2f3..14822d3717 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/RestApplication.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @@ -6,9 +6,9 @@ import javax.ws.rs.core.Application; import java.util.Set; import java.util.HashSet; -import io.swagger.api.impl.PetApiServiceImpl; -import io.swagger.api.impl.StoreApiServiceImpl; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.impl.PetApiServiceImpl; +import org.openapitools.api.impl.StoreApiServiceImpl; +import org.openapitools.api.impl.UserApiServiceImpl; @ApplicationPath("/") public class RestApplication extends Application { diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 89% rename from samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index aa241d216e..7f91026af3 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 6e8215e42a..ed2962e025 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 5b34eaf9a7..cea09d4a0f 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/webapp/WEB-INF/web.xml index 6df076cc36..9b5e1a6d58 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/webapp/WEB-INF/web.xml @@ -4,6 +4,6 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> resteasy.providers - io.swagger.api.JacksonConfig + org.openapitools.api.JacksonConfig diff --git a/samples/server/petstore/jaxrs-resteasy/eap/README.md b/samples/server/petstore/jaxrs-resteasy/eap/README.md index cc011c37ee..7843ad970a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/README.md +++ b/samples/server/petstore/jaxrs-resteasy/eap/README.md @@ -5,18 +5,14 @@ This server was generated by the [swagger-codegen](https://github.com/swagger-ap [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This is an example of building a swagger-enabled JAX-RS server. -This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework. +This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework for Jboss Resteasy. -To run the server, please execute the following: - -``` -mvn clean package jetty:run -``` +You can deploy the WAR file to Jboss EAP or any other JEE server supporting Jboss Resteasy. You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:-1/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java index 4d783b8b99..0665516ced 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java @@ -1,13 +1,13 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java index 1b02a99b87..3f37368b52 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java index 8647c092bf..a58a79c6cf 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java @@ -1,12 +1,12 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; +import org.openapitools.model.*; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; import java.util.Map; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Category.java index 833b7c0457..8c46a6c2b4 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2ec59cd9f2..660b5b9093 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Order.java index a88a6ca70f..be82bfceae 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java index 0e258641f2..172f1bc51c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import io.swagger.annotations.*; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Tag.java index 356b2abc3b..94185c53ca 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/User.java index 50b50e4551..7cab17060c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/JacksonConfig.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/JacksonConfig.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/JacksonConfig.java index 2cf35d3d1e..666f5aedc4 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/JacksonConfig.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/JacksonConfig.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/RestApplication.java similarity index 71% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/RestApplication.java index 65184dc2f3..14822d3717 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/RestApplication.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @@ -6,9 +6,9 @@ import javax.ws.rs.core.Application; import java.util.Set; import java.util.HashSet; -import io.swagger.api.impl.PetApiServiceImpl; -import io.swagger.api.impl.StoreApiServiceImpl; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.impl.PetApiServiceImpl; +import org.openapitools.api.impl.StoreApiServiceImpl; +import org.openapitools.api.impl.UserApiServiceImpl; @ApplicationPath("/") public class RestApplication extends Application { diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 89% rename from samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index aa241d216e..7f91026af3 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 6e8215e42a..ed2962e025 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 5b34eaf9a7..cea09d4a0f 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,11 +1,11 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/eap/src/main/webapp/WEB-INF/web.xml index 6df076cc36..9b5e1a6d58 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/webapp/WEB-INF/web.xml @@ -4,6 +4,6 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> resteasy.providers - io.swagger.api.JacksonConfig + org.openapitools.api.JacksonConfig diff --git a/samples/server/petstore/jaxrs-resteasy/joda/.openapi-generator-ignore b/samples/server/petstore/jaxrs-resteasy/joda/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-resteasy/joda/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/server/petstore/jaxrs-resteasy/joda/README.md b/samples/server/petstore/jaxrs-resteasy/joda/README.md index cc011c37ee..7d93c4ae45 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/README.md +++ b/samples/server/petstore/jaxrs-resteasy/joda/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:-1/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build.gradle b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle index d170c7a0ac..a568dc86c4 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/build.gradle +++ b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle @@ -13,11 +13,16 @@ dependencies { providedCompile 'org.jboss.resteasy:resteasy-validator-provider-11:3.0.11.Final' providedCompile 'org.jboss.resteasy:resteasy-multipart-provider:3.0.11.Final' providedCompile 'javax.annotation:javax.annotation-api:1.2' + providedCompile 'javax:javaee-api:7.0' providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final' compile 'io.swagger:swagger-annotations:1.5.10' compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final' + providedCompile 'javax.validation:validation-api:1.1.0.Final' compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.1' compile 'joda-time:joda-time:2.7' + //TODO: swaggerFeature + compile 'io.swagger:swagger-jaxrs:1.5.12' + testCompile 'junit:junit:4.12', 'org.hamcrest:hamcrest-core:1.3' } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle b/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle index 6392b5011e..b9747723a5 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle +++ b/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle @@ -1 +1 @@ -rootProject.name = "swagger-jaxrs-resteasy-server" \ No newline at end of file +rootProject.name = "jaxrs-resteasy-joda-server" \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiException.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiException.java index 97e535d3c2..fdbaeee3a2 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class ApiException extends Exception{ diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiOriginFilter.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiOriginFilter.java index f914bb6e89..5cfa35dec8 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.IOException; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 96a46422a5..4a71dd85ca 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JacksonConfig.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JacksonConfig.java index d19c9120fd..a7d1fcae4b 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JacksonConfig.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.core.JsonGenerationException; import com.fasterxml.jackson.core.JsonGenerator; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaDateTimeProvider.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaDateTimeProvider.java index 024bc6761d..f43a3c6b45 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaDateTimeProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import org.joda.time.DateTime; import javax.ws.rs.ext.ParamConverter; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaLocalDateProvider.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaLocalDateProvider.java index 82a67f1ade..8c9929fe02 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/JodaLocalDateProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import org.joda.time.LocalDate; import javax.ws.rs.ext.ParamConverter; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/NotFoundException.java similarity index 86% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/NotFoundException.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/NotFoundException.java index b28b67ea4b..526df6c1c1 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/NotFoundException.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/NotFoundException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class NotFoundException extends ApiException { diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java index e836bd2a61..586189eaa9 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java similarity index 83% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java index 7ebc628495..d2202af6d8 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RFC3339DateFormat.java similarity index 94% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/RFC3339DateFormat.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RFC3339DateFormat.java index 7c9e260509..b471837701 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import com.fasterxml.jackson.databind.util.ISO8601Utils; diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RestApplication.java similarity index 82% rename from samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RestApplication.java index 2561172aea..a82cb9c3fa 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/RestApplication.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @@ -6,4 +6,4 @@ import javax.ws.rs.core.Application; @ApplicationPath("/") public class RestApplication extends Application { -} +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java index 70a8f982c2..9fd412dea0 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 77% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java index b0bb62c499..2dd93106dc 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StringUtil.java similarity index 97% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StringUtil.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StringUtil.java index 6f4a3dadbb..3672835589 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/StringUtil.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StringUtil.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class StringUtil { diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java index 0f860f6ceb..1970ba54db 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java index 934687b4c8..d10882c576 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Category.java index 85fdecdc66..67f137a16e 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Category.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/ModelApiResponse.java index 9a9ff0db8c..c3f9355d2b 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Order.java index cfdf85d655..40fd9ba386 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Order.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java index 4e48fb253b..d749435d67 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; import io.swagger.annotations.*; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Tag.java index 750e1a82b1..3ed2cc6d01 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Tag.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/User.java index a52524db22..48200bde0b 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/User.java @@ -1,4 +1,4 @@ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import java.util.ArrayList; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java deleted file mode 100644 index 54ae4b4843..0000000000 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; - - -public class PetApiServiceFactory { - - private final static PetApiService service = new PetApiServiceImpl(); - - public static PetApiService getPetApi() - { - return service; - } -} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java deleted file mode 100644 index 79a403fee0..0000000000 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; - - -public class StoreApiServiceFactory { - - private final static StoreApiService service = new StoreApiServiceImpl(); - - public static StoreApiService getStoreApi() - { - return service; - } -} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java deleted file mode 100644 index 2f1ae542f1..0000000000 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; - - -public class UserApiServiceFactory { - - private final static UserApiService service = new UserApiServiceImpl(); - - public static UserApiService getUserApi() - { - return service; - } -} diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index df359b1060..f3640de411 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,16 +1,16 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 87% rename from samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index f9efeef790..1bbd004195 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 92% rename from samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index c12ab1a72e..e03dc8eddd 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml index 52a89e9213..f52301872f 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml @@ -5,7 +5,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter diff --git a/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator-ignore b/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator-ignore deleted file mode 100644 index c5fa491b4c..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator/VERSION b/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator/VERSION deleted file mode 100644 index 855ff9501e..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.0-SNAPSHOT \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-spec-interface-response/pom.xml b/samples/server/petstore/jaxrs-spec-interface-response/pom.xml deleted file mode 100644 index a32dafce9e..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - 4.0.0 - io.swagger - swagger-jaxrs-client - jar - swagger-jaxrs-client - 1.0.0 - - src/main/java - - - org.apache.maven.plugins - maven-jar-plugin - 2.2 - - - - - - javax.ws.rs - javax.ws.rs-api - 2.0 - provided - - - io.swagger - swagger-annotations - provided - 1.5.3 - - - junit - junit - ${junit-version} - test - - - - javax.validation - validation-api - 1.1.0.Final - provided - - - - 4.8.1 - - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/AnotherFakeApi.java deleted file mode 100644 index f6b65ca9b0..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.Client; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/another-fake") -@Api(description = "the another-fake API") -public interface AnotherFakeApi { - - @PATCH - @Path("/dummy") - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @ApiOperation(value = "To test special tags", notes = "To test special tags", tags={ "$another-fake?" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Response testSpecialTags(@Valid Client body); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeApi.java deleted file mode 100644 index 4b6a925ba9..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeApi.java +++ /dev/null @@ -1,94 +0,0 @@ -package io.swagger.api; - -import java.math.BigDecimal; -import io.swagger.model.Client; -import java.util.Date; -import org.joda.time.LocalDate; -import io.swagger.model.OuterComposite; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/fake") -@Api(description = "the fake API") -public interface FakeApi { - - @POST - @Path("/outer/boolean") - @ApiOperation(value = "", notes = "Test serialization of outer boolean types", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - Response fakeOuterBooleanSerialize(@Valid Boolean body); - - @POST - @Path("/outer/composite") - @ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - Response fakeOuterCompositeSerialize(@Valid OuterComposite body); - - @POST - @Path("/outer/number") - @ApiOperation(value = "", notes = "Test serialization of outer number types", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - Response fakeOuterNumberSerialize(@Valid BigDecimal body); - - @POST - @Path("/outer/string") - @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "Output string", response = String.class) }) - Response fakeOuterStringSerialize(@Valid String body); - - @PATCH - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Response testClientModel(@Valid Client body); - - @POST - @Consumes({ "application/xml; charset=utf-8", "application/json; charset=utf-8" }) - @Produces({ "application/xml; charset=utf-8", "application/json; charset=utf-8" }) - @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { - @Authorization(value = "http_basic_test") - }, tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string,@FormParam(value = "binary") byte[] binary,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") Date dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback); - - @GET - @Consumes({ "*/*" }) - @Produces({ "*/*" }) - @ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid request", response = Void.class), - @ApiResponse(code = 404, message = "Not found", response = Void.class) }) - Response testEnumParameters(@FormParam(value = "enum_form_string_array") List enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString,@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") @ApiParam("Header parameter enum test (string)") String enumHeaderString,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@FormParam(value = "enum_query_double") Double enumQueryDouble); - - @POST - @Path("/inline-additionalProperties") - @Consumes({ "application/json" }) - @ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response testInlineAdditionalProperties(@Valid Object param); - - @GET - @Path("/jsonFormData") - @Consumes({ "application/json" }) - @ApiOperation(value = "test json serialization of form data", notes = "", tags={ "fake" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeClassnameTestApi.java deleted file mode 100644 index 8c4188d5b1..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/FakeClassnameTestApi.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.swagger.api; - -import io.swagger.model.Client; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/fake_classname_test") -@Api(description = "the fake_classname_test API") -public interface FakeClassnameTestApi { - - @PATCH - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @ApiOperation(value = "To test class name in snake case", notes = "", authorizations = { - @Authorization(value = "api_key_query") - }, tags={ "fake_classname_tags 123#$%^" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Response testClassname(@Valid Client body); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/PetApi.java deleted file mode 100644 index 5fed5aea67..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/PetApi.java +++ /dev/null @@ -1,130 +0,0 @@ -package io.swagger.api; - -import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/pet") -@Api(description = "the pet API") -public interface PetApi { - - @POST - @Consumes({ "application/json", "application/xml" }) - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - Response addPet(@Valid Pet body); - - @DELETE - @Path("/{petId}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Deletes a pet", notes = "", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - Response deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId,@HeaderParam("api_key") String apiKey); - - @GET - @Path("/findByStatus") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), - @ApiResponse(code = 400, message = "Invalid status value", response = Void.class, responseContainer = "List") }) - Response findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List status); - - @GET - @Path("/findByTags") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), - @ApiResponse(code = 400, message = "Invalid tag value", response = Void.class, responseContainer = "List") }) - Response findPetsByTags(@QueryParam("tags") @NotNull @ApiParam("Tags to filter by") List tags); - - @GET - @Path("/{petId}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = { - @Authorization(value = "api_key") - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Pet.class), - @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - @ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - Response getPetById(@PathParam("petId") @ApiParam("ID of pet to return") Long petId); - - @PUT - @Consumes({ "application/json", "application/xml" }) - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Update an existing pet", notes = "", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - @ApiResponse(code = 404, message = "Pet not found", response = Void.class), - @ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - Response updatePet(@Valid Pet body); - - @POST - @Path("/{petId}") - @Consumes({ "application/x-www-form-urlencoded" }) - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet", }) - @ApiResponses(value = { - @ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - Response updatePetWithForm(@PathParam("petId") @ApiParam("ID of pet that needs to be updated") Long petId,@FormParam(value = "name") String name,@FormParam(value = "status") String status); - - @POST - @Path("/{petId}/uploadImage") - @Consumes({ "multipart/form-data" }) - @Produces({ "application/json" }) - @ApiOperation(value = "uploads an image", notes = "", authorizations = { - @Authorization(value = "petstore_auth", scopes = { - @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), - @AuthorizationScope(scope = "read:pets", description = "read your pets") - }) - }, tags={ "pet" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream fileInputStream, - @FormParam(value = "file") Attachment fileDetail); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/StoreApi.java deleted file mode 100644 index 27d17837aa..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/StoreApi.java +++ /dev/null @@ -1,57 +0,0 @@ -package io.swagger.api; - -import java.util.Map; -import io.swagger.model.Order; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/store") -@Api(description = "the store API") -public interface StoreApi { - - @DELETE - @Path("/order/{order_id}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - @ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - Response deleteOrder(@PathParam("order_id") @ApiParam("ID of the order that needs to be deleted") String orderId); - - @GET - @Path("/inventory") - @Produces({ "application/json" }) - @ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = { - @Authorization(value = "api_key") - }, tags={ "store", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") }) - Response getInventory(); - - @GET - @Path("/order/{order_id}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", tags={ "store", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Order.class), - @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), - @ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - Response getOrderById(@PathParam("order_id") @Min(1L) @Max(5L) @ApiParam("ID of pet that needs to be fetched") Long orderId); - - @POST - @Path("/order") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Place an order for a pet", notes = "", tags={ "store" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Order.class), - @ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - Response placeOrder(@Valid Order body); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/UserApi.java deleted file mode 100644 index 55709a0f4d..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/api/UserApi.java +++ /dev/null @@ -1,87 +0,0 @@ -package io.swagger.api; - -import java.util.List; -import io.swagger.model.User; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/user") -@Api(description = "the user API") -public interface UserApi { - - @POST - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response createUser(@Valid User body); - - @POST - @Path("/createWithArray") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response createUsersWithArrayInput(@Valid List body); - - @POST - @Path("/createWithList") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response createUsersWithListInput(@Valid List body); - - @DELETE - @Path("/{username}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - Response deleteUser(@PathParam("username") @ApiParam("The name that needs to be deleted") String username); - - @GET - @Path("/{username}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Get user by user name", notes = "", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = User.class), - @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), - @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - Response getUserByName(@PathParam("username") @ApiParam("The name that needs to be fetched. Use user1 for testing. ") String username); - - @GET - @Path("/login") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Logs user into the system", notes = "", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = String.class), - @ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - Response loginUser(@QueryParam("username") @NotNull @ApiParam("The user name for login") String username,@QueryParam("password") @NotNull @ApiParam("The password for login in clear text") String password); - - @GET - @Path("/logout") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user", }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - Response logoutUser(); - - @PUT - @Path("/{username}") - @Produces({ "application/xml", "application/json" }) - @ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ "user" }) - @ApiResponses(value = { - @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), - @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User body); -} diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java deleted file mode 100644 index 6aa5fc2b98..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ /dev/null @@ -1,96 +0,0 @@ -package io.swagger.model; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class AdditionalPropertiesClass implements Serializable { - - private @Valid Map mapProperty = new HashMap(); - private @Valid Map> mapOfMapProperty = new HashMap>(); - - /** - **/ - public AdditionalPropertiesClass mapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("map_property") - public Map getMapProperty() { - return mapProperty; - } - public void setMapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - } - - /** - **/ - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { - this.mapOfMapProperty = mapOfMapProperty; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("map_of_map_property") - public Map> getMapOfMapProperty() { - return mapOfMapProperty; - } - public void setMapOfMapProperty(Map> mapOfMapProperty) { - this.mapOfMapProperty = mapOfMapProperty; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o; - return Objects.equals(mapProperty, additionalPropertiesClass.mapProperty) && - Objects.equals(mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty); - } - - @Override - public int hashCode() { - return Objects.hash(mapProperty, mapOfMapProperty); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalPropertiesClass {\n"); - - sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n"); - sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Animal.java deleted file mode 100644 index bb54e9cad2..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Animal.java +++ /dev/null @@ -1,96 +0,0 @@ -package io.swagger.model; - -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Animal implements Serializable { - - private @Valid String className = null; - private @Valid String color = "red"; - - /** - **/ - public Animal className(String className) { - this.className = className; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("className") - @NotNull - public String getClassName() { - return className; - } - public void setClassName(String className) { - this.className = className; - } - - /** - **/ - public Animal color(String color) { - this.color = color; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("color") - public String getColor() { - return color; - } - public void setColor(String color) { - this.color = color; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Animal animal = (Animal) o; - return Objects.equals(className, animal.className) && - Objects.equals(color, animal.color); - } - - @Override - public int hashCode() { - return Objects.hash(className, color); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Animal {\n"); - - sb.append(" className: ").append(toIndentedString(className)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AnimalFarm.java deleted file mode 100644 index f14a33d343..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/AnimalFarm.java +++ /dev/null @@ -1,57 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.Animal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class AnimalFarm extends ArrayList implements Serializable { - - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AnimalFarm animalFarm = (AnimalFarm) o; - return true; - } - - @Override - public int hashCode() { - return Objects.hash(); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AnimalFarm {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java deleted file mode 100644 index 0be0645031..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ /dev/null @@ -1,76 +0,0 @@ -package io.swagger.model; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class ArrayOfArrayOfNumberOnly implements Serializable { - - private @Valid List> arrayArrayNumber = new ArrayList>(); - - /** - **/ - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { - this.arrayArrayNumber = arrayArrayNumber; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("ArrayArrayNumber") - public List> getArrayArrayNumber() { - return arrayArrayNumber; - } - public void setArrayArrayNumber(List> arrayArrayNumber) { - this.arrayArrayNumber = arrayArrayNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o; - return Objects.equals(arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayArrayNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfArrayOfNumberOnly {\n"); - - sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java deleted file mode 100644 index c131d2c633..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ /dev/null @@ -1,76 +0,0 @@ -package io.swagger.model; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class ArrayOfNumberOnly implements Serializable { - - private @Valid List arrayNumber = new ArrayList(); - - /** - **/ - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { - this.arrayNumber = arrayNumber; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("ArrayNumber") - public List getArrayNumber() { - return arrayNumber; - } - public void setArrayNumber(List arrayNumber) { - this.arrayNumber = arrayNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o; - return Objects.equals(arrayNumber, arrayOfNumberOnly.arrayNumber); - } - - @Override - public int hashCode() { - return Objects.hash(arrayNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayOfNumberOnly {\n"); - - sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayTest.java deleted file mode 100644 index 1720cde126..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ArrayTest.java +++ /dev/null @@ -1,116 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.ReadOnlyFirst; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class ArrayTest implements Serializable { - - private @Valid List arrayOfString = new ArrayList(); - private @Valid List> arrayArrayOfInteger = new ArrayList>(); - private @Valid List> arrayArrayOfModel = new ArrayList>(); - - /** - **/ - public ArrayTest arrayOfString(List arrayOfString) { - this.arrayOfString = arrayOfString; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("array_of_string") - public List getArrayOfString() { - return arrayOfString; - } - public void setArrayOfString(List arrayOfString) { - this.arrayOfString = arrayOfString; - } - - /** - **/ - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { - this.arrayArrayOfInteger = arrayArrayOfInteger; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("array_array_of_integer") - public List> getArrayArrayOfInteger() { - return arrayArrayOfInteger; - } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { - this.arrayArrayOfInteger = arrayArrayOfInteger; - } - - /** - **/ - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { - this.arrayArrayOfModel = arrayArrayOfModel; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("array_array_of_model") - public List> getArrayArrayOfModel() { - return arrayArrayOfModel; - } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { - this.arrayArrayOfModel = arrayArrayOfModel; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ArrayTest arrayTest = (ArrayTest) o; - return Objects.equals(arrayOfString, arrayTest.arrayOfString) && - Objects.equals(arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) && - Objects.equals(arrayArrayOfModel, arrayTest.arrayArrayOfModel); - } - - @Override - public int hashCode() { - return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ArrayTest {\n"); - - sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n"); - sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n"); - sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Capitalization.java deleted file mode 100644 index 00402e4788..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Capitalization.java +++ /dev/null @@ -1,174 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Capitalization implements Serializable { - - private @Valid String smallCamel = null; - private @Valid String capitalCamel = null; - private @Valid String smallSnake = null; - private @Valid String capitalSnake = null; - private @Valid String scAETHFlowPoints = null; - private @Valid String ATT_NAME = null; - - /** - **/ - public Capitalization smallCamel(String smallCamel) { - this.smallCamel = smallCamel; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("smallCamel") - public String getSmallCamel() { - return smallCamel; - } - public void setSmallCamel(String smallCamel) { - this.smallCamel = smallCamel; - } - - /** - **/ - public Capitalization capitalCamel(String capitalCamel) { - this.capitalCamel = capitalCamel; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("CapitalCamel") - public String getCapitalCamel() { - return capitalCamel; - } - public void setCapitalCamel(String capitalCamel) { - this.capitalCamel = capitalCamel; - } - - /** - **/ - public Capitalization smallSnake(String smallSnake) { - this.smallSnake = smallSnake; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("small_Snake") - public String getSmallSnake() { - return smallSnake; - } - public void setSmallSnake(String smallSnake) { - this.smallSnake = smallSnake; - } - - /** - **/ - public Capitalization capitalSnake(String capitalSnake) { - this.capitalSnake = capitalSnake; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("Capital_Snake") - public String getCapitalSnake() { - return capitalSnake; - } - public void setCapitalSnake(String capitalSnake) { - this.capitalSnake = capitalSnake; - } - - /** - **/ - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { - this.scAETHFlowPoints = scAETHFlowPoints; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { - return scAETHFlowPoints; - } - public void setScAETHFlowPoints(String scAETHFlowPoints) { - this.scAETHFlowPoints = scAETHFlowPoints; - } - - /** - * Name of the pet - **/ - public Capitalization ATT_NAME(String ATT_NAME) { - this.ATT_NAME = ATT_NAME; - return this; - } - - - @ApiModelProperty(value = "Name of the pet ") - @JsonProperty("ATT_NAME") - public String getATTNAME() { - return ATT_NAME; - } - public void setATTNAME(String ATT_NAME) { - this.ATT_NAME = ATT_NAME; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Capitalization capitalization = (Capitalization) o; - return Objects.equals(smallCamel, capitalization.smallCamel) && - Objects.equals(capitalCamel, capitalization.capitalCamel) && - Objects.equals(smallSnake, capitalization.smallSnake) && - Objects.equals(capitalSnake, capitalization.capitalSnake) && - Objects.equals(scAETHFlowPoints, capitalization.scAETHFlowPoints) && - Objects.equals(ATT_NAME, capitalization.ATT_NAME); - } - - @Override - public int hashCode() { - return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Capitalization {\n"); - - sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n"); - sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n"); - sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n"); - sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n"); - sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n"); - sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Cat.java deleted file mode 100644 index 086c6462d8..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Cat.java +++ /dev/null @@ -1,74 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.Animal; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Cat extends Animal implements Serializable { - - private @Valid Boolean declawed = null; - - /** - **/ - public Cat declawed(Boolean declawed) { - this.declawed = declawed; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("declawed") - public Boolean isDeclawed() { - return declawed; - } - public void setDeclawed(Boolean declawed) { - this.declawed = declawed; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Cat cat = (Cat) o; - return Objects.equals(declawed, cat.declawed); - } - - @Override - public int hashCode() { - return Objects.hash(declawed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Cat {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Category.java deleted file mode 100644 index 1e5c20bf73..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Category.java +++ /dev/null @@ -1,93 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Category implements Serializable { - - private @Valid Long id = null; - private @Valid String name = null; - - /** - **/ - public Category id(Long id) { - this.id = id; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("id") - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - - /** - **/ - public Category name(String name) { - this.name = name; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("name") - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Category category = (Category) o; - return Objects.equals(id, category.id) && - Objects.equals(name, category.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Category {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ClassModel.java deleted file mode 100644 index c05c7b4a9b..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ClassModel.java +++ /dev/null @@ -1,77 +0,0 @@ -package io.swagger.model; - -import io.swagger.annotations.ApiModel; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -/** - * Model for testing model with \"_class\" property - **/ -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -@ApiModel(description = "Model for testing model with \"_class\" property") - -public class ClassModel implements Serializable { - - private @Valid String propertyClass = null; - - /** - **/ - public ClassModel propertyClass(String propertyClass) { - this.propertyClass = propertyClass; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("_class") - public String getPropertyClass() { - return propertyClass; - } - public void setPropertyClass(String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClassModel classModel = (ClassModel) o; - return Objects.equals(propertyClass, classModel.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(propertyClass); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ClassModel {\n"); - - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Client.java deleted file mode 100644 index 61c2aef051..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Client.java +++ /dev/null @@ -1,73 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Client implements Serializable { - - private @Valid String client = null; - - /** - **/ - public Client client(String client) { - this.client = client; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("client") - public String getClient() { - return client; - } - public void setClient(String client) { - this.client = client; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Client client = (Client) o; - return Objects.equals(client, client.client); - } - - @Override - public int hashCode() { - return Objects.hash(client); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Client {\n"); - - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Dog.java deleted file mode 100644 index 8c1d2c3f85..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Dog.java +++ /dev/null @@ -1,74 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.Animal; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Dog extends Animal implements Serializable { - - private @Valid String breed = null; - - /** - **/ - public Dog breed(String breed) { - this.breed = breed; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("breed") - public String getBreed() { - return breed; - } - public void setBreed(String breed) { - this.breed = breed; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Dog dog = (Dog) o; - return Objects.equals(breed, dog.breed); - } - - @Override - public int hashCode() { - return Objects.hash(breed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Dog {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" breed: ").append(toIndentedString(breed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumArrays.java deleted file mode 100644 index 0ed8a2bf52..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumArrays.java +++ /dev/null @@ -1,161 +0,0 @@ -package io.swagger.model; - -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class EnumArrays implements Serializable { - - -public enum JustSymbolEnum { - - GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), DOLLAR(String.valueOf("$")); - - - private String value; - - JustSymbolEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static JustSymbolEnum fromValue(String v) { - for (JustSymbolEnum b : JustSymbolEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid JustSymbolEnum justSymbol = null; - -public enum ArrayEnumEnum { - - FISH(String.valueOf("fish")), CRAB(String.valueOf("crab")); - - - private String value; - - ArrayEnumEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ArrayEnumEnum fromValue(String v) { - for (ArrayEnumEnum b : ArrayEnumEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid List arrayEnum = new ArrayList(); - - /** - **/ - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { - this.justSymbol = justSymbol; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { - return justSymbol; - } - public void setJustSymbol(JustSymbolEnum justSymbol) { - this.justSymbol = justSymbol; - } - - /** - **/ - public EnumArrays arrayEnum(List arrayEnum) { - this.arrayEnum = arrayEnum; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("array_enum") - public List getArrayEnum() { - return arrayEnum; - } - public void setArrayEnum(List arrayEnum) { - this.arrayEnum = arrayEnum; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumArrays enumArrays = (EnumArrays) o; - return Objects.equals(justSymbol, enumArrays.justSymbol) && - Objects.equals(arrayEnum, enumArrays.arrayEnum); - } - - @Override - public int hashCode() { - return Objects.hash(justSymbol, arrayEnum); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumArrays {\n"); - - sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n"); - sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumClass.java deleted file mode 100644 index 13cf0a338e..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumClass.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets EnumClass - */ -public enum EnumClass { - - _ABC("_abc"), - - _EFG("-efg"), - - _XYZ_("(xyz)"); - - private String value; - - EnumClass(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumClass fromValue(String text) { - for (EnumClass b : EnumClass.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } -} - - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumTest.java deleted file mode 100644 index 7fdc1ad96d..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/EnumTest.java +++ /dev/null @@ -1,233 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.OuterEnum; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class EnumTest implements Serializable { - - -public enum EnumStringEnum { - - UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower")), EMPTY(String.valueOf("")); - - - private String value; - - EnumStringEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumStringEnum fromValue(String v) { - for (EnumStringEnum b : EnumStringEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid EnumStringEnum enumString = null; - -public enum EnumIntegerEnum { - - NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1)); - - - private Integer value; - - EnumIntegerEnum (Integer v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumIntegerEnum fromValue(String v) { - for (EnumIntegerEnum b : EnumIntegerEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid EnumIntegerEnum enumInteger = null; - -public enum EnumNumberEnum { - - NUMBER_1_DOT_1(Double.valueOf(1.1)), NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); - - - private Double value; - - EnumNumberEnum (Double v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EnumNumberEnum fromValue(String v) { - for (EnumNumberEnum b : EnumNumberEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid EnumNumberEnum enumNumber = null; - private @Valid OuterEnum outerEnum = null; - - /** - **/ - public EnumTest enumString(EnumStringEnum enumString) { - this.enumString = enumString; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { - return enumString; - } - public void setEnumString(EnumStringEnum enumString) { - this.enumString = enumString; - } - - /** - **/ - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { - this.enumInteger = enumInteger; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { - return enumInteger; - } - public void setEnumInteger(EnumIntegerEnum enumInteger) { - this.enumInteger = enumInteger; - } - - /** - **/ - public EnumTest enumNumber(EnumNumberEnum enumNumber) { - this.enumNumber = enumNumber; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { - return enumNumber; - } - public void setEnumNumber(EnumNumberEnum enumNumber) { - this.enumNumber = enumNumber; - } - - /** - **/ - public EnumTest outerEnum(OuterEnum outerEnum) { - this.outerEnum = outerEnum; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { - return outerEnum; - } - public void setOuterEnum(OuterEnum outerEnum) { - this.outerEnum = outerEnum; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnumTest enumTest = (EnumTest) o; - return Objects.equals(enumString, enumTest.enumString) && - Objects.equals(enumInteger, enumTest.enumInteger) && - Objects.equals(enumNumber, enumTest.enumNumber) && - Objects.equals(outerEnum, enumTest.outerEnum); - } - - @Override - public int hashCode() { - return Objects.hash(enumString, enumInteger, enumNumber, outerEnum); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnumTest {\n"); - - sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n"); - sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n"); - sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); - sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/FormatTest.java deleted file mode 100644 index bb3072fe1e..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/FormatTest.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.swagger.model; - -import java.math.BigDecimal; -import java.util.Date; -import java.util.UUID; -import org.joda.time.LocalDate; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class FormatTest implements Serializable { - - private @Valid Integer integer = null; - private @Valid Integer int32 = null; - private @Valid Long int64 = null; - private @Valid BigDecimal number = null; - private @Valid Float _float = null; - private @Valid Double _double = null; - private @Valid String string = null; - private @Valid byte[] _byte = null; - private @Valid byte[] binary = null; - private @Valid LocalDate date = null; - private @Valid Date dateTime = null; - private @Valid UUID uuid = null; - private @Valid String password = null; - - /** - * minimum: 10 - * maximum: 100 - **/ - public FormatTest integer(Integer integer) { - this.integer = integer; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("integer") - @Min(10) @Max(100) public Integer getInteger() { - return integer; - } - public void setInteger(Integer integer) { - this.integer = integer; - } - - /** - * minimum: 20 - * maximum: 200 - **/ - public FormatTest int32(Integer int32) { - this.int32 = int32; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("int32") - @Min(20) @Max(200) public Integer getInt32() { - return int32; - } - public void setInt32(Integer int32) { - this.int32 = int32; - } - - /** - **/ - public FormatTest int64(Long int64) { - this.int64 = int64; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("int64") - public Long getInt64() { - return int64; - } - public void setInt64(Long int64) { - this.int64 = int64; - } - - /** - * minimum: 32.1 - * maximum: 543.2 - **/ - public FormatTest number(BigDecimal number) { - this.number = number; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("number") - @NotNull - @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { - return number; - } - public void setNumber(BigDecimal number) { - this.number = number; - } - - /** - * minimum: 54.3 - * maximum: 987.6 - **/ - public FormatTest _float(Float _float) { - this._float = _float; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("float") - @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { - return _float; - } - public void setFloat(Float _float) { - this._float = _float; - } - - /** - * minimum: 67.8 - * maximum: 123.4 - **/ - public FormatTest _double(Double _double) { - this._double = _double; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("double") - @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { - return _double; - } - public void setDouble(Double _double) { - this._double = _double; - } - - /** - **/ - public FormatTest string(String string) { - this.string = string; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("string") - @Pattern(regexp="/[a-z]/i") public String getString() { - return string; - } - public void setString(String string) { - this.string = string; - } - - /** - **/ - public FormatTest _byte(byte[] _byte) { - this._byte = _byte; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("byte") - @NotNull - @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() { - return _byte; - } - public void setByte(byte[] _byte) { - this._byte = _byte; - } - - /** - **/ - public FormatTest binary(byte[] binary) { - this.binary = binary; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("binary") - public byte[] getBinary() { - return binary; - } - public void setBinary(byte[] binary) { - this.binary = binary; - } - - /** - **/ - public FormatTest date(LocalDate date) { - this.date = date; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("date") - @NotNull - public LocalDate getDate() { - return date; - } - public void setDate(LocalDate date) { - this.date = date; - } - - /** - **/ - public FormatTest dateTime(Date dateTime) { - this.dateTime = dateTime; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("dateTime") - public Date getDateTime() { - return dateTime; - } - public void setDateTime(Date dateTime) { - this.dateTime = dateTime; - } - - /** - **/ - public FormatTest uuid(UUID uuid) { - this.uuid = uuid; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("uuid") - public UUID getUuid() { - return uuid; - } - public void setUuid(UUID uuid) { - this.uuid = uuid; - } - - /** - **/ - public FormatTest password(String password) { - this.password = password; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("password") - @NotNull - @Size(min=10,max=64) public String getPassword() { - return password; - } - public void setPassword(String password) { - this.password = password; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FormatTest formatTest = (FormatTest) o; - return Objects.equals(integer, formatTest.integer) && - Objects.equals(int32, formatTest.int32) && - Objects.equals(int64, formatTest.int64) && - Objects.equals(number, formatTest.number) && - Objects.equals(_float, formatTest._float) && - Objects.equals(_double, formatTest._double) && - Objects.equals(string, formatTest.string) && - Objects.equals(_byte, formatTest._byte) && - Objects.equals(binary, formatTest.binary) && - Objects.equals(date, formatTest.date) && - Objects.equals(dateTime, formatTest.dateTime) && - Objects.equals(uuid, formatTest.uuid) && - Objects.equals(password, formatTest.password); - } - - @Override - public int hashCode() { - return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FormatTest {\n"); - - sb.append(" integer: ").append(toIndentedString(integer)).append("\n"); - sb.append(" int32: ").append(toIndentedString(int32)).append("\n"); - sb.append(" int64: ").append(toIndentedString(int64)).append("\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" _float: ").append(toIndentedString(_float)).append("\n"); - sb.append(" _double: ").append(toIndentedString(_double)).append("\n"); - sb.append(" string: ").append(toIndentedString(string)).append("\n"); - sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n"); - sb.append(" binary: ").append(toIndentedString(binary)).append("\n"); - sb.append(" date: ").append(toIndentedString(date)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/HasOnlyReadOnly.java deleted file mode 100644 index ef9c272884..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ /dev/null @@ -1,93 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class HasOnlyReadOnly implements Serializable { - - private @Valid String bar = null; - private @Valid String foo = null; - - /** - **/ - public HasOnlyReadOnly bar(String bar) { - this.bar = bar; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("bar") - public String getBar() { - return bar; - } - public void setBar(String bar) { - this.bar = bar; - } - - /** - **/ - public HasOnlyReadOnly foo(String foo) { - this.foo = foo; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("foo") - public String getFoo() { - return foo; - } - public void setFoo(String foo) { - this.foo = foo; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o; - return Objects.equals(bar, hasOnlyReadOnly.bar) && - Objects.equals(foo, hasOnlyReadOnly.foo); - } - - @Override - public int hashCode() { - return Objects.hash(bar, foo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HasOnlyReadOnly {\n"); - - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" foo: ").append(toIndentedString(foo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MapTest.java deleted file mode 100644 index 6a11ab8cbf..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MapTest.java +++ /dev/null @@ -1,129 +0,0 @@ -package io.swagger.model; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class MapTest implements Serializable { - - private @Valid Map> mapMapOfString = new HashMap>(); - -public enum InnerEnum { - - UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower")); - - - private String value; - - InnerEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static InnerEnum fromValue(String v) { - for (InnerEnum b : InnerEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid Map mapOfEnumString = new HashMap(); - - /** - **/ - public MapTest mapMapOfString(Map> mapMapOfString) { - this.mapMapOfString = mapMapOfString; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("map_map_of_string") - public Map> getMapMapOfString() { - return mapMapOfString; - } - public void setMapMapOfString(Map> mapMapOfString) { - this.mapMapOfString = mapMapOfString; - } - - /** - **/ - public MapTest mapOfEnumString(Map mapOfEnumString) { - this.mapOfEnumString = mapOfEnumString; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("map_of_enum_string") - public Map getMapOfEnumString() { - return mapOfEnumString; - } - public void setMapOfEnumString(Map mapOfEnumString) { - this.mapOfEnumString = mapOfEnumString; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MapTest mapTest = (MapTest) o; - return Objects.equals(mapMapOfString, mapTest.mapMapOfString) && - Objects.equals(mapOfEnumString, mapTest.mapOfEnumString); - } - - @Override - public int hashCode() { - return Objects.hash(mapMapOfString, mapOfEnumString); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MapTest {\n"); - - sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n"); - sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java deleted file mode 100644 index 673adda125..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ /dev/null @@ -1,119 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.Animal; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable { - - private @Valid UUID uuid = null; - private @Valid Date dateTime = null; - private @Valid Map map = new HashMap(); - - /** - **/ - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { - this.uuid = uuid; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("uuid") - public UUID getUuid() { - return uuid; - } - public void setUuid(UUID uuid) { - this.uuid = uuid; - } - - /** - **/ - public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { - this.dateTime = dateTime; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("dateTime") - public Date getDateTime() { - return dateTime; - } - public void setDateTime(Date dateTime) { - this.dateTime = dateTime; - } - - /** - **/ - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { - this.map = map; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("map") - public Map getMap() { - return map; - } - public void setMap(Map map) { - this.map = map; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o; - return Objects.equals(uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) && - Objects.equals(dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) && - Objects.equals(map, mixedPropertiesAndAdditionalPropertiesClass.map); - } - - @Override - public int hashCode() { - return Objects.hash(uuid, dateTime, map); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n"); - - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); - sb.append(" map: ").append(toIndentedString(map)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Model200Response.java deleted file mode 100644 index eeb8e7547c..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Model200Response.java +++ /dev/null @@ -1,97 +0,0 @@ -package io.swagger.model; - -import io.swagger.annotations.ApiModel; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -/** - * Model for testing model name starting with number - **/ -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -@ApiModel(description = "Model for testing model name starting with number") - -public class Model200Response implements Serializable { - - private @Valid Integer name = null; - private @Valid String propertyClass = null; - - /** - **/ - public Model200Response name(Integer name) { - this.name = name; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("name") - public Integer getName() { - return name; - } - public void setName(Integer name) { - this.name = name; - } - - /** - **/ - public Model200Response propertyClass(String propertyClass) { - this.propertyClass = propertyClass; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("class") - public String getPropertyClass() { - return propertyClass; - } - public void setPropertyClass(String propertyClass) { - this.propertyClass = propertyClass; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(name, _200Response.name) && - Objects.equals(propertyClass, _200Response.propertyClass); - } - - @Override - public int hashCode() { - return Objects.hash(name, propertyClass); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Model200Response {\n"); - - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelApiResponse.java deleted file mode 100644 index e97b1fdfd8..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelApiResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class ModelApiResponse implements Serializable { - - private @Valid Integer code = null; - private @Valid String type = null; - private @Valid String message = null; - - /** - **/ - public ModelApiResponse code(Integer code) { - this.code = code; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("code") - public Integer getCode() { - return code; - } - public void setCode(Integer code) { - this.code = code; - } - - /** - **/ - public ModelApiResponse type(String type) { - this.type = type; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("type") - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - - /** - **/ - public ModelApiResponse message(String message) { - this.message = message; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("message") - public String getMessage() { - return message; - } - public void setMessage(String message) { - this.message = message; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelApiResponse _apiResponse = (ModelApiResponse) o; - return Objects.equals(code, _apiResponse.code) && - Objects.equals(type, _apiResponse.type) && - Objects.equals(message, _apiResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, type, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelApiResponse {\n"); - - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelReturn.java deleted file mode 100644 index 72a677f7ab..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ModelReturn.java +++ /dev/null @@ -1,77 +0,0 @@ -package io.swagger.model; - -import io.swagger.annotations.ApiModel; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -/** - * Model for testing reserved words - **/ -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -@ApiModel(description = "Model for testing reserved words") - -public class ModelReturn implements Serializable { - - private @Valid Integer _return = null; - - /** - **/ - public ModelReturn _return(Integer _return) { - this._return = _return; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("return") - public Integer getReturn() { - return _return; - } - public void setReturn(Integer _return) { - this._return = _return; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelReturn _return = (ModelReturn) o; - return Objects.equals(_return, _return._return); - } - - @Override - public int hashCode() { - return Objects.hash(_return); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelReturn {\n"); - - sb.append(" _return: ").append(toIndentedString(_return)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Name.java deleted file mode 100644 index 5460ff8a9b..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Name.java +++ /dev/null @@ -1,138 +0,0 @@ -package io.swagger.model; - -import io.swagger.annotations.ApiModel; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -/** - * Model for testing model name same as property name - **/ -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -@ApiModel(description = "Model for testing model name same as property name") - -public class Name implements Serializable { - - private @Valid Integer name = null; - private @Valid Integer snakeCase = null; - private @Valid String property = null; - private @Valid Integer _123Number = null; - - /** - **/ - public Name name(Integer name) { - this.name = name; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("name") - @NotNull - public Integer getName() { - return name; - } - public void setName(Integer name) { - this.name = name; - } - - /** - **/ - public Name snakeCase(Integer snakeCase) { - this.snakeCase = snakeCase; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("snake_case") - public Integer getSnakeCase() { - return snakeCase; - } - public void setSnakeCase(Integer snakeCase) { - this.snakeCase = snakeCase; - } - - /** - **/ - public Name property(String property) { - this.property = property; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("property") - public String getProperty() { - return property; - } - public void setProperty(String property) { - this.property = property; - } - - /** - **/ - public Name _123Number(Integer _123Number) { - this._123Number = _123Number; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("123Number") - public Integer get123Number() { - return _123Number; - } - public void set123Number(Integer _123Number) { - this._123Number = _123Number; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Name name = (Name) o; - return Objects.equals(name, name.name) && - Objects.equals(snakeCase, name.snakeCase) && - Objects.equals(property, name.property) && - Objects.equals(_123Number, name._123Number); - } - - @Override - public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Name {\n"); - - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/NumberOnly.java deleted file mode 100644 index 5f02fd0649..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/NumberOnly.java +++ /dev/null @@ -1,74 +0,0 @@ -package io.swagger.model; - -import java.math.BigDecimal; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class NumberOnly implements Serializable { - - private @Valid BigDecimal justNumber = null; - - /** - **/ - public NumberOnly justNumber(BigDecimal justNumber) { - this.justNumber = justNumber; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { - return justNumber; - } - public void setJustNumber(BigDecimal justNumber) { - this.justNumber = justNumber; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NumberOnly numberOnly = (NumberOnly) o; - return Objects.equals(justNumber, numberOnly.justNumber); - } - - @Override - public int hashCode() { - return Objects.hash(justNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NumberOnly {\n"); - - sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Order.java deleted file mode 100644 index 393f06ff03..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Order.java +++ /dev/null @@ -1,208 +0,0 @@ -package io.swagger.model; - -import java.util.Date; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Order implements Serializable { - - private @Valid Long id = null; - private @Valid Long petId = null; - private @Valid Integer quantity = null; - private @Valid Date shipDate = null; - -public enum StatusEnum { - - PLACED(String.valueOf("placed")), APPROVED(String.valueOf("approved")), DELIVERED(String.valueOf("delivered")); - - - private String value; - - StatusEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String v) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid StatusEnum status = null; - private @Valid Boolean complete = false; - - /** - **/ - public Order id(Long id) { - this.id = id; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("id") - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - - /** - **/ - public Order petId(Long petId) { - this.petId = petId; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("petId") - public Long getPetId() { - return petId; - } - public void setPetId(Long petId) { - this.petId = petId; - } - - /** - **/ - public Order quantity(Integer quantity) { - this.quantity = quantity; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("quantity") - public Integer getQuantity() { - return quantity; - } - public void setQuantity(Integer quantity) { - this.quantity = quantity; - } - - /** - **/ - public Order shipDate(Date shipDate) { - this.shipDate = shipDate; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("shipDate") - public Date getShipDate() { - return shipDate; - } - public void setShipDate(Date shipDate) { - this.shipDate = shipDate; - } - - /** - * Order Status - **/ - public Order status(StatusEnum status) { - this.status = status; - return this; - } - - - @ApiModelProperty(value = "Order Status") - @JsonProperty("status") - public StatusEnum getStatus() { - return status; - } - public void setStatus(StatusEnum status) { - this.status = status; - } - - /** - **/ - public Order complete(Boolean complete) { - this.complete = complete; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("complete") - public Boolean isComplete() { - return complete; - } - public void setComplete(Boolean complete) { - this.complete = complete; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Order order = (Order) o; - return Objects.equals(id, order.id) && - Objects.equals(petId, order.petId) && - Objects.equals(quantity, order.quantity) && - Objects.equals(shipDate, order.shipDate) && - Objects.equals(status, order.status) && - Objects.equals(complete, order.complete); - } - - @Override - public int hashCode() { - return Objects.hash(id, petId, quantity, shipDate, status, complete); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Order {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" petId: ").append(toIndentedString(petId)).append("\n"); - sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); - sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" complete: ").append(toIndentedString(complete)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterComposite.java deleted file mode 100644 index bfe8211b65..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterComposite.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.swagger.model; - -import java.math.BigDecimal; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class OuterComposite implements Serializable { - - private @Valid BigDecimal myNumber = null; - private @Valid String myString = null; - private @Valid Boolean myBoolean = null; - - /** - **/ - public OuterComposite myNumber(BigDecimal myNumber) { - this.myNumber = myNumber; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("my_number") - public BigDecimal getMyNumber() { - return myNumber; - } - public void setMyNumber(BigDecimal myNumber) { - this.myNumber = myNumber; - } - - /** - **/ - public OuterComposite myString(String myString) { - this.myString = myString; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("my_string") - public String getMyString() { - return myString; - } - public void setMyString(String myString) { - this.myString = myString; - } - - /** - **/ - public OuterComposite myBoolean(Boolean myBoolean) { - this.myBoolean = myBoolean; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("my_boolean") - public Boolean getMyBoolean() { - return myBoolean; - } - public void setMyBoolean(Boolean myBoolean) { - this.myBoolean = myBoolean; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OuterComposite outerComposite = (OuterComposite) o; - return Objects.equals(myNumber, outerComposite.myNumber) && - Objects.equals(myString, outerComposite.myString) && - Objects.equals(myBoolean, outerComposite.myBoolean); - } - - @Override - public int hashCode() { - return Objects.hash(myNumber, myString, myBoolean); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OuterComposite {\n"); - - sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n"); - sb.append(" myString: ").append(toIndentedString(myString)).append("\n"); - sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterEnum.java deleted file mode 100644 index d682c3f508..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/OuterEnum.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets OuterEnum - */ -public enum OuterEnum { - - PLACED("placed"), - - APPROVED("approved"), - - DELIVERED("delivered"); - - private String value; - - OuterEnum(String value) { - this.value = value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OuterEnum fromValue(String text) { - for (OuterEnum b : OuterEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } -} - - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Pet.java deleted file mode 100644 index 1c9f88d140..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Pet.java +++ /dev/null @@ -1,213 +0,0 @@ -package io.swagger.model; - -import io.swagger.model.Category; -import io.swagger.model.Tag; -import java.util.ArrayList; -import java.util.List; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Pet implements Serializable { - - private @Valid Long id = null; - private @Valid Category category = null; - private @Valid String name = null; - private @Valid List photoUrls = new ArrayList(); - private @Valid List tags = new ArrayList(); - -public enum StatusEnum { - - AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD(String.valueOf("sold")); - - - private String value; - - StatusEnum (String v) { - value = v; - } - - public String value() { - return value; - } - - @Override - @JsonValue - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String v) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(v)) { - return b; - } - } - return null; - } -} - - private @Valid StatusEnum status = null; - - /** - **/ - public Pet id(Long id) { - this.id = id; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("id") - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - - /** - **/ - public Pet category(Category category) { - this.category = category; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("category") - public Category getCategory() { - return category; - } - public void setCategory(Category category) { - this.category = category; - } - - /** - **/ - public Pet name(String name) { - this.name = name; - return this; - } - - - @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty("name") - @NotNull - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - /** - **/ - public Pet photoUrls(List photoUrls) { - this.photoUrls = photoUrls; - return this; - } - - - @ApiModelProperty(required = true, value = "") - @JsonProperty("photoUrls") - @NotNull - public List getPhotoUrls() { - return photoUrls; - } - public void setPhotoUrls(List photoUrls) { - this.photoUrls = photoUrls; - } - - /** - **/ - public Pet tags(List tags) { - this.tags = tags; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("tags") - public List getTags() { - return tags; - } - public void setTags(List tags) { - this.tags = tags; - } - - /** - * pet status in the store - **/ - public Pet status(StatusEnum status) { - this.status = status; - return this; - } - - - @ApiModelProperty(value = "pet status in the store") - @JsonProperty("status") - public StatusEnum getStatus() { - return status; - } - public void setStatus(StatusEnum status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Pet pet = (Pet) o; - return Objects.equals(id, pet.id) && - Objects.equals(category, pet.category) && - Objects.equals(name, pet.name) && - Objects.equals(photoUrls, pet.photoUrls) && - Objects.equals(tags, pet.tags) && - Objects.equals(status, pet.status); - } - - @Override - public int hashCode() { - return Objects.hash(id, category, name, photoUrls, tags, status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Pet {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ReadOnlyFirst.java deleted file mode 100644 index bd4ee7e1cb..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ /dev/null @@ -1,93 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class ReadOnlyFirst implements Serializable { - - private @Valid String bar = null; - private @Valid String baz = null; - - /** - **/ - public ReadOnlyFirst bar(String bar) { - this.bar = bar; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("bar") - public String getBar() { - return bar; - } - public void setBar(String bar) { - this.bar = bar; - } - - /** - **/ - public ReadOnlyFirst baz(String baz) { - this.baz = baz; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("baz") - public String getBaz() { - return baz; - } - public void setBaz(String baz) { - this.baz = baz; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o; - return Objects.equals(bar, readOnlyFirst.bar) && - Objects.equals(baz, readOnlyFirst.baz); - } - - @Override - public int hashCode() { - return Objects.hash(bar, baz); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReadOnlyFirst {\n"); - - sb.append(" bar: ").append(toIndentedString(bar)).append("\n"); - sb.append(" baz: ").append(toIndentedString(baz)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/SpecialModelName.java deleted file mode 100644 index b8144314b8..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/SpecialModelName.java +++ /dev/null @@ -1,73 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class SpecialModelName implements Serializable { - - private @Valid Long specialPropertyName = null; - - /** - **/ - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("$special[property.name]") - public Long getSpecialPropertyName() { - return specialPropertyName; - } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(specialPropertyName, specialModelName.specialPropertyName); - } - - @Override - public int hashCode() { - return Objects.hash(specialPropertyName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SpecialModelName {\n"); - - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Tag.java deleted file mode 100644 index 10a7ffc7c5..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/Tag.java +++ /dev/null @@ -1,93 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class Tag implements Serializable { - - private @Valid Long id = null; - private @Valid String name = null; - - /** - **/ - public Tag id(Long id) { - this.id = id; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("id") - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - - /** - **/ - public Tag name(String name) { - this.name = name; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("name") - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tag tag = (Tag) o; - return Objects.equals(id, tag.id) && - Objects.equals(name, tag.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Tag {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/User.java deleted file mode 100644 index a86f0eae07..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/io/swagger/model/User.java +++ /dev/null @@ -1,214 +0,0 @@ -package io.swagger.model; - -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; - - -public class User implements Serializable { - - private @Valid Long id = null; - private @Valid String username = null; - private @Valid String firstName = null; - private @Valid String lastName = null; - private @Valid String email = null; - private @Valid String password = null; - private @Valid String phone = null; - private @Valid Integer userStatus = null; - - /** - **/ - public User id(Long id) { - this.id = id; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("id") - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - - /** - **/ - public User username(String username) { - this.username = username; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("username") - public String getUsername() { - return username; - } - public void setUsername(String username) { - this.username = username; - } - - /** - **/ - public User firstName(String firstName) { - this.firstName = firstName; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("firstName") - public String getFirstName() { - return firstName; - } - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - /** - **/ - public User lastName(String lastName) { - this.lastName = lastName; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("lastName") - public String getLastName() { - return lastName; - } - public void setLastName(String lastName) { - this.lastName = lastName; - } - - /** - **/ - public User email(String email) { - this.email = email; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("email") - public String getEmail() { - return email; - } - public void setEmail(String email) { - this.email = email; - } - - /** - **/ - public User password(String password) { - this.password = password; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("password") - public String getPassword() { - return password; - } - public void setPassword(String password) { - this.password = password; - } - - /** - **/ - public User phone(String phone) { - this.phone = phone; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("phone") - public String getPhone() { - return phone; - } - public void setPhone(String phone) { - this.phone = phone; - } - - /** - * User Status - **/ - public User userStatus(Integer userStatus) { - this.userStatus = userStatus; - return this; - } - - - @ApiModelProperty(value = "User Status") - @JsonProperty("userStatus") - public Integer getUserStatus() { - return userStatus; - } - public void setUserStatus(Integer userStatus) { - this.userStatus = userStatus; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - User user = (User) o; - return Objects.equals(id, user.id) && - Objects.equals(username, user.username) && - Objects.equals(firstName, user.firstName) && - Objects.equals(lastName, user.lastName) && - Objects.equals(email, user.email) && - Objects.equals(password, user.password) && - Objects.equals(phone, user.phone) && - Objects.equals(userStatus, user.userStatus); - } - - @Override - public int hashCode() { - return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class User {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); - sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec-interface-response/swagger.json b/samples/server/petstore/jaxrs-spec-interface-response/swagger.json deleted file mode 100644 index 26eef9f958..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface-response/swagger.json +++ /dev/null @@ -1,1719 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\", - "version" : "1.0.0", - "title" : "Swagger Petstore", - "termsOfService" : "http://swagger.io/terms/", - "contact" : { - "email" : "apiteam@swagger.io" - }, - "license" : { - "name" : "Apache-2.0", - "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host" : "petstore.swagger.io:80", - "basePath" : "/v2", - "tags" : [ { - "name" : "pet", - "description" : "Everything about your Pets", - "externalDocs" : { - "description" : "Find out more", - "url" : "http://swagger.io" - } - }, { - "name" : "store", - "description" : "Access to Petstore orders" - }, { - "name" : "user", - "description" : "Operations about user", - "externalDocs" : { - "description" : "Find out more about our store", - "url" : "http://swagger.io" - } - } ], - "schemes" : [ "http" ], - "paths" : { - "/pet" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "Add a new pet to the store", - "description" : "", - "operationId" : "addPet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "put" : { - "tags" : [ "pet" ], - "summary" : "Update an existing pet", - "description" : "", - "operationId" : "updatePet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - }, - "405" : { - "description" : "Validation exception" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByStatus" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by status", - "description" : "Multiple status values can be provided with comma separated strings", - "operationId" : "findPetsByStatus", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "status", - "in" : "query", - "description" : "Status values that need to be considered for filter", - "required" : true, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ "available", "pending", "sold" ], - "default" : "available" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid status value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByTags" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by tags", - "description" : "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "operationId" : "findPetsByTags", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "tags", - "in" : "query", - "description" : "Tags to filter by", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid tag value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ], - "deprecated" : true - } - }, - "/pet/{petId}" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Find pet by ID", - "description" : "Returns a single pet", - "operationId" : "getPetById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to return", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Pet" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - } - }, - "security" : [ { - "api_key" : [ ] - } ] - }, - "post" : { - "tags" : [ "pet" ], - "summary" : "Updates a pet in the store with form data", - "description" : "", - "operationId" : "updatePetWithForm", - "consumes" : [ "application/x-www-form-urlencoded" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet that needs to be updated", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "name", - "in" : "formData", - "description" : "Updated name of the pet", - "required" : false, - "type" : "string" - }, { - "name" : "status", - "in" : "formData", - "description" : "Updated status of the pet", - "required" : false, - "type" : "string" - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "delete" : { - "tags" : [ "pet" ], - "summary" : "Deletes a pet", - "description" : "", - "operationId" : "deletePet", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "api_key", - "in" : "header", - "required" : false, - "type" : "string" - }, { - "name" : "petId", - "in" : "path", - "description" : "Pet id to delete", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "400" : { - "description" : "Invalid pet value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/{petId}/uploadImage" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "uploads an image", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to update", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "additionalMetadata", - "in" : "formData", - "description" : "Additional data to pass to server", - "required" : false, - "type" : "string" - }, { - "name" : "file", - "in" : "formData", - "description" : "file to upload", - "required" : false, - "type" : "file" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ApiResponse" - } - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/store/inventory" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Returns pet inventories by status", - "description" : "Returns a map of status codes to quantities", - "operationId" : "getInventory", - "produces" : [ "application/json" ], - "parameters" : [ ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "integer", - "format" : "int32" - } - } - } - }, - "security" : [ { - "api_key" : [ ] - } ] - } - }, - "/store/order" : { - "post" : { - "tags" : [ "store" ], - "summary" : "Place an order for a pet", - "description" : "", - "operationId" : "placeOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "order placed for purchasing the pet", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Order" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid Order" - } - } - } - }, - "/store/order/{order_id}" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Find purchase order by ID", - "description" : "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId" : "getOrderById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of pet that needs to be fetched", - "required" : true, - "type" : "integer", - "maximum" : 5, - "minimum" : 1, - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - }, - "delete" : { - "tags" : [ "store" ], - "summary" : "Delete purchase order by ID", - "description" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId" : "deleteOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of the order that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - } - }, - "/user" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Create user", - "description" : "This can only be done by the logged in user.", - "operationId" : "createUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Created user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithArray" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithArrayInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithList" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithListInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/login" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs user into the system", - "description" : "", - "operationId" : "loginUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "query", - "description" : "The user name for login", - "required" : true, - "type" : "string" - }, { - "name" : "password", - "in" : "query", - "description" : "The password for login in clear text", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - }, - "headers" : { - "X-Rate-Limit" : { - "type" : "integer", - "format" : "int32", - "description" : "calls per hour allowed by the user" - }, - "X-Expires-After" : { - "type" : "string", - "format" : "date-time", - "description" : "date in UTC when toekn expires" - } - } - }, - "400" : { - "description" : "Invalid username/password supplied" - } - } - } - }, - "/user/logout" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs out current logged in user session", - "description" : "", - "operationId" : "logoutUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/{username}" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Get user by user name", - "description" : "", - "operationId" : "getUserByName", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be fetched. Use user1 for testing. ", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/User" - } - }, - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "put" : { - "tags" : [ "user" ], - "summary" : "Updated user", - "description" : "This can only be done by the logged in user.", - "operationId" : "updateUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "name that need to be deleted", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "description" : "Updated user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid user supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "delete" : { - "tags" : [ "user" ], - "summary" : "Delete user", - "description" : "This can only be done by the logged in user.", - "operationId" : "deleteUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - } - }, - "/fake_classname_test" : { - "patch" : { - "tags" : [ "fake_classname_tags 123#$%^" ], - "summary" : "To test class name in snake case", - "operationId" : "testClassname", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - }, - "security" : [ { - "api_key_query" : [ ] - } ] - } - }, - "/fake" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "To test enum parameters", - "description" : "To test enum parameters", - "operationId" : "testEnumParameters", - "consumes" : [ "*/*" ], - "produces" : [ "*/*" ], - "parameters" : [ { - "name" : "enum_form_string_array", - "in" : "formData", - "description" : "Form parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_form_string", - "in" : "formData", - "description" : "Form parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_header_string_array", - "in" : "header", - "description" : "Header parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_header_string", - "in" : "header", - "description" : "Header parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_string_array", - "in" : "query", - "description" : "Query parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_query_string", - "in" : "query", - "description" : "Query parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_integer", - "in" : "query", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -2 ] - }, { - "name" : "enum_query_double", - "in" : "formData", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - } ], - "responses" : { - "400" : { - "description" : "Invalid request" - }, - "404" : { - "description" : "Not found" - } - } - }, - "post" : { - "tags" : [ "fake" ], - "summary" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "description" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "operationId" : "testEndpointParameters", - "consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "parameters" : [ { - "name" : "integer", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 100, - "minimum" : 10 - }, { - "name" : "int32", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 200, - "minimum" : 20, - "format" : "int32" - }, { - "name" : "int64", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "format" : "int64" - }, { - "name" : "number", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 543.2, - "minimum" : 32.1 - }, { - "name" : "float", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "number", - "maximum" : 987.6, - "format" : "float" - }, { - "name" : "double", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 123.4, - "minimum" : 67.8, - "format" : "double" - }, { - "name" : "string", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "pattern" : "/[a-z]/i" - }, { - "name" : "pattern_without_delimiter", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "pattern" : "^[A-Z].*" - }, { - "name" : "byte", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "format" : "byte" - }, { - "name" : "binary", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "binary" - }, { - "name" : "date", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date" - }, { - "name" : "dateTime", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date-time" - }, { - "name" : "password", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "maxLength" : 64, - "minLength" : 10, - "format" : "password" - }, { - "name" : "callback", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - }, - "security" : [ { - "http_basic_test" : [ ] - } ] - }, - "patch" : { - "tags" : [ "fake" ], - "summary" : "To test \"client\" model", - "description" : "To test \"client\" model", - "operationId" : "testClientModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - }, - "/fake/outer/number" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer number types", - "operationId" : "fakeOuterNumberSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input number as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } ], - "responses" : { - "200" : { - "description" : "Output number", - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } - } - } - }, - "/fake/outer/string" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer string types", - "operationId" : "fakeOuterStringSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input string as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } ], - "responses" : { - "200" : { - "description" : "Output string", - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } - } - } - }, - "/fake/outer/boolean" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer boolean types", - "operationId" : "fakeOuterBooleanSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input boolean as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } ], - "responses" : { - "200" : { - "description" : "Output boolean", - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - } - } - }, - "/fake/outer/composite" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of object with outer number type", - "operationId" : "fakeOuterCompositeSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input composite as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } ], - "responses" : { - "200" : { - "description" : "Output composite", - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } - } - } - }, - "/fake/jsonFormData" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "test json serialization of form data", - "description" : "", - "operationId" : "testJsonFormData", - "consumes" : [ "application/json" ], - "parameters" : [ { - "name" : "param", - "in" : "formData", - "description" : "field1", - "required" : true, - "type" : "string" - }, { - "name" : "param2", - "in" : "formData", - "description" : "field2", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/fake/inline-additionalProperties" : { - "post" : { - "tags" : [ "fake" ], - "summary" : "test inline additionalProperties", - "description" : "", - "operationId" : "testInlineAdditionalProperties", - "consumes" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "param", - "description" : "request body", - "required" : true, - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/another-fake/dummy" : { - "patch" : { - "tags" : [ "$another-fake?" ], - "summary" : "To test special tags", - "description" : "To test special tags", - "operationId" : "test_special_tags", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - } - }, - "securityDefinitions" : { - "petstore_auth" : { - "type" : "oauth2", - "authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog", - "flow" : "implicit", - "scopes" : { - "write:pets" : "modify pets in your account", - "read:pets" : "read your pets" - } - }, - "api_key" : { - "type" : "apiKey", - "name" : "api_key", - "in" : "header" - }, - "api_key_query" : { - "type" : "apiKey", - "name" : "api_key_query", - "in" : "query" - }, - "http_basic_test" : { - "type" : "basic" - } - }, - "definitions" : { - "Order" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "petId" : { - "type" : "integer", - "format" : "int64" - }, - "quantity" : { - "type" : "integer", - "format" : "int32" - }, - "shipDate" : { - "type" : "string", - "format" : "date-time" - }, - "status" : { - "type" : "string", - "description" : "Order Status", - "enum" : [ "placed", "approved", "delivered" ] - }, - "complete" : { - "type" : "boolean", - "default" : false - } - }, - "xml" : { - "name" : "Order" - } - }, - "Category" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Category" - } - }, - "User" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "username" : { - "type" : "string" - }, - "firstName" : { - "type" : "string" - }, - "lastName" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "password" : { - "type" : "string" - }, - "phone" : { - "type" : "string" - }, - "userStatus" : { - "type" : "integer", - "format" : "int32", - "description" : "User Status" - } - }, - "xml" : { - "name" : "User" - } - }, - "Tag" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Tag" - } - }, - "Pet" : { - "type" : "object", - "required" : [ "name", "photoUrls" ], - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "category" : { - "$ref" : "#/definitions/Category" - }, - "name" : { - "type" : "string", - "example" : "doggie" - }, - "photoUrls" : { - "type" : "array", - "xml" : { - "name" : "photoUrl", - "wrapped" : true - }, - "items" : { - "type" : "string" - } - }, - "tags" : { - "type" : "array", - "xml" : { - "name" : "tag", - "wrapped" : true - }, - "items" : { - "$ref" : "#/definitions/Tag" - } - }, - "status" : { - "type" : "string", - "description" : "pet status in the store", - "enum" : [ "available", "pending", "sold" ] - } - }, - "xml" : { - "name" : "Pet" - } - }, - "ApiResponse" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "integer", - "format" : "int32" - }, - "type" : { - "type" : "string" - }, - "message" : { - "type" : "string" - } - } - }, - "$special[model.name]" : { - "properties" : { - "$special[property.name]" : { - "type" : "integer", - "format" : "int64" - } - }, - "xml" : { - "name" : "$special[model.name]" - } - }, - "Return" : { - "properties" : { - "return" : { - "type" : "integer", - "format" : "int32" - } - }, - "description" : "Model for testing reserved words", - "xml" : { - "name" : "Return" - } - }, - "Name" : { - "required" : [ "name" ], - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "snake_case" : { - "type" : "integer", - "format" : "int32", - "readOnly" : true - }, - "property" : { - "type" : "string" - }, - "123Number" : { - "type" : "integer", - "readOnly" : true - } - }, - "description" : "Model for testing model name same as property name", - "xml" : { - "name" : "Name" - } - }, - "200_response" : { - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "class" : { - "type" : "string" - } - }, - "description" : "Model for testing model name starting with number", - "xml" : { - "name" : "Name" - } - }, - "ClassModel" : { - "properties" : { - "_class" : { - "type" : "string" - } - }, - "description" : "Model for testing model with \"_class\" property" - }, - "Dog" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "breed" : { - "type" : "string" - } - } - } ] - }, - "Cat" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "declawed" : { - "type" : "boolean" - } - } - } ] - }, - "Animal" : { - "type" : "object", - "required" : [ "className" ], - "discriminator" : "className", - "properties" : { - "className" : { - "type" : "string" - }, - "color" : { - "type" : "string", - "default" : "red" - } - } - }, - "AnimalFarm" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Animal" - } - }, - "format_test" : { - "type" : "object", - "required" : [ "byte", "date", "number", "password" ], - "properties" : { - "integer" : { - "type" : "integer", - "minimum" : 10, - "maximum" : 100 - }, - "int32" : { - "type" : "integer", - "format" : "int32", - "minimum" : 20, - "maximum" : 200 - }, - "int64" : { - "type" : "integer", - "format" : "int64" - }, - "number" : { - "type" : "number", - "minimum" : 32.1, - "maximum" : 543.2 - }, - "float" : { - "type" : "number", - "format" : "float", - "minimum" : 54.3, - "maximum" : 987.6 - }, - "double" : { - "type" : "number", - "format" : "double", - "minimum" : 67.8, - "maximum" : 123.4 - }, - "string" : { - "type" : "string", - "pattern" : "/[a-z]/i" - }, - "byte" : { - "type" : "string", - "format" : "byte", - "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - }, - "binary" : { - "type" : "string", - "format" : "binary" - }, - "date" : { - "type" : "string", - "format" : "date" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "password" : { - "type" : "string", - "format" : "password", - "minLength" : 10, - "maxLength" : 64 - } - } - }, - "EnumClass" : { - "type" : "string", - "enum" : [ "_abc", "-efg", "(xyz)" ], - "default" : "-efg" - }, - "Enum_Test" : { - "type" : "object", - "properties" : { - "enum_string" : { - "type" : "string", - "enum" : [ "UPPER", "lower", "" ] - }, - "enum_integer" : { - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -1 ] - }, - "enum_number" : { - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - }, - "outerEnum" : { - "$ref" : "#/definitions/OuterEnum" - } - } - }, - "AdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - }, - "map_of_map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } - } - }, - "MixedPropertiesAndAdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "map" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/definitions/Animal" - } - } - } - }, - "List" : { - "type" : "object", - "properties" : { - "123-list" : { - "type" : "string" - } - } - }, - "Client" : { - "type" : "object", - "properties" : { - "client" : { - "type" : "string" - } - } - }, - "ReadOnlyFirst" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "baz" : { - "type" : "string" - } - } - }, - "hasOnlyReadOnly" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "foo" : { - "type" : "string", - "readOnly" : true - } - } - }, - "Capitalization" : { - "type" : "object", - "properties" : { - "smallCamel" : { - "type" : "string" - }, - "CapitalCamel" : { - "type" : "string" - }, - "small_Snake" : { - "type" : "string" - }, - "Capital_Snake" : { - "type" : "string" - }, - "SCA_ETH_Flow_Points" : { - "type" : "string" - }, - "ATT_NAME" : { - "type" : "string", - "description" : "Name of the pet\n" - } - } - }, - "MapTest" : { - "type" : "object", - "properties" : { - "map_map_of_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - }, - "map_of_enum_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "string", - "enum" : [ "UPPER", "lower" ] - } - } - } - }, - "ArrayTest" : { - "type" : "object", - "properties" : { - "array_of_string" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "array_array_of_integer" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "array_array_of_model" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReadOnlyFirst" - } - } - } - } - }, - "NumberOnly" : { - "type" : "object", - "properties" : { - "JustNumber" : { - "type" : "number" - } - } - }, - "ArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayNumber" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - }, - "ArrayOfArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayArrayNumber" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - } - }, - "EnumArrays" : { - "type" : "object", - "properties" : { - "just_symbol" : { - "type" : "string", - "enum" : [ ">=", "$" ] - }, - "array_enum" : { - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ "fish", "crab" ] - } - } - } - }, - "OuterEnum" : { - "type" : "string", - "enum" : [ "placed", "approved", "delivered" ] - }, - "OuterComposite" : { - "type" : "object", - "properties" : { - "my_number" : { - "$ref" : "#/definitions/OuterNumber" - }, - "my_string" : { - "$ref" : "#/definitions/OuterString" - }, - "my_boolean" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - }, - "OuterNumber" : { - "type" : "number" - }, - "OuterString" : { - "type" : "string" - }, - "OuterBoolean" : { - "type" : "boolean" - } - }, - "externalDocs" : { - "description" : "Find out more about Swagger", - "url" : "http://swagger.io" - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-spec-interface/.openapi-generator-ignore b/samples/server/petstore/jaxrs-spec-interface/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/server/petstore/jaxrs-spec-interface/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-spec-interface/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Model200Response.java index eeb8e7547c..ba850beb82 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Model200Response.java @@ -62,9 +62,9 @@ public class Model200Response implements Serializable { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(name, _200Response.name) && - Objects.equals(propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(name, _200response.name) && + Objects.equals(propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Name.java index 5460ff8a9b..1d1c38c1ba 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/Name.java @@ -19,7 +19,7 @@ public class Name implements Serializable { private @Valid Integer name = null; private @Valid Integer snakeCase = null; private @Valid String property = null; - private @Valid Integer _123Number = null; + private @Valid Integer _123number = null; /** **/ @@ -75,19 +75,19 @@ public class Name implements Serializable { /** **/ - public Name _123Number(Integer _123Number) { - this._123Number = _123Number; + public Name _123number(Integer _123number) { + this._123number = _123number; return this; } @ApiModelProperty(value = "") @JsonProperty("123Number") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } - public void set123Number(Integer _123Number) { - this._123Number = _123Number; + public void set123number(Integer _123number) { + this._123number = _123number; } @@ -103,12 +103,12 @@ public class Name implements Serializable { return Objects.equals(name, name.name) && Objects.equals(snakeCase, name.snakeCase) && Objects.equals(property, name.property) && - Objects.equals(_123Number, name._123Number); + Objects.equals(_123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @Override @@ -119,7 +119,7 @@ public class Name implements Serializable { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/SpecialModelName.java index b8144314b8..9964a58665 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/io/swagger/model/SpecialModelName.java @@ -12,23 +12,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; public class SpecialModelName implements Serializable { - private @Valid Long specialPropertyName = null; + private @Valid Long $specialPropertyName = null; /** **/ - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -40,13 +40,13 @@ public class SpecialModelName implements Serializable { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals($specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @Override @@ -54,7 +54,7 @@ public class SpecialModelName implements Serializable { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-spec-interface/swagger.json b/samples/server/petstore/jaxrs-spec-interface/swagger.json deleted file mode 100644 index 26eef9f958..0000000000 --- a/samples/server/petstore/jaxrs-spec-interface/swagger.json +++ /dev/null @@ -1,1719 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\", - "version" : "1.0.0", - "title" : "Swagger Petstore", - "termsOfService" : "http://swagger.io/terms/", - "contact" : { - "email" : "apiteam@swagger.io" - }, - "license" : { - "name" : "Apache-2.0", - "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host" : "petstore.swagger.io:80", - "basePath" : "/v2", - "tags" : [ { - "name" : "pet", - "description" : "Everything about your Pets", - "externalDocs" : { - "description" : "Find out more", - "url" : "http://swagger.io" - } - }, { - "name" : "store", - "description" : "Access to Petstore orders" - }, { - "name" : "user", - "description" : "Operations about user", - "externalDocs" : { - "description" : "Find out more about our store", - "url" : "http://swagger.io" - } - } ], - "schemes" : [ "http" ], - "paths" : { - "/pet" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "Add a new pet to the store", - "description" : "", - "operationId" : "addPet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "put" : { - "tags" : [ "pet" ], - "summary" : "Update an existing pet", - "description" : "", - "operationId" : "updatePet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - }, - "405" : { - "description" : "Validation exception" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByStatus" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by status", - "description" : "Multiple status values can be provided with comma separated strings", - "operationId" : "findPetsByStatus", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "status", - "in" : "query", - "description" : "Status values that need to be considered for filter", - "required" : true, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ "available", "pending", "sold" ], - "default" : "available" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid status value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByTags" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by tags", - "description" : "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "operationId" : "findPetsByTags", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "tags", - "in" : "query", - "description" : "Tags to filter by", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid tag value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ], - "deprecated" : true - } - }, - "/pet/{petId}" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Find pet by ID", - "description" : "Returns a single pet", - "operationId" : "getPetById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to return", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Pet" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - } - }, - "security" : [ { - "api_key" : [ ] - } ] - }, - "post" : { - "tags" : [ "pet" ], - "summary" : "Updates a pet in the store with form data", - "description" : "", - "operationId" : "updatePetWithForm", - "consumes" : [ "application/x-www-form-urlencoded" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet that needs to be updated", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "name", - "in" : "formData", - "description" : "Updated name of the pet", - "required" : false, - "type" : "string" - }, { - "name" : "status", - "in" : "formData", - "description" : "Updated status of the pet", - "required" : false, - "type" : "string" - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "delete" : { - "tags" : [ "pet" ], - "summary" : "Deletes a pet", - "description" : "", - "operationId" : "deletePet", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "api_key", - "in" : "header", - "required" : false, - "type" : "string" - }, { - "name" : "petId", - "in" : "path", - "description" : "Pet id to delete", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "400" : { - "description" : "Invalid pet value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/{petId}/uploadImage" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "uploads an image", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to update", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "additionalMetadata", - "in" : "formData", - "description" : "Additional data to pass to server", - "required" : false, - "type" : "string" - }, { - "name" : "file", - "in" : "formData", - "description" : "file to upload", - "required" : false, - "type" : "file" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ApiResponse" - } - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/store/inventory" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Returns pet inventories by status", - "description" : "Returns a map of status codes to quantities", - "operationId" : "getInventory", - "produces" : [ "application/json" ], - "parameters" : [ ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "integer", - "format" : "int32" - } - } - } - }, - "security" : [ { - "api_key" : [ ] - } ] - } - }, - "/store/order" : { - "post" : { - "tags" : [ "store" ], - "summary" : "Place an order for a pet", - "description" : "", - "operationId" : "placeOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "order placed for purchasing the pet", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Order" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid Order" - } - } - } - }, - "/store/order/{order_id}" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Find purchase order by ID", - "description" : "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId" : "getOrderById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of pet that needs to be fetched", - "required" : true, - "type" : "integer", - "maximum" : 5, - "minimum" : 1, - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - }, - "delete" : { - "tags" : [ "store" ], - "summary" : "Delete purchase order by ID", - "description" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId" : "deleteOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of the order that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - } - }, - "/user" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Create user", - "description" : "This can only be done by the logged in user.", - "operationId" : "createUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Created user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithArray" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithArrayInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithList" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithListInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/login" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs user into the system", - "description" : "", - "operationId" : "loginUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "query", - "description" : "The user name for login", - "required" : true, - "type" : "string" - }, { - "name" : "password", - "in" : "query", - "description" : "The password for login in clear text", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - }, - "headers" : { - "X-Rate-Limit" : { - "type" : "integer", - "format" : "int32", - "description" : "calls per hour allowed by the user" - }, - "X-Expires-After" : { - "type" : "string", - "format" : "date-time", - "description" : "date in UTC when toekn expires" - } - } - }, - "400" : { - "description" : "Invalid username/password supplied" - } - } - } - }, - "/user/logout" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs out current logged in user session", - "description" : "", - "operationId" : "logoutUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/{username}" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Get user by user name", - "description" : "", - "operationId" : "getUserByName", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be fetched. Use user1 for testing. ", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/User" - } - }, - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "put" : { - "tags" : [ "user" ], - "summary" : "Updated user", - "description" : "This can only be done by the logged in user.", - "operationId" : "updateUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "name that need to be deleted", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "description" : "Updated user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid user supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "delete" : { - "tags" : [ "user" ], - "summary" : "Delete user", - "description" : "This can only be done by the logged in user.", - "operationId" : "deleteUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - } - }, - "/fake_classname_test" : { - "patch" : { - "tags" : [ "fake_classname_tags 123#$%^" ], - "summary" : "To test class name in snake case", - "operationId" : "testClassname", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - }, - "security" : [ { - "api_key_query" : [ ] - } ] - } - }, - "/fake" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "To test enum parameters", - "description" : "To test enum parameters", - "operationId" : "testEnumParameters", - "consumes" : [ "*/*" ], - "produces" : [ "*/*" ], - "parameters" : [ { - "name" : "enum_form_string_array", - "in" : "formData", - "description" : "Form parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_form_string", - "in" : "formData", - "description" : "Form parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_header_string_array", - "in" : "header", - "description" : "Header parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_header_string", - "in" : "header", - "description" : "Header parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_string_array", - "in" : "query", - "description" : "Query parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ ">", "$" ], - "default" : "$" - } - }, { - "name" : "enum_query_string", - "in" : "query", - "description" : "Query parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_integer", - "in" : "query", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -2 ] - }, { - "name" : "enum_query_double", - "in" : "formData", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - } ], - "responses" : { - "400" : { - "description" : "Invalid request" - }, - "404" : { - "description" : "Not found" - } - } - }, - "post" : { - "tags" : [ "fake" ], - "summary" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "description" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "operationId" : "testEndpointParameters", - "consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "parameters" : [ { - "name" : "integer", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 100, - "minimum" : 10 - }, { - "name" : "int32", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 200, - "minimum" : 20, - "format" : "int32" - }, { - "name" : "int64", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "format" : "int64" - }, { - "name" : "number", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 543.2, - "minimum" : 32.1 - }, { - "name" : "float", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "number", - "maximum" : 987.6, - "format" : "float" - }, { - "name" : "double", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 123.4, - "minimum" : 67.8, - "format" : "double" - }, { - "name" : "string", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "pattern" : "/[a-z]/i" - }, { - "name" : "pattern_without_delimiter", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "pattern" : "^[A-Z].*" - }, { - "name" : "byte", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "format" : "byte" - }, { - "name" : "binary", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "binary" - }, { - "name" : "date", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date" - }, { - "name" : "dateTime", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date-time" - }, { - "name" : "password", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "maxLength" : 64, - "minLength" : 10, - "format" : "password" - }, { - "name" : "callback", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - }, - "security" : [ { - "http_basic_test" : [ ] - } ] - }, - "patch" : { - "tags" : [ "fake" ], - "summary" : "To test \"client\" model", - "description" : "To test \"client\" model", - "operationId" : "testClientModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - }, - "/fake/outer/number" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer number types", - "operationId" : "fakeOuterNumberSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input number as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } ], - "responses" : { - "200" : { - "description" : "Output number", - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } - } - } - }, - "/fake/outer/string" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer string types", - "operationId" : "fakeOuterStringSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input string as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } ], - "responses" : { - "200" : { - "description" : "Output string", - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } - } - } - }, - "/fake/outer/boolean" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer boolean types", - "operationId" : "fakeOuterBooleanSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input boolean as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } ], - "responses" : { - "200" : { - "description" : "Output boolean", - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - } - } - }, - "/fake/outer/composite" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of object with outer number type", - "operationId" : "fakeOuterCompositeSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input composite as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } ], - "responses" : { - "200" : { - "description" : "Output composite", - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } - } - } - }, - "/fake/jsonFormData" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "test json serialization of form data", - "description" : "", - "operationId" : "testJsonFormData", - "consumes" : [ "application/json" ], - "parameters" : [ { - "name" : "param", - "in" : "formData", - "description" : "field1", - "required" : true, - "type" : "string" - }, { - "name" : "param2", - "in" : "formData", - "description" : "field2", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/fake/inline-additionalProperties" : { - "post" : { - "tags" : [ "fake" ], - "summary" : "test inline additionalProperties", - "description" : "", - "operationId" : "testInlineAdditionalProperties", - "consumes" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "param", - "description" : "request body", - "required" : true, - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/another-fake/dummy" : { - "patch" : { - "tags" : [ "$another-fake?" ], - "summary" : "To test special tags", - "description" : "To test special tags", - "operationId" : "test_special_tags", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - } - }, - "securityDefinitions" : { - "petstore_auth" : { - "type" : "oauth2", - "authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog", - "flow" : "implicit", - "scopes" : { - "write:pets" : "modify pets in your account", - "read:pets" : "read your pets" - } - }, - "api_key" : { - "type" : "apiKey", - "name" : "api_key", - "in" : "header" - }, - "api_key_query" : { - "type" : "apiKey", - "name" : "api_key_query", - "in" : "query" - }, - "http_basic_test" : { - "type" : "basic" - } - }, - "definitions" : { - "Order" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "petId" : { - "type" : "integer", - "format" : "int64" - }, - "quantity" : { - "type" : "integer", - "format" : "int32" - }, - "shipDate" : { - "type" : "string", - "format" : "date-time" - }, - "status" : { - "type" : "string", - "description" : "Order Status", - "enum" : [ "placed", "approved", "delivered" ] - }, - "complete" : { - "type" : "boolean", - "default" : false - } - }, - "xml" : { - "name" : "Order" - } - }, - "Category" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Category" - } - }, - "User" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "username" : { - "type" : "string" - }, - "firstName" : { - "type" : "string" - }, - "lastName" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "password" : { - "type" : "string" - }, - "phone" : { - "type" : "string" - }, - "userStatus" : { - "type" : "integer", - "format" : "int32", - "description" : "User Status" - } - }, - "xml" : { - "name" : "User" - } - }, - "Tag" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Tag" - } - }, - "Pet" : { - "type" : "object", - "required" : [ "name", "photoUrls" ], - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "category" : { - "$ref" : "#/definitions/Category" - }, - "name" : { - "type" : "string", - "example" : "doggie" - }, - "photoUrls" : { - "type" : "array", - "xml" : { - "name" : "photoUrl", - "wrapped" : true - }, - "items" : { - "type" : "string" - } - }, - "tags" : { - "type" : "array", - "xml" : { - "name" : "tag", - "wrapped" : true - }, - "items" : { - "$ref" : "#/definitions/Tag" - } - }, - "status" : { - "type" : "string", - "description" : "pet status in the store", - "enum" : [ "available", "pending", "sold" ] - } - }, - "xml" : { - "name" : "Pet" - } - }, - "ApiResponse" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "integer", - "format" : "int32" - }, - "type" : { - "type" : "string" - }, - "message" : { - "type" : "string" - } - } - }, - "$special[model.name]" : { - "properties" : { - "$special[property.name]" : { - "type" : "integer", - "format" : "int64" - } - }, - "xml" : { - "name" : "$special[model.name]" - } - }, - "Return" : { - "properties" : { - "return" : { - "type" : "integer", - "format" : "int32" - } - }, - "description" : "Model for testing reserved words", - "xml" : { - "name" : "Return" - } - }, - "Name" : { - "required" : [ "name" ], - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "snake_case" : { - "type" : "integer", - "format" : "int32", - "readOnly" : true - }, - "property" : { - "type" : "string" - }, - "123Number" : { - "type" : "integer", - "readOnly" : true - } - }, - "description" : "Model for testing model name same as property name", - "xml" : { - "name" : "Name" - } - }, - "200_response" : { - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "class" : { - "type" : "string" - } - }, - "description" : "Model for testing model name starting with number", - "xml" : { - "name" : "Name" - } - }, - "ClassModel" : { - "properties" : { - "_class" : { - "type" : "string" - } - }, - "description" : "Model for testing model with \"_class\" property" - }, - "Dog" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "breed" : { - "type" : "string" - } - } - } ] - }, - "Cat" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "declawed" : { - "type" : "boolean" - } - } - } ] - }, - "Animal" : { - "type" : "object", - "required" : [ "className" ], - "discriminator" : "className", - "properties" : { - "className" : { - "type" : "string" - }, - "color" : { - "type" : "string", - "default" : "red" - } - } - }, - "AnimalFarm" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Animal" - } - }, - "format_test" : { - "type" : "object", - "required" : [ "byte", "date", "number", "password" ], - "properties" : { - "integer" : { - "type" : "integer", - "minimum" : 10, - "maximum" : 100 - }, - "int32" : { - "type" : "integer", - "format" : "int32", - "minimum" : 20, - "maximum" : 200 - }, - "int64" : { - "type" : "integer", - "format" : "int64" - }, - "number" : { - "type" : "number", - "minimum" : 32.1, - "maximum" : 543.2 - }, - "float" : { - "type" : "number", - "format" : "float", - "minimum" : 54.3, - "maximum" : 987.6 - }, - "double" : { - "type" : "number", - "format" : "double", - "minimum" : 67.8, - "maximum" : 123.4 - }, - "string" : { - "type" : "string", - "pattern" : "/[a-z]/i" - }, - "byte" : { - "type" : "string", - "format" : "byte", - "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - }, - "binary" : { - "type" : "string", - "format" : "binary" - }, - "date" : { - "type" : "string", - "format" : "date" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "password" : { - "type" : "string", - "format" : "password", - "minLength" : 10, - "maxLength" : 64 - } - } - }, - "EnumClass" : { - "type" : "string", - "enum" : [ "_abc", "-efg", "(xyz)" ], - "default" : "-efg" - }, - "Enum_Test" : { - "type" : "object", - "properties" : { - "enum_string" : { - "type" : "string", - "enum" : [ "UPPER", "lower", "" ] - }, - "enum_integer" : { - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -1 ] - }, - "enum_number" : { - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - }, - "outerEnum" : { - "$ref" : "#/definitions/OuterEnum" - } - } - }, - "AdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - }, - "map_of_map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } - } - }, - "MixedPropertiesAndAdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "map" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/definitions/Animal" - } - } - } - }, - "List" : { - "type" : "object", - "properties" : { - "123-list" : { - "type" : "string" - } - } - }, - "Client" : { - "type" : "object", - "properties" : { - "client" : { - "type" : "string" - } - } - }, - "ReadOnlyFirst" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "baz" : { - "type" : "string" - } - } - }, - "hasOnlyReadOnly" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "foo" : { - "type" : "string", - "readOnly" : true - } - } - }, - "Capitalization" : { - "type" : "object", - "properties" : { - "smallCamel" : { - "type" : "string" - }, - "CapitalCamel" : { - "type" : "string" - }, - "small_Snake" : { - "type" : "string" - }, - "Capital_Snake" : { - "type" : "string" - }, - "SCA_ETH_Flow_Points" : { - "type" : "string" - }, - "ATT_NAME" : { - "type" : "string", - "description" : "Name of the pet\n" - } - } - }, - "MapTest" : { - "type" : "object", - "properties" : { - "map_map_of_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - }, - "map_of_enum_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "string", - "enum" : [ "UPPER", "lower" ] - } - } - } - }, - "ArrayTest" : { - "type" : "object", - "properties" : { - "array_of_string" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "array_array_of_integer" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "array_array_of_model" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReadOnlyFirst" - } - } - } - } - }, - "NumberOnly" : { - "type" : "object", - "properties" : { - "JustNumber" : { - "type" : "number" - } - } - }, - "ArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayNumber" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - }, - "ArrayOfArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayArrayNumber" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - } - }, - "EnumArrays" : { - "type" : "object", - "properties" : { - "just_symbol" : { - "type" : "string", - "enum" : [ ">=", "$" ] - }, - "array_enum" : { - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ "fish", "crab" ] - } - } - } - }, - "OuterEnum" : { - "type" : "string", - "enum" : [ "placed", "approved", "delivered" ] - }, - "OuterComposite" : { - "type" : "object", - "properties" : { - "my_number" : { - "$ref" : "#/definitions/OuterNumber" - }, - "my_string" : { - "$ref" : "#/definitions/OuterString" - }, - "my_boolean" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - }, - "OuterNumber" : { - "type" : "number" - }, - "OuterString" : { - "type" : "string" - }, - "OuterBoolean" : { - "type" : "boolean" - } - }, - "externalDocs" : { - "description" : "Find out more about Swagger", - "url" : "http://swagger.io" - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-spec/.openapi-generator-ignore b/samples/server/petstore/jaxrs-spec/.openapi-generator-ignore index c5fa491b4c..6fa32398dc 100644 --- a/samples/server/petstore/jaxrs-spec/.openapi-generator-ignore +++ b/samples/server/petstore/jaxrs-spec/.openapi-generator-ignore @@ -1,5 +1,5 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# Openapi Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/api/RestApplication.java index 56e801bbf5..2561172aea 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/api/RestApplication.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/api/RestApplication.java @@ -5,5 +5,5 @@ import javax.ws.rs.core.Application; @ApplicationPath("/") public class RestApplication extends Application { - -} \ No newline at end of file + +} diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Model200Response.java index eeb8e7547c..ba850beb82 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Model200Response.java @@ -62,9 +62,9 @@ public class Model200Response implements Serializable { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(name, _200Response.name) && - Objects.equals(propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(name, _200response.name) && + Objects.equals(propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Name.java index 5460ff8a9b..1d1c38c1ba 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/Name.java @@ -19,7 +19,7 @@ public class Name implements Serializable { private @Valid Integer name = null; private @Valid Integer snakeCase = null; private @Valid String property = null; - private @Valid Integer _123Number = null; + private @Valid Integer _123number = null; /** **/ @@ -75,19 +75,19 @@ public class Name implements Serializable { /** **/ - public Name _123Number(Integer _123Number) { - this._123Number = _123Number; + public Name _123number(Integer _123number) { + this._123number = _123number; return this; } @ApiModelProperty(value = "") @JsonProperty("123Number") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } - public void set123Number(Integer _123Number) { - this._123Number = _123Number; + public void set123number(Integer _123number) { + this._123number = _123number; } @@ -103,12 +103,12 @@ public class Name implements Serializable { return Objects.equals(name, name.name) && Objects.equals(snakeCase, name.snakeCase) && Objects.equals(property, name.property) && - Objects.equals(_123Number, name._123Number); + Objects.equals(_123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @Override @@ -119,7 +119,7 @@ public class Name implements Serializable { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/SpecialModelName.java index b8144314b8..9964a58665 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/io/swagger/model/SpecialModelName.java @@ -12,23 +12,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; public class SpecialModelName implements Serializable { - private @Valid Long specialPropertyName = null; + private @Valid Long $specialPropertyName = null; /** **/ - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -40,13 +40,13 @@ public class SpecialModelName implements Serializable { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals($specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @Override @@ -54,7 +54,7 @@ public class SpecialModelName implements Serializable { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs-spec/swagger.json b/samples/server/petstore/jaxrs-spec/swagger.json deleted file mode 100644 index 318ac581fc..0000000000 --- a/samples/server/petstore/jaxrs-spec/swagger.json +++ /dev/null @@ -1,1719 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\", - "version" : "1.0.0", - "title" : "Swagger Petstore", - "termsOfService" : "http://swagger.io/terms/", - "contact" : { - "email" : "apiteam@swagger.io" - }, - "license" : { - "name" : "Apache-2.0", - "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host" : "petstore.swagger.io:80", - "basePath" : "/v2", - "tags" : [ { - "name" : "pet", - "description" : "Everything about your Pets", - "externalDocs" : { - "description" : "Find out more", - "url" : "http://swagger.io" - } - }, { - "name" : "store", - "description" : "Access to Petstore orders" - }, { - "name" : "user", - "description" : "Operations about user", - "externalDocs" : { - "description" : "Find out more about our store", - "url" : "http://swagger.io" - } - } ], - "schemes" : [ "http" ], - "paths" : { - "/pet" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "Add a new pet to the store", - "description" : "", - "operationId" : "addPet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "put" : { - "tags" : [ "pet" ], - "summary" : "Update an existing pet", - "description" : "", - "operationId" : "updatePet", - "consumes" : [ "application/json", "application/xml" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Pet object that needs to be added to the store", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Pet" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - }, - "405" : { - "description" : "Validation exception" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByStatus" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by status", - "description" : "Multiple status values can be provided with comma separated strings", - "operationId" : "findPetsByStatus", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "status", - "in" : "query", - "description" : "Status values that need to be considered for filter", - "required" : true, - "type" : "array", - "items" : { - "type" : "string", - "default" : "available", - "enum" : [ "available", "pending", "sold" ] - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid status value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/findByTags" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Finds Pets by tags", - "description" : "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "operationId" : "findPetsByTags", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "tags", - "in" : "query", - "description" : "Tags to filter by", - "required" : true, - "type" : "array", - "items" : { - "type" : "string" - }, - "collectionFormat" : "csv" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Pet" - } - } - }, - "400" : { - "description" : "Invalid tag value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ], - "deprecated" : true - } - }, - "/pet/{petId}" : { - "get" : { - "tags" : [ "pet" ], - "summary" : "Find pet by ID", - "description" : "Returns a single pet", - "operationId" : "getPetById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to return", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Pet" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Pet not found" - } - }, - "security" : [ { - "api_key" : [ ] - } ] - }, - "post" : { - "tags" : [ "pet" ], - "summary" : "Updates a pet in the store with form data", - "description" : "", - "operationId" : "updatePetWithForm", - "consumes" : [ "application/x-www-form-urlencoded" ], - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet that needs to be updated", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "name", - "in" : "formData", - "description" : "Updated name of the pet", - "required" : false, - "type" : "string" - }, { - "name" : "status", - "in" : "formData", - "description" : "Updated status of the pet", - "required" : false, - "type" : "string" - } ], - "responses" : { - "405" : { - "description" : "Invalid input" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - }, - "delete" : { - "tags" : [ "pet" ], - "summary" : "Deletes a pet", - "description" : "", - "operationId" : "deletePet", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "api_key", - "in" : "header", - "required" : false, - "type" : "string" - }, { - "name" : "petId", - "in" : "path", - "description" : "Pet id to delete", - "required" : true, - "type" : "integer", - "format" : "int64" - } ], - "responses" : { - "400" : { - "description" : "Invalid pet value" - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/pet/{petId}/uploadImage" : { - "post" : { - "tags" : [ "pet" ], - "summary" : "uploads an image", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "petId", - "in" : "path", - "description" : "ID of pet to update", - "required" : true, - "type" : "integer", - "format" : "int64" - }, { - "name" : "additionalMetadata", - "in" : "formData", - "description" : "Additional data to pass to server", - "required" : false, - "type" : "string" - }, { - "name" : "file", - "in" : "formData", - "description" : "file to upload", - "required" : false, - "type" : "file" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ApiResponse" - } - } - }, - "security" : [ { - "petstore_auth" : [ "write:pets", "read:pets" ] - } ] - } - }, - "/store/inventory" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Returns pet inventories by status", - "description" : "Returns a map of status codes to quantities", - "operationId" : "getInventory", - "produces" : [ "application/json" ], - "parameters" : [ ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "integer", - "format" : "int32" - } - } - } - }, - "security" : [ { - "api_key" : [ ] - } ] - } - }, - "/store/order" : { - "post" : { - "tags" : [ "store" ], - "summary" : "Place an order for a pet", - "description" : "", - "operationId" : "placeOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "order placed for purchasing the pet", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Order" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid Order" - } - } - } - }, - "/store/order/{order_id}" : { - "get" : { - "tags" : [ "store" ], - "summary" : "Find purchase order by ID", - "description" : "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId" : "getOrderById", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of pet that needs to be fetched", - "required" : true, - "type" : "integer", - "maximum" : 5, - "minimum" : 1, - "format" : "int64" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Order" - } - }, - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - }, - "delete" : { - "tags" : [ "store" ], - "summary" : "Delete purchase order by ID", - "description" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId" : "deleteOrder", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "order_id", - "in" : "path", - "description" : "ID of the order that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid ID supplied" - }, - "404" : { - "description" : "Order not found" - } - } - } - }, - "/user" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Create user", - "description" : "This can only be done by the logged in user.", - "operationId" : "createUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Created user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithArray" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithArrayInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/createWithList" : { - "post" : { - "tags" : [ "user" ], - "summary" : "Creates list of users with given input array", - "description" : "", - "operationId" : "createUsersWithListInput", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "List of user object", - "required" : true, - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/User" - } - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/login" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs user into the system", - "description" : "", - "operationId" : "loginUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "query", - "description" : "The user name for login", - "required" : true, - "type" : "string" - }, { - "name" : "password", - "in" : "query", - "description" : "The password for login in clear text", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - }, - "headers" : { - "X-Rate-Limit" : { - "type" : "integer", - "format" : "int32", - "description" : "calls per hour allowed by the user" - }, - "X-Expires-After" : { - "type" : "string", - "format" : "date-time", - "description" : "date in UTC when toekn expires" - } - } - }, - "400" : { - "description" : "Invalid username/password supplied" - } - } - } - }, - "/user/logout" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Logs out current logged in user session", - "description" : "", - "operationId" : "logoutUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/user/{username}" : { - "get" : { - "tags" : [ "user" ], - "summary" : "Get user by user name", - "description" : "", - "operationId" : "getUserByName", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be fetched. Use user1 for testing. ", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/User" - } - }, - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "put" : { - "tags" : [ "user" ], - "summary" : "Updated user", - "description" : "This can only be done by the logged in user.", - "operationId" : "updateUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "name that need to be deleted", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "description" : "Updated user object", - "required" : true, - "schema" : { - "$ref" : "#/definitions/User" - } - } ], - "responses" : { - "400" : { - "description" : "Invalid user supplied" - }, - "404" : { - "description" : "User not found" - } - } - }, - "delete" : { - "tags" : [ "user" ], - "summary" : "Delete user", - "description" : "This can only be done by the logged in user.", - "operationId" : "deleteUser", - "produces" : [ "application/xml", "application/json" ], - "parameters" : [ { - "name" : "username", - "in" : "path", - "description" : "The name that needs to be deleted", - "required" : true, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - } - } - }, - "/fake_classname_test" : { - "patch" : { - "tags" : [ "fake_classname_tags 123#$%^" ], - "summary" : "To test class name in snake case", - "operationId" : "testClassname", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - }, - "security" : [ { - "api_key_query" : [ ] - } ] - } - }, - "/fake" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "To test enum parameters", - "description" : "To test enum parameters", - "operationId" : "testEnumParameters", - "consumes" : [ "*/*" ], - "produces" : [ "*/*" ], - "parameters" : [ { - "name" : "enum_form_string_array", - "in" : "formData", - "description" : "Form parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "default" : "$", - "enum" : [ ">", "$" ] - } - }, { - "name" : "enum_form_string", - "in" : "formData", - "description" : "Form parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_header_string_array", - "in" : "header", - "description" : "Header parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "default" : "$", - "enum" : [ ">", "$" ] - } - }, { - "name" : "enum_header_string", - "in" : "header", - "description" : "Header parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_string_array", - "in" : "query", - "description" : "Query parameter enum test (string array)", - "required" : false, - "type" : "array", - "items" : { - "type" : "string", - "default" : "$", - "enum" : [ ">", "$" ] - } - }, { - "name" : "enum_query_string", - "in" : "query", - "description" : "Query parameter enum test (string)", - "required" : false, - "type" : "string", - "default" : "-efg", - "enum" : [ "_abc", "-efg", "(xyz)" ] - }, { - "name" : "enum_query_integer", - "in" : "query", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -2 ] - }, { - "name" : "enum_query_double", - "in" : "formData", - "description" : "Query parameter enum test (double)", - "required" : false, - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - } ], - "responses" : { - "400" : { - "description" : "Invalid request" - }, - "404" : { - "description" : "Not found" - } - } - }, - "post" : { - "tags" : [ "fake" ], - "summary" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "description" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n", - "operationId" : "testEndpointParameters", - "consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], - "parameters" : [ { - "name" : "integer", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 100, - "minimum" : 10 - }, { - "name" : "int32", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "maximum" : 200, - "minimum" : 20, - "format" : "int32" - }, { - "name" : "int64", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "integer", - "format" : "int64" - }, { - "name" : "number", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 543.2, - "minimum" : 32.1 - }, { - "name" : "float", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "number", - "maximum" : 987.6, - "format" : "float" - }, { - "name" : "double", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "number", - "maximum" : 123.4, - "minimum" : 67.8, - "format" : "double" - }, { - "name" : "string", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "pattern" : "/[a-z]/i" - }, { - "name" : "pattern_without_delimiter", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "pattern" : "^[A-Z].*" - }, { - "name" : "byte", - "in" : "formData", - "description" : "None", - "required" : true, - "type" : "string", - "format" : "byte" - }, { - "name" : "binary", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "binary" - }, { - "name" : "date", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date" - }, { - "name" : "dateTime", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "format" : "date-time" - }, { - "name" : "password", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string", - "maxLength" : 64, - "minLength" : 10, - "format" : "password" - }, { - "name" : "callback", - "in" : "formData", - "description" : "None", - "required" : false, - "type" : "string" - } ], - "responses" : { - "400" : { - "description" : "Invalid username supplied" - }, - "404" : { - "description" : "User not found" - } - }, - "security" : [ { - "http_basic_test" : [ ] - } ] - }, - "patch" : { - "tags" : [ "fake" ], - "summary" : "To test \"client\" model", - "description" : "To test \"client\" model", - "operationId" : "testClientModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - }, - "/fake/outer/number" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer number types", - "operationId" : "fakeOuterNumberSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input number as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } ], - "responses" : { - "200" : { - "description" : "Output number", - "schema" : { - "$ref" : "#/definitions/OuterNumber" - } - } - } - } - }, - "/fake/outer/string" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer string types", - "operationId" : "fakeOuterStringSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input string as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } ], - "responses" : { - "200" : { - "description" : "Output string", - "schema" : { - "$ref" : "#/definitions/OuterString" - } - } - } - } - }, - "/fake/outer/boolean" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of outer boolean types", - "operationId" : "fakeOuterBooleanSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input boolean as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } ], - "responses" : { - "200" : { - "description" : "Output boolean", - "schema" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - } - } - }, - "/fake/outer/composite" : { - "post" : { - "tags" : [ "fake" ], - "description" : "Test serialization of object with outer number type", - "operationId" : "fakeOuterCompositeSerialize", - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "Input composite as post body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } ], - "responses" : { - "200" : { - "description" : "Output composite", - "schema" : { - "$ref" : "#/definitions/OuterComposite" - } - } - } - } - }, - "/fake/jsonFormData" : { - "get" : { - "tags" : [ "fake" ], - "summary" : "test json serialization of form data", - "description" : "", - "operationId" : "testJsonFormData", - "consumes" : [ "application/json" ], - "parameters" : [ { - "name" : "param", - "in" : "formData", - "description" : "field1", - "required" : true, - "type" : "string" - }, { - "name" : "param2", - "in" : "formData", - "description" : "field2", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/fake/inline-additionalProperties" : { - "post" : { - "tags" : [ "fake" ], - "summary" : "test inline additionalProperties", - "description" : "", - "operationId" : "testInlineAdditionalProperties", - "consumes" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "param", - "description" : "request body", - "required" : true, - "schema" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } ], - "responses" : { - "200" : { - "description" : "successful operation" - } - } - } - }, - "/another-fake/dummy" : { - "patch" : { - "tags" : [ "$another-fake?" ], - "summary" : "To test special tags", - "description" : "To test special tags", - "operationId" : "test_special_tags", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "client model", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Client" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/Client" - } - } - } - } - } - }, - "securityDefinitions" : { - "petstore_auth" : { - "type" : "oauth2", - "authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog", - "flow" : "implicit", - "scopes" : { - "write:pets" : "modify pets in your account", - "read:pets" : "read your pets" - } - }, - "api_key" : { - "type" : "apiKey", - "name" : "api_key", - "in" : "header" - }, - "api_key_query" : { - "type" : "apiKey", - "name" : "api_key_query", - "in" : "query" - }, - "http_basic_test" : { - "type" : "basic" - } - }, - "definitions" : { - "Order" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "petId" : { - "type" : "integer", - "format" : "int64" - }, - "quantity" : { - "type" : "integer", - "format" : "int32" - }, - "shipDate" : { - "type" : "string", - "format" : "date-time" - }, - "status" : { - "type" : "string", - "description" : "Order Status", - "enum" : [ "placed", "approved", "delivered" ] - }, - "complete" : { - "type" : "boolean", - "default" : false - } - }, - "xml" : { - "name" : "Order" - } - }, - "Category" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Category" - } - }, - "User" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "username" : { - "type" : "string" - }, - "firstName" : { - "type" : "string" - }, - "lastName" : { - "type" : "string" - }, - "email" : { - "type" : "string" - }, - "password" : { - "type" : "string" - }, - "phone" : { - "type" : "string" - }, - "userStatus" : { - "type" : "integer", - "format" : "int32", - "description" : "User Status" - } - }, - "xml" : { - "name" : "User" - } - }, - "Tag" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64" - }, - "name" : { - "type" : "string" - } - }, - "xml" : { - "name" : "Tag" - } - }, - "Pet" : { - "type" : "object", - "required" : [ "name", "photoUrls" ], - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "x-is-unique" : true - }, - "category" : { - "$ref" : "#/definitions/Category" - }, - "name" : { - "type" : "string", - "example" : "doggie" - }, - "photoUrls" : { - "type" : "array", - "xml" : { - "name" : "photoUrl", - "wrapped" : true - }, - "items" : { - "type" : "string" - } - }, - "tags" : { - "type" : "array", - "xml" : { - "name" : "tag", - "wrapped" : true - }, - "items" : { - "$ref" : "#/definitions/Tag" - } - }, - "status" : { - "type" : "string", - "description" : "pet status in the store", - "enum" : [ "available", "pending", "sold" ] - } - }, - "xml" : { - "name" : "Pet" - } - }, - "ApiResponse" : { - "type" : "object", - "properties" : { - "code" : { - "type" : "integer", - "format" : "int32" - }, - "type" : { - "type" : "string" - }, - "message" : { - "type" : "string" - } - } - }, - "$special[model.name]" : { - "properties" : { - "$special[property.name]" : { - "type" : "integer", - "format" : "int64" - } - }, - "xml" : { - "name" : "$special[model.name]" - } - }, - "Return" : { - "properties" : { - "return" : { - "type" : "integer", - "format" : "int32" - } - }, - "description" : "Model for testing reserved words", - "xml" : { - "name" : "Return" - } - }, - "Name" : { - "required" : [ "name" ], - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "snake_case" : { - "type" : "integer", - "format" : "int32", - "readOnly" : true - }, - "property" : { - "type" : "string" - }, - "123Number" : { - "type" : "integer", - "readOnly" : true - } - }, - "description" : "Model for testing model name same as property name", - "xml" : { - "name" : "Name" - } - }, - "200_response" : { - "properties" : { - "name" : { - "type" : "integer", - "format" : "int32" - }, - "class" : { - "type" : "string" - } - }, - "description" : "Model for testing model name starting with number", - "xml" : { - "name" : "Name" - } - }, - "ClassModel" : { - "properties" : { - "_class" : { - "type" : "string" - } - }, - "description" : "Model for testing model with \"_class\" property" - }, - "Dog" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "breed" : { - "type" : "string" - } - } - } ] - }, - "Cat" : { - "allOf" : [ { - "$ref" : "#/definitions/Animal" - }, { - "type" : "object", - "properties" : { - "declawed" : { - "type" : "boolean" - } - } - } ] - }, - "Animal" : { - "type" : "object", - "required" : [ "className" ], - "discriminator" : "className", - "properties" : { - "className" : { - "type" : "string" - }, - "color" : { - "type" : "string", - "default" : "red" - } - } - }, - "AnimalFarm" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Animal" - } - }, - "format_test" : { - "type" : "object", - "required" : [ "byte", "date", "number", "password" ], - "properties" : { - "integer" : { - "type" : "integer", - "minimum" : 10, - "maximum" : 100 - }, - "int32" : { - "type" : "integer", - "format" : "int32", - "minimum" : 20, - "maximum" : 200 - }, - "int64" : { - "type" : "integer", - "format" : "int64" - }, - "number" : { - "type" : "number", - "minimum" : 32.1, - "maximum" : 543.2 - }, - "float" : { - "type" : "number", - "format" : "float", - "minimum" : 54.3, - "maximum" : 987.6 - }, - "double" : { - "type" : "number", - "format" : "double", - "minimum" : 67.8, - "maximum" : 123.4 - }, - "string" : { - "type" : "string", - "pattern" : "/[a-z]/i" - }, - "byte" : { - "type" : "string", - "format" : "byte", - "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - }, - "binary" : { - "type" : "string", - "format" : "binary" - }, - "date" : { - "type" : "string", - "format" : "date" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "password" : { - "type" : "string", - "format" : "password", - "minLength" : 10, - "maxLength" : 64 - } - } - }, - "EnumClass" : { - "type" : "string", - "enum" : [ "_abc", "-efg", "(xyz)" ], - "default" : "-efg" - }, - "Enum_Test" : { - "type" : "object", - "properties" : { - "enum_string" : { - "type" : "string", - "enum" : [ "UPPER", "lower", "" ] - }, - "enum_integer" : { - "type" : "integer", - "format" : "int32", - "enum" : [ 1, -1 ] - }, - "enum_number" : { - "type" : "number", - "format" : "double", - "enum" : [ 1.1, -1.2 ] - }, - "outerEnum" : { - "$ref" : "#/definitions/OuterEnum" - } - } - }, - "AdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - }, - "map_of_map_property" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - } - } - }, - "MixedPropertiesAndAdditionalPropertiesClass" : { - "type" : "object", - "properties" : { - "uuid" : { - "type" : "string", - "format" : "uuid" - }, - "dateTime" : { - "type" : "string", - "format" : "date-time" - }, - "map" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/definitions/Animal" - } - } - } - }, - "List" : { - "type" : "object", - "properties" : { - "123-list" : { - "type" : "string" - } - } - }, - "Client" : { - "type" : "object", - "properties" : { - "client" : { - "type" : "string" - } - } - }, - "ReadOnlyFirst" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "baz" : { - "type" : "string" - } - } - }, - "hasOnlyReadOnly" : { - "type" : "object", - "properties" : { - "bar" : { - "type" : "string", - "readOnly" : true - }, - "foo" : { - "type" : "string", - "readOnly" : true - } - } - }, - "Capitalization" : { - "type" : "object", - "properties" : { - "smallCamel" : { - "type" : "string" - }, - "CapitalCamel" : { - "type" : "string" - }, - "small_Snake" : { - "type" : "string" - }, - "Capital_Snake" : { - "type" : "string" - }, - "SCA_ETH_Flow_Points" : { - "type" : "string" - }, - "ATT_NAME" : { - "type" : "string", - "description" : "Name of the pet\n" - } - } - }, - "MapTest" : { - "type" : "object", - "properties" : { - "map_map_of_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - } - }, - "map_of_enum_string" : { - "type" : "object", - "additionalProperties" : { - "type" : "string", - "enum" : [ "UPPER", "lower" ] - } - } - } - }, - "ArrayTest" : { - "type" : "object", - "properties" : { - "array_of_string" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "array_array_of_integer" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "array_array_of_model" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReadOnlyFirst" - } - } - } - } - }, - "NumberOnly" : { - "type" : "object", - "properties" : { - "JustNumber" : { - "type" : "number" - } - } - }, - "ArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayNumber" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - }, - "ArrayOfArrayOfNumberOnly" : { - "type" : "object", - "properties" : { - "ArrayArrayNumber" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "number" - } - } - } - } - }, - "EnumArrays" : { - "type" : "object", - "properties" : { - "just_symbol" : { - "type" : "string", - "enum" : [ ">=", "$" ] - }, - "array_enum" : { - "type" : "array", - "items" : { - "type" : "string", - "enum" : [ "fish", "crab" ] - } - } - } - }, - "OuterEnum" : { - "type" : "string", - "enum" : [ "placed", "approved", "delivered" ] - }, - "OuterComposite" : { - "type" : "object", - "properties" : { - "my_number" : { - "$ref" : "#/definitions/OuterNumber" - }, - "my_string" : { - "$ref" : "#/definitions/OuterString" - }, - "my_boolean" : { - "$ref" : "#/definitions/OuterBoolean" - } - } - }, - "OuterNumber" : { - "type" : "number" - }, - "OuterString" : { - "type" : "string" - }, - "OuterBoolean" : { - "type" : "boolean" - } - }, - "externalDocs" : { - "description" : "Find out more about Swagger", - "url" : "http://swagger.io" - } -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/README.md b/samples/server/petstore/jaxrs/jersey1-useTags/README.md index faa1cc0c2b..9c14dfc11c 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/README.md +++ b/samples/server/petstore/jaxrs/jersey1-useTags/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:8080/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java similarity index 83% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index f36c3b4ae1..97fccd1305 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.factories.AnotherFakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.factories.AnotherFakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -10,11 +10,11 @@ import io.swagger.jaxrs.*; import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java similarity index 73% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index 83fbf53aab..10b25b73c6 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiException.java similarity index 85% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiException.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiException.java index 97e535d3c2..fdbaeee3a2 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiException.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class ApiException extends Exception{ diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java similarity index 95% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiOriginFilter.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java index 38791eef04..7039b5e4d9 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.IOException; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 87db95c100..9211b2dd7e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApi.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 7c39f46f67..ce30d59c3d 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeApiService; -import io.swagger.api.factories.FakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.factories.FakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,16 +11,16 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java index 1882561c0b..dc1fd70791 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java @@ -1,20 +1,20 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java similarity index 84% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index e2d95b8585..c0a0c3d56a 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeClassnameTags123ApiService; -import io.swagger.api.factories.FakeClassnameTags123ApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeClassnameTags123ApiService; +import org.openapitools.api.factories.FakeClassnameTags123ApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -10,11 +10,11 @@ import io.swagger.jaxrs.*; import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java similarity index 74% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java index e2638bddc2..fcb64164e2 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/JacksonJsonProvider.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/JacksonJsonProvider.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java index 60aa6ad171..d41d7a1e25 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/JacksonJsonProvider.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/NotFoundException.java similarity index 86% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/NotFoundException.java index b28b67ea4b..526df6c1c1 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/NotFoundException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class NotFoundException extends ApiException { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java index 9125858cca..6aebdf0f15 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; -import io.swagger.api.factories.PetApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; +import org.openapitools.api.factories.PetApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,12 +11,12 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java similarity index 87% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java index 3dfe427ede..9af313fd74 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java similarity index 94% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RFC3339DateFormat.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java index 7c9e260509..b471837701 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import com.fasterxml.jackson.databind.util.ISO8601Utils; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java similarity index 94% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java index ef052d7149..08f67308fb 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; -import io.swagger.api.factories.StoreApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.factories.StoreApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,11 +11,11 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 83% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java index 9aa5309240..3de7ce2875 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StringUtil.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StringUtil.java index 6f4a3dadbb..3672835589 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StringUtil.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class StringUtil { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java index 44ae51c2de..3d8b0ae299 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; -import io.swagger.api.factories.UserApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; +import org.openapitools.api.factories.UserApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,11 +11,11 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java index ce387d9594..490550e926 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index d2cbef7abb..e8271eb2f0 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Animal.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Animal.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Animal.java index 8f1fdfd45b..e684de1eed 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Animal.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java similarity index 95% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AnimalFarm.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java index be5b217a5c..e29e13f23d 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AnimalFarm.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java @@ -11,12 +11,12 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; -import io.swagger.model.Animal; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7dcd211829..526522954c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 05331fa55e..9bac7f093c 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayTest.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayTest.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayTest.java index 295a1ea1f1..c36f742a5a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ArrayTest.java @@ -11,16 +11,16 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.ReadOnlyFirst; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.ReadOnlyFirst; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Capitalization.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Capitalization.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Capitalization.java index 6ee896a961..4256f5f475 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Capitalization.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Cat.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Cat.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Cat.java index b96cffbbd7..f9824e8226 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Cat.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Category.java index 0408b4d6ac..05d4510fbe 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Category.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ClassModel.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ClassModel.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ClassModel.java index e96a4ff4eb..d527e4e98d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ClassModel.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Client.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Client.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Client.java index 7bae1955cb..4a731f01e1 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Client.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Dog.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Dog.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Dog.java index 94fd1071a9..791e3cca7c 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Dog.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumArrays.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumArrays.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumArrays.java index 8542c26fea..af2a52b816 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumArrays.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumClass.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumClass.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumClass.java index 1a5899f15d..b9169265a2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumClass.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumTest.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumTest.java index 59944f01c5..a246923717 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/EnumTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.OuterEnum; +import org.openapitools.model.OuterEnum; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/FormatTest.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java index f57ddec28a..5c0f46c09b 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 02480c10c6..4b05157843 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MapTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MapTest.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MapTest.java index 73c04c4bd6..9930a3547f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MapTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 5e1d96f5ec..e182a54354 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -11,19 +11,19 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Model200Response.java similarity index 92% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Model200Response.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Model200Response.java index 954ef7ebed..e42922cac1 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Model200Response.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -79,9 +79,9 @@ public class Model200Response { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(this.name, _200Response.name) && - Objects.equals(this.propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(this.name, _200response.name) && + Objects.equals(this.propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a54b591b3..3cc2773ed7 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelReturn.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelReturn.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelReturn.java index 12b213d6af..5c3692473b 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ModelReturn.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Name.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Name.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Name.java index 771531b30a..3572fbd4a9 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Name.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,7 +36,7 @@ public class Name { private String property = null; @JsonProperty("123Number") - private Integer _123Number = null; + private Integer _123number = null; public Name name(Integer name) { this.name = name; @@ -88,13 +88,13 @@ public class Name { } /** - * Get _123Number - * @return _123Number + * Get _123number + * @return _123number **/ @JsonProperty("123Number") @ApiModelProperty(value = "") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } @@ -110,12 +110,12 @@ public class Name { return Objects.equals(this.name, name.name) && Objects.equals(this.snakeCase, name.snakeCase) && Objects.equals(this.property, name.property) && - Objects.equals(this._123Number, name._123Number); + Objects.equals(this._123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @@ -127,7 +127,7 @@ public class Name { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/NumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/NumberOnly.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/NumberOnly.java index 82604a5b9c..ed4a96e478 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/NumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Order.java index 5147738768..27ee6ca037 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Order.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterBoolean.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterBoolean.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java index fc99d25239..7be7947b70 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterBoolean.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterComposite.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterComposite.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterComposite.java index c144ee9952..e4f91b2395 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterComposite.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterEnum.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterEnum.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterEnum.java index 6740674b07..b04ceaae43 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterEnum.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterEnum.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterNumber.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterNumber.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterNumber.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterNumber.java index 0d8b643430..99c1ab138e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterNumber.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterNumber.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterString.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterString.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterString.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterString.java index 468cb4bc8e..f003e4d574 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterString.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/OuterString.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java index 04480639f0..f375837342 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ReadOnlyFirst.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5d26b4199f..ca33fb1a23 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java similarity index 67% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/SpecialModelName.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java index df3182fbd8..02265492e2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -26,25 +26,25 @@ import javax.validation.constraints.*; public class SpecialModelName { @JsonProperty("$special[property.name]") - private Long specialPropertyName = null; + private Long $specialPropertyName = null; - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } /** - * Get specialPropertyName - * @return specialPropertyName + * Get $specialPropertyName + * @return $specialPropertyName **/ @JsonProperty("$special[property.name]") @ApiModelProperty(value = "") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -56,13 +56,13 @@ public class SpecialModelName { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @@ -71,7 +71,7 @@ public class SpecialModelName { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Tag.java index a86f54144f..25b7375132 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Tag.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/User.java index 0c1b67c0d5..338a568fe6 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/User.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/Bootstrap.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/Bootstrap.java similarity index 97% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/Bootstrap.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/Bootstrap.java index 38a037ef48..25a26352bf 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/Bootstrap.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/Bootstrap.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import io.swagger.jaxrs.config.SwaggerContextService; import io.swagger.models.*; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java similarity index 60% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java index d44d5c0620..21281d8d8a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.impl.AnotherFakeApiServiceImpl; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.impl.AnotherFakeApiServiceImpl; public class AnotherFakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java index d4f8e01367..6b5746c6e8 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeApiService; -import io.swagger.api.impl.FakeApiServiceImpl; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.impl.FakeApiServiceImpl; public class FakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java similarity index 62% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java index b424143723..f4e83e69ba 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeClassnameTags123ApiService; -import io.swagger.api.impl.FakeClassnameTags123ApiServiceImpl; +import org.openapitools.api.FakeClassnameTags123ApiService; +import org.openapitools.api.impl.FakeClassnameTags123ApiServiceImpl; public class FakeClassnameTags123ApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java index 43321e8c0e..c292d9111e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; +import org.openapitools.api.PetApiService; +import org.openapitools.api.impl.PetApiServiceImpl; public class PetApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java similarity index 59% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java index 254fd0a9a7..0a145377ad 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.impl.StoreApiServiceImpl; public class StoreApiServiceFactory { diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java index 4c50105bb5..6376e5732c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.UserApiService; +import org.openapitools.api.impl.UserApiServiceImpl; public class UserApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java similarity index 78% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index dab848d059..25c44d9658 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index ee3788b5f5..f00d9d46fe 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -1,20 +1,20 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java similarity index 78% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index fa158883df..c76466fae9 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index e6574b97ff..4531f4b4b6 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,16 +1,16 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 1e6a34cc78..0f7995f669 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,15 +1,15 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index f891d6ec66..0b00d2b627 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,15 +1,15 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/webapp/WEB-INF/web.xml index 615c6f429b..3d725cbf5e 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/webapp/WEB-INF/web.xml @@ -8,7 +8,7 @@ com.sun.jersey.spi.container.servlet.ServletContainer com.sun.jersey.config.property.packages - io.swagger.jaxrs.json;io.swagger.jaxrs.listing;io.swagger.api + io.swagger.jaxrs.json;io.swagger.jaxrs.listing;org.openapitools.api com.sun.jersey.spi.container.ContainerRequestFilters @@ -45,7 +45,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter diff --git a/samples/server/petstore/jaxrs/jersey1/README.md b/samples/server/petstore/jaxrs/jersey1/README.md index faa1cc0c2b..9c14dfc11c 100644 --- a/samples/server/petstore/jaxrs/jersey1/README.md +++ b/samples/server/petstore/jaxrs/jersey1/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:8080/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiException.java deleted file mode 100644 index 97e535d3c2..0000000000 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class ApiException extends Exception{ - private int code; - public ApiException (int code, String msg) { - super(msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiOriginFilter.java deleted file mode 100644 index 38791eef04..0000000000 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.swagger.api; - -import java.io.IOException; - -import javax.servlet.*; -import javax.servlet.http.HttpServletResponse; - - -public class ApiOriginFilter implements javax.servlet.Filter { - public void doFilter(ServletRequest request, ServletResponse response, - FilterChain chain) throws IOException, ServletException { - HttpServletResponse res = (HttpServletResponse) response; - res.addHeader("Access-Control-Allow-Origin", "*"); - res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); - res.addHeader("Access-Control-Allow-Headers", "Content-Type"); - chain.doFilter(request, response); - } - - public void destroy() {} - - public void init(FilterConfig filterConfig) throws ServletException {} -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/NotFoundException.java deleted file mode 100644 index b28b67ea4b..0000000000 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/NotFoundException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class NotFoundException extends ApiException { - private int code; - public NotFoundException (int code, String msg) { - super(code, msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/RFC3339DateFormat.java deleted file mode 100644 index 7c9e260509..0000000000 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.swagger.api; - -import com.fasterxml.jackson.databind.util.ISO8601DateFormat; -import com.fasterxml.jackson.databind.util.ISO8601Utils; - -import java.text.FieldPosition; -import java.util.Date; - -public class RFC3339DateFormat extends ISO8601DateFormat { - - // Same as ISO8601DateFormat but serializing milliseconds. - @Override - public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { - String value = ISO8601Utils.format(date, true); - toAppendTo.append(value); - return toAppendTo; - } - -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StringUtil.java deleted file mode 100644 index 6f4a3dadbb..0000000000 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StringUtil.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.swagger.api; - - -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) return true; - if (value != null && value.equalsIgnoreCase(str)) return true; - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) return ""; - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } -} diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java similarity index 83% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java index a58eed127a..c09dfee5a3 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.factories.AnotherFakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.factories.AnotherFakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -10,11 +10,11 @@ import io.swagger.jaxrs.*; import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java similarity index 73% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index 83fbf53aab..10b25b73c6 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiException.java similarity index 85% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiException.java index 97e535d3c2..fdbaeee3a2 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class ApiException extends Exception{ diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiOriginFilter.java similarity index 95% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiOriginFilter.java index 38791eef04..7039b5e4d9 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import java.io.IOException; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 87db95c100..9211b2dd7e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java index 84086dfbc1..d8e0428892 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeApiService; -import io.swagger.api.factories.FakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.factories.FakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,16 +11,16 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java index 1882561c0b..dc1fd70791 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java @@ -1,20 +1,20 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java similarity index 84% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index e00d95c6b0..56838a217e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.factories.FakeClassnameTestApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeClassnameTestApiService; +import org.openapitools.api.factories.FakeClassnameTestApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -10,11 +10,11 @@ import io.swagger.jaxrs.*; import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java similarity index 73% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java index d71084e10f..3c6b2c5df3 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/JacksonJsonProvider.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/JacksonJsonProvider.java index 60aa6ad171..d41d7a1e25 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/JacksonJsonProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/NotFoundException.java similarity index 86% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/NotFoundException.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/NotFoundException.java index b28b67ea4b..526df6c1c1 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/NotFoundException.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/NotFoundException.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class NotFoundException extends ApiException { diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java index c150825071..71310382c9 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; -import io.swagger.api.factories.PetApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; +import org.openapitools.api.factories.PetApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,12 +11,12 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java similarity index 87% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java index 3dfe427ede..9af313fd74 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/RFC3339DateFormat.java similarity index 94% rename from samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RFC3339DateFormat.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/RFC3339DateFormat.java index 7c9e260509..b471837701 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import com.fasterxml.jackson.databind.util.ISO8601Utils; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java similarity index 94% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java index e381dfb9ef..2daae49a9d 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; -import io.swagger.api.factories.StoreApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.factories.StoreApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,11 +11,11 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 83% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java index 9aa5309240..3de7ce2875 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StringUtil.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StringUtil.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StringUtil.java index 6f4a3dadbb..3672835589 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/StringUtil.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StringUtil.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; public class StringUtil { diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java index 200e6c77e2..e830d81950 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java @@ -1,8 +1,8 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; -import io.swagger.api.factories.UserApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; +import org.openapitools.api.factories.UserApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; @@ -11,11 +11,11 @@ import com.sun.jersey.multipart.FormDataParam; import javax.validation.constraints.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java index ce387d9594..490550e926 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index d2cbef7abb..e8271eb2f0 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Animal.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Animal.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Animal.java index 8f1fdfd45b..e684de1eed 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Animal.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AnimalFarm.java similarity index 95% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AnimalFarm.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AnimalFarm.java index be5b217a5c..e29e13f23d 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/AnimalFarm.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AnimalFarm.java @@ -11,12 +11,12 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; -import io.swagger.model.Animal; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7dcd211829..526522954c 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 05331fa55e..9bac7f093c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayTest.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayTest.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayTest.java index 295a1ea1f1..c36f742a5a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ArrayTest.java @@ -11,16 +11,16 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.ReadOnlyFirst; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.ReadOnlyFirst; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Capitalization.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Capitalization.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Capitalization.java index 6ee896a961..4256f5f475 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Capitalization.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Cat.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Cat.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Cat.java index b96cffbbd7..f9824e8226 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Cat.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Category.java index 0408b4d6ac..05d4510fbe 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Category.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ClassModel.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ClassModel.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ClassModel.java index e96a4ff4eb..d527e4e98d 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ClassModel.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Client.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Client.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Client.java index 7bae1955cb..4a731f01e1 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Client.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Dog.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Dog.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Dog.java index 94fd1071a9..791e3cca7c 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Dog.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumArrays.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumArrays.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumArrays.java index 8542c26fea..af2a52b816 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumArrays.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumClass.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumClass.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumClass.java index 1a5899f15d..b9169265a2 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumClass.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumTest.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumTest.java index 59944f01c5..a246923717 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/EnumTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.OuterEnum; +import org.openapitools.model.OuterEnum; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/FormatTest.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java index f57ddec28a..5c0f46c09b 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/HasOnlyReadOnly.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 02480c10c6..4b05157843 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MapTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MapTest.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MapTest.java index 73c04c4bd6..9930a3547f 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MapTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 5e1d96f5ec..e182a54354 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -11,19 +11,19 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Model200Response.java similarity index 92% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Model200Response.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Model200Response.java index 954ef7ebed..e42922cac1 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Model200Response.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -79,9 +79,9 @@ public class Model200Response { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(this.name, _200Response.name) && - Objects.equals(this.propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(this.name, _200response.name) && + Objects.equals(this.propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a54b591b3..3cc2773ed7 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelReturn.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelReturn.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelReturn.java index 12b213d6af..5c3692473b 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ModelReturn.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Name.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Name.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Name.java index 771531b30a..3572fbd4a9 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Name.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,7 +36,7 @@ public class Name { private String property = null; @JsonProperty("123Number") - private Integer _123Number = null; + private Integer _123number = null; public Name name(Integer name) { this.name = name; @@ -88,13 +88,13 @@ public class Name { } /** - * Get _123Number - * @return _123Number + * Get _123number + * @return _123number **/ @JsonProperty("123Number") @ApiModelProperty(value = "") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } @@ -110,12 +110,12 @@ public class Name { return Objects.equals(this.name, name.name) && Objects.equals(this.snakeCase, name.snakeCase) && Objects.equals(this.property, name.property) && - Objects.equals(this._123Number, name._123Number); + Objects.equals(this._123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @@ -127,7 +127,7 @@ public class Name { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/NumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/NumberOnly.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/NumberOnly.java index 82604a5b9c..ed4a96e478 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/NumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Order.java index 5147738768..27ee6ca037 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Order.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterBoolean.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterBoolean.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterBoolean.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterBoolean.java index fc99d25239..7be7947b70 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterBoolean.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterBoolean.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterComposite.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterComposite.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterComposite.java index c144ee9952..e4f91b2395 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterComposite.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterEnum.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterEnum.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterEnum.java index 6740674b07..b04ceaae43 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterEnum.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterEnum.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterNumber.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterNumber.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterNumber.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterNumber.java index 0d8b643430..99c1ab138e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterNumber.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterNumber.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterString.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterString.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterString.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterString.java index 468cb4bc8e..f003e4d574 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterString.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/OuterString.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java index 04480639f0..f375837342 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ReadOnlyFirst.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ReadOnlyFirst.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5d26b4199f..ca33fb1a23 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/SpecialModelName.java similarity index 67% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/SpecialModelName.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/SpecialModelName.java index df3182fbd8..02265492e2 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -26,25 +26,25 @@ import javax.validation.constraints.*; public class SpecialModelName { @JsonProperty("$special[property.name]") - private Long specialPropertyName = null; + private Long $specialPropertyName = null; - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } /** - * Get specialPropertyName - * @return specialPropertyName + * Get $specialPropertyName + * @return $specialPropertyName **/ @JsonProperty("$special[property.name]") @ApiModelProperty(value = "") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -56,13 +56,13 @@ public class SpecialModelName { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @@ -71,7 +71,7 @@ public class SpecialModelName { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Tag.java index a86f54144f..25b7375132 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Tag.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/User.java index 0c1b67c0d5..338a568fe6 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/User.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/Bootstrap.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/Bootstrap.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/Bootstrap.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/Bootstrap.java index 38a037ef48..25a26352bf 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/Bootstrap.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/Bootstrap.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import io.swagger.jaxrs.config.SwaggerContextService; import io.swagger.models.*; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java similarity index 60% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java index d44d5c0620..21281d8d8a 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.impl.AnotherFakeApiServiceImpl; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.impl.AnotherFakeApiServiceImpl; public class AnotherFakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java index d4f8e01367..6b5746c6e8 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeApiService; -import io.swagger.api.impl.FakeApiServiceImpl; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.impl.FakeApiServiceImpl; public class FakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java similarity index 61% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java index dc12311301..3c866f7e47 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.impl.FakeClassnameTestApiServiceImpl; +import org.openapitools.api.FakeClassnameTestApiService; +import org.openapitools.api.impl.FakeClassnameTestApiServiceImpl; public class FakeClassnameTestApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java index 43321e8c0e..c292d9111e 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; +import org.openapitools.api.PetApiService; +import org.openapitools.api.impl.PetApiServiceImpl; public class PetApiServiceFactory { diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java similarity index 59% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java index 254fd0a9a7..0a145377ad 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.impl.StoreApiServiceImpl; public class StoreApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java index 4c50105bb5..6376e5732c 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.UserApiService; +import org.openapitools.api.impl.UserApiServiceImpl; public class UserApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java similarity index 78% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index dab848d059..25c44d9658 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index ee3788b5f5..f00d9d46fe 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -1,20 +1,20 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java similarity index 78% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java index 489f288050..ffd9bb2867 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index e6574b97ff..4531f4b4b6 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,16 +1,16 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 1e6a34cc78..0f7995f669 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,15 +1,15 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index f891d6ec66..0b00d2b627 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,15 +1,15 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import com.sun.jersey.multipart.FormDataParam; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs/jersey1/src/main/webapp/WEB-INF/web.xml index 615c6f429b..3d725cbf5e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs/jersey1/src/main/webapp/WEB-INF/web.xml @@ -8,7 +8,7 @@ com.sun.jersey.spi.container.servlet.ServletContainer com.sun.jersey.config.property.packages - io.swagger.jaxrs.json;io.swagger.jaxrs.listing;io.swagger.api + io.swagger.jaxrs.json;io.swagger.jaxrs.listing;org.openapitools.api com.sun.jersey.spi.container.ContainerRequestFilters @@ -45,7 +45,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/README.md b/samples/server/petstore/jaxrs/jersey2-useTags/README.md index faa1cc0c2b..9c14dfc11c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/README.md +++ b/samples/server/petstore/jaxrs/jersey2-useTags/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:8080/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiException.java deleted file mode 100644 index 97e535d3c2..0000000000 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class ApiException extends Exception{ - private int code; - public ApiException (int code, String msg) { - super(msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java deleted file mode 100644 index 38791eef04..0000000000 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.swagger.api; - -import java.io.IOException; - -import javax.servlet.*; -import javax.servlet.http.HttpServletResponse; - - -public class ApiOriginFilter implements javax.servlet.Filter { - public void doFilter(ServletRequest request, ServletResponse response, - FilterChain chain) throws IOException, ServletException { - HttpServletResponse res = (HttpServletResponse) response; - res.addHeader("Access-Control-Allow-Origin", "*"); - res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); - res.addHeader("Access-Control-Allow-Headers", "Content-Type"); - chain.doFilter(request, response); - } - - public void destroy() {} - - public void init(FilterConfig filterConfig) throws ServletException {} -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/NotFoundException.java deleted file mode 100644 index b28b67ea4b..0000000000 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/NotFoundException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class NotFoundException extends ApiException { - private int code; - public NotFoundException (int code, String msg) { - super(code, msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java deleted file mode 100644 index 7c9e260509..0000000000 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.swagger.api; - -import com.fasterxml.jackson.databind.util.ISO8601DateFormat; -import com.fasterxml.jackson.databind.util.ISO8601Utils; - -import java.text.FieldPosition; -import java.util.Date; - -public class RFC3339DateFormat extends ISO8601DateFormat { - - // Same as ISO8601DateFormat but serializing milliseconds. - @Override - public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { - String value = ISO8601Utils.format(date, true); - toAppendTo.append(value); - return toAppendTo; - } - -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StringUtil.java deleted file mode 100644 index 6f4a3dadbb..0000000000 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StringUtil.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.swagger.api; - - -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) return true; - if (value != null && value.equalsIgnoreCase(str)) return true; - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) return ""; - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } -} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 3f79f944b3..a695ffeb47 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.factories.AnotherFakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.factories.AnotherFakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java similarity index 69% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index b57ead58f8..d8df665e2a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiException.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiException.java new file mode 100644 index 0000000000..fdbaeee3a2 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiException.java @@ -0,0 +1,10 @@ +package org.openapitools.api; + + +public class ApiException extends Exception{ + private int code; + public ApiException (int code, String msg) { + super(msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java new file mode 100644 index 0000000000..7039b5e4d9 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -0,0 +1,22 @@ +package org.openapitools.api; + +import java.io.IOException; + +import javax.servlet.*; +import javax.servlet.http.HttpServletResponse; + + +public class ApiOriginFilter implements javax.servlet.Filter { + public void doFilter(ServletRequest request, ServletResponse response, + FilterChain chain) throws IOException, ServletException { + HttpServletResponse res = (HttpServletResponse) response; + res.addHeader("Access-Control-Allow-Origin", "*"); + res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); + res.addHeader("Access-Control-Allow-Headers", "Content-Type"); + chain.doFilter(request, response); + } + + public void destroy() {} + + public void init(FilterConfig filterConfig) throws ServletException {} +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 87db95c100..9211b2dd7e 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApi.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index e78a5aca15..442adc6f7c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -1,23 +1,23 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeApiService; -import io.swagger.api.factories.FakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.factories.FakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java index 085e4844f7..b5a997d1a2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java @@ -1,20 +1,20 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 725e302b42..d44d2063c0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeClassnameTags123ApiService; -import io.swagger.api.factories.FakeClassnameTags123ApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeClassnameTags123ApiService; +import org.openapitools.api.factories.FakeClassnameTags123ApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java similarity index 69% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java index 48c754d85e..f76193efd1 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/FakeClassnameTags123ApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java index 60aa6ad171..d41d7a1e25 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/JacksonJsonProvider.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/JacksonJsonProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/NotFoundException.java new file mode 100644 index 0000000000..526df6c1c1 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/NotFoundException.java @@ -0,0 +1,10 @@ +package org.openapitools.api; + + +public class NotFoundException extends ApiException { + private int code; + public NotFoundException (int code, String msg) { + super(code, msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index 86367825c2..ff10b45735 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -1,19 +1,19 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; -import io.swagger.api.factories.PetApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; +import org.openapitools.api.factories.PetApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java similarity index 85% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java index 71be9cc3af..ebd89ee5c3 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java new file mode 100644 index 0000000000..b471837701 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -0,0 +1,19 @@ +package org.openapitools.api; + +import com.fasterxml.jackson.databind.util.ISO8601DateFormat; +import com.fasterxml.jackson.databind.util.ISO8601Utils; + +import java.text.FieldPosition; +import java.util.Date; + +public class RFC3339DateFormat extends ISO8601DateFormat { + + // Same as ISO8601DateFormat but serializing milliseconds. + @Override + public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { + String value = ISO8601Utils.format(date, true); + toAppendTo.append(value); + return toAppendTo; + } + +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java similarity index 94% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 64b58ec2cc..bc5ef2c76e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; -import io.swagger.api.factories.StoreApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.factories.StoreApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 81% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java index 5a7874d0a4..47440abc13 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StringUtil.java new file mode 100644 index 0000000000..3672835589 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StringUtil.java @@ -0,0 +1,42 @@ +package org.openapitools.api; + + +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) return true; + if (value != null && value.equalsIgnoreCase(str)) return true; + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) return ""; + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } +} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index ae556ff577..64512acb6b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; -import io.swagger.api.factories.UserApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; +import org.openapitools.api.factories.UserApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java similarity index 87% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java index 911b1e7f2a..ce18fdbf88 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index d2cbef7abb..e8271eb2f0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Animal.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java index 8f1fdfd45b..e684de1eed 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java similarity index 95% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AnimalFarm.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java index be5b217a5c..e29e13f23d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AnimalFarm.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AnimalFarm.java @@ -11,12 +11,12 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; -import io.swagger.model.Animal; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7dcd211829..526522954c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 05331fa55e..9bac7f093c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayTest.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java index 295a1ea1f1..c36f742a5a 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java @@ -11,16 +11,16 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.ReadOnlyFirst; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.ReadOnlyFirst; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Capitalization.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java index 6ee896a961..4256f5f475 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Cat.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java index b96cffbbd7..f9824e8226 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java index 0408b4d6ac..05d4510fbe 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ClassModel.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java index e96a4ff4eb..d527e4e98d 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Client.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java index 7bae1955cb..4a731f01e1 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Dog.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java index 94fd1071a9..791e3cca7c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumArrays.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java index 8542c26fea..af2a52b816 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumClass.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumClass.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumClass.java index 1a5899f15d..b9169265a2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/EnumClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumTest.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java index 59944f01c5..a246923717 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.OuterEnum; +import org.openapitools.model.OuterEnum; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/FormatTest.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java index f57ddec28a..5c0f46c09b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 02480c10c6..4b05157843 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MapTest.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java index 73c04c4bd6..9930a3547f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 5e1d96f5ec..e182a54354 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -11,19 +11,19 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java similarity index 92% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Model200Response.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java index 954ef7ebed..e42922cac1 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -79,9 +79,9 @@ public class Model200Response { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(this.name, _200Response.name) && - Objects.equals(this.propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(this.name, _200response.name) && + Objects.equals(this.propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a54b591b3..3cc2773ed7 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelReturn.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java index 12b213d6af..5c3692473b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Name.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java index 771531b30a..3572fbd4a9 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,7 +36,7 @@ public class Name { private String property = null; @JsonProperty("123Number") - private Integer _123Number = null; + private Integer _123number = null; public Name name(Integer name) { this.name = name; @@ -88,13 +88,13 @@ public class Name { } /** - * Get _123Number - * @return _123Number + * Get _123number + * @return _123number **/ @JsonProperty("123Number") @ApiModelProperty(value = "") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } @@ -110,12 +110,12 @@ public class Name { return Objects.equals(this.name, name.name) && Objects.equals(this.snakeCase, name.snakeCase) && Objects.equals(this.property, name.property) && - Objects.equals(this._123Number, name._123Number); + Objects.equals(this._123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @@ -127,7 +127,7 @@ public class Name { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/NumberOnly.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java index 82604a5b9c..ed4a96e478 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java index 5147738768..27ee6ca037 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterBoolean.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterBoolean.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java index fc99d25239..7be7947b70 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterBoolean.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterComposite.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java index c144ee9952..e4f91b2395 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterEnum.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterEnum.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterEnum.java index 6740674b07..b04ceaae43 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/OuterEnum.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterEnum.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterNumber.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterNumber.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterNumber.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterNumber.java index 0d8b643430..99c1ab138e 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterNumber.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterNumber.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterString.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterString.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterString.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterString.java index 468cb4bc8e..f003e4d574 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterString.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterString.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java index 04480639f0..f375837342 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5d26b4199f..ca33fb1a23 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java similarity index 67% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/SpecialModelName.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java index df3182fbd8..02265492e2 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -26,25 +26,25 @@ import javax.validation.constraints.*; public class SpecialModelName { @JsonProperty("$special[property.name]") - private Long specialPropertyName = null; + private Long $specialPropertyName = null; - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } /** - * Get specialPropertyName - * @return specialPropertyName + * Get $specialPropertyName + * @return $specialPropertyName **/ @JsonProperty("$special[property.name]") @ApiModelProperty(value = "") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -56,13 +56,13 @@ public class SpecialModelName { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @@ -71,7 +71,7 @@ public class SpecialModelName { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java index a86f54144f..25b7375132 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java index 0c1b67c0d5..338a568fe6 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/Bootstrap.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/Bootstrap.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/Bootstrap.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/Bootstrap.java index 38a037ef48..25a26352bf 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/Bootstrap.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/Bootstrap.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import io.swagger.jaxrs.config.SwaggerContextService; import io.swagger.models.*; diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java similarity index 60% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java index d44d5c0620..21281d8d8a 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.impl.AnotherFakeApiServiceImpl; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.impl.AnotherFakeApiServiceImpl; public class AnotherFakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java index d4f8e01367..6b5746c6e8 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeApiService; -import io.swagger.api.impl.FakeApiServiceImpl; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.impl.FakeApiServiceImpl; public class FakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java similarity index 62% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java index b424143723..f4e83e69ba 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeClassnameTags123ApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/FakeClassnameTags123ApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeClassnameTags123ApiService; -import io.swagger.api.impl.FakeClassnameTags123ApiServiceImpl; +import org.openapitools.api.FakeClassnameTags123ApiService; +import org.openapitools.api.impl.FakeClassnameTags123ApiServiceImpl; public class FakeClassnameTags123ApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java index 43321e8c0e..c292d9111e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; +import org.openapitools.api.PetApiService; +import org.openapitools.api.impl.PetApiServiceImpl; public class PetApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java similarity index 59% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java index 254fd0a9a7..0a145377ad 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.impl.StoreApiServiceImpl; public class StoreApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java index 4c50105bb5..6376e5732c 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.UserApiService; +import org.openapitools.api.impl.UserApiServiceImpl; public class UserApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java similarity index 75% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 78d120cfc6..e2d6575d83 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -1,12 +1,12 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 4adc86a979..d42e12549b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -1,18 +1,18 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java similarity index 76% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index 711c935af0..781cbf08c6 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -1,12 +1,12 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 3254af2ded..366b2e4e13 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index eaeb91d7ce..18c2ec5ecd 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 7a0b6c7837..ef7366a662 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/webapp/WEB-INF/web.xml index 61b112e3d8..b88ffedf9f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/webapp/WEB-INF/web.xml @@ -11,7 +11,7 @@ io.swagger.jaxrs.listing, io.swagger.sample.resource, - io.swagger.api + org.openapitools.api
@@ -45,7 +45,7 @@ Bootstrap - io.swagger.api.Bootstrap + org.openapitools.api.Bootstrap 2 @@ -54,7 +54,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter diff --git a/samples/server/petstore/jaxrs/jersey2/README.md b/samples/server/petstore/jaxrs/jersey2/README.md index faa1cc0c2b..9c14dfc11c 100644 --- a/samples/server/petstore/jaxrs/jersey2/README.md +++ b/samples/server/petstore/jaxrs/jersey2/README.md @@ -16,7 +16,7 @@ mvn clean package jetty:run You can then view the swagger listing here: ``` -http://localhost:8080/v2/swagger.json +http://localhost:8080/v2/openapi.json ``` Note that if you have configured the `host` to be something other than localhost, the calls through diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiException.java deleted file mode 100644 index 97e535d3c2..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class ApiException extends Exception{ - private int code; - public ApiException (int code, String msg) { - super(msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiOriginFilter.java deleted file mode 100644 index 38791eef04..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.swagger.api; - -import java.io.IOException; - -import javax.servlet.*; -import javax.servlet.http.HttpServletResponse; - - -public class ApiOriginFilter implements javax.servlet.Filter { - public void doFilter(ServletRequest request, ServletResponse response, - FilterChain chain) throws IOException, ServletException { - HttpServletResponse res = (HttpServletResponse) response; - res.addHeader("Access-Control-Allow-Origin", "*"); - res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); - res.addHeader("Access-Control-Allow-Headers", "Content-Type"); - chain.doFilter(request, response); - } - - public void destroy() {} - - public void init(FilterConfig filterConfig) throws ServletException {} -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiResponseMessage.java deleted file mode 100644 index 87db95c100..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.swagger.api; - -import javax.xml.bind.annotation.XmlTransient; - -@javax.xml.bind.annotation.XmlRootElement - -public class ApiResponseMessage { - public static final int ERROR = 1; - public static final int WARNING = 2; - public static final int INFO = 3; - public static final int OK = 4; - public static final int TOO_BUSY = 5; - - int code; - String type; - String message; - - public ApiResponseMessage(){} - - public ApiResponseMessage(int code, String message){ - this.code = code; - switch(code){ - case ERROR: - setType("error"); - break; - case WARNING: - setType("warning"); - break; - case INFO: - setType("info"); - break; - case OK: - setType("ok"); - break; - case TOO_BUSY: - setType("too busy"); - break; - default: - setType("unknown"); - break; - } - this.message = message; - } - - @XmlTransient - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/NotFoundException.java deleted file mode 100644 index b28b67ea4b..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/NotFoundException.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.swagger.api; - - -public class NotFoundException extends ApiException { - private int code; - public NotFoundException (int code, String msg) { - super(code, msg); - this.code = code; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/RFC3339DateFormat.java deleted file mode 100644 index 7c9e260509..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/RFC3339DateFormat.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.swagger.api; - -import com.fasterxml.jackson.databind.util.ISO8601DateFormat; -import com.fasterxml.jackson.databind.util.ISO8601Utils; - -import java.text.FieldPosition; -import java.util.Date; - -public class RFC3339DateFormat extends ISO8601DateFormat { - - // Same as ISO8601DateFormat but serializing milliseconds. - @Override - public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { - String value = ISO8601Utils.format(date, true); - toAppendTo.append(value); - return toAppendTo; - } - -} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StringUtil.java deleted file mode 100644 index 6f4a3dadbb..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StringUtil.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.swagger.api; - - -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) return true; - if (value != null && value.equalsIgnoreCase(str)) return true; - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) return ""; - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index fd40f0da55..042f91ddfa 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.factories.AnotherFakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.factories.AnotherFakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java similarity index 69% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index b57ead58f8..d8df665e2a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiException.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiException.java new file mode 100644 index 0000000000..fdbaeee3a2 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiException.java @@ -0,0 +1,10 @@ +package org.openapitools.api; + + +public class ApiException extends Exception{ + private int code; + public ApiException (int code, String msg) { + super(msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiOriginFilter.java new file mode 100644 index 0000000000..7039b5e4d9 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiOriginFilter.java @@ -0,0 +1,22 @@ +package org.openapitools.api; + +import java.io.IOException; + +import javax.servlet.*; +import javax.servlet.http.HttpServletResponse; + + +public class ApiOriginFilter implements javax.servlet.Filter { + public void doFilter(ServletRequest request, ServletResponse response, + FilterChain chain) throws IOException, ServletException { + HttpServletResponse res = (HttpServletResponse) response; + res.addHeader("Access-Control-Allow-Origin", "*"); + res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); + res.addHeader("Access-Control-Allow-Headers", "Content-Type"); + chain.doFilter(request, response); + } + + public void destroy() {} + + public void init(FilterConfig filterConfig) throws ServletException {} +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiResponseMessage.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiResponseMessage.java index 87db95c100..9211b2dd7e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/ApiResponseMessage.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import javax.xml.bind.annotation.XmlTransient; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index d26697a0e6..ded468b2e9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -1,23 +1,23 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeApiService; -import io.swagger.api.factories.FakeApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.factories.FakeApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java index 085e4844f7..b5a997d1a2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java @@ -1,20 +1,20 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 0ecca679b2..26f71f89a8 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -1,17 +1,17 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.factories.FakeClassnameTestApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.FakeClassnameTestApiService; +import org.openapitools.api.factories.FakeClassnameTestApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java similarity index 69% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java index 49a8241767..d5c2d43a43 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/FakeClassnameTestApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java @@ -1,14 +1,14 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/JacksonJsonProvider.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/JacksonJsonProvider.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/JacksonJsonProvider.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/JacksonJsonProvider.java index 60aa6ad171..d41d7a1e25 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/JacksonJsonProvider.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/JacksonJsonProvider.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/NotFoundException.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/NotFoundException.java new file mode 100644 index 0000000000..526df6c1c1 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/NotFoundException.java @@ -0,0 +1,10 @@ +package org.openapitools.api; + + +public class NotFoundException extends ApiException { + private int code; + public NotFoundException (int code, String msg) { + super(code, msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index d044624147..6a324b6e7a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -1,19 +1,19 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.PetApiService; -import io.swagger.api.factories.PetApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.PetApiService; +import org.openapitools.api.factories.PetApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java similarity index 85% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java index 71be9cc3af..ebd89ee5c3 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java @@ -1,16 +1,16 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/RFC3339DateFormat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/RFC3339DateFormat.java new file mode 100644 index 0000000000..b471837701 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/RFC3339DateFormat.java @@ -0,0 +1,19 @@ +package org.openapitools.api; + +import com.fasterxml.jackson.databind.util.ISO8601DateFormat; +import com.fasterxml.jackson.databind.util.ISO8601Utils; + +import java.text.FieldPosition; +import java.util.Date; + +public class RFC3339DateFormat extends ISO8601DateFormat { + + // Same as ISO8601DateFormat but serializing milliseconds. + @Override + public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { + String value = ISO8601Utils.format(date, true); + toAppendTo.append(value); + return toAppendTo; + } + +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java similarity index 94% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index ccec51135e..af9eab6345 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.StoreApiService; -import io.swagger.api.factories.StoreApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.factories.StoreApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java similarity index 81% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java index 5a7874d0a4..47440abc13 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StringUtil.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StringUtil.java new file mode 100644 index 0000000000..3672835589 --- /dev/null +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StringUtil.java @@ -0,0 +1,42 @@ +package org.openapitools.api; + + +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) return true; + if (value != null && value.equalsIgnoreCase(str)) return true; + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) return ""; + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } +} diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index 1840af35df..bdc79d307f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -1,18 +1,18 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.model.*; -import io.swagger.api.UserApiService; -import io.swagger.api.factories.UserApiServiceFactory; +import org.openapitools.model.*; +import org.openapitools.api.UserApiService; +import org.openapitools.api.factories.UserApiServiceFactory; import io.swagger.annotations.ApiParam; import io.swagger.jaxrs.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.Map; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java similarity index 87% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java index 911b1e7f2a..ce18fdbf88 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java @@ -1,15 +1,15 @@ -package io.swagger.api; +package org.openapitools.api; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index d2cbef7abb..e8271eb2f0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Animal.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Animal.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java index 8f1fdfd45b..e684de1eed 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AnimalFarm.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AnimalFarm.java similarity index 95% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AnimalFarm.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AnimalFarm.java index be5b217a5c..e29e13f23d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/AnimalFarm.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AnimalFarm.java @@ -11,12 +11,12 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; -import io.swagger.model.Animal; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7dcd211829..526522954c 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 05331fa55e..9bac7f093c 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayTest.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java index 295a1ea1f1..c36f742a5a 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java @@ -11,16 +11,16 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.ReadOnlyFirst; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.ReadOnlyFirst; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Capitalization.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java index 6ee896a961..4256f5f475 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Cat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Cat.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java index b96cffbbd7..f9824e8226 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java index 0408b4d6ac..05d4510fbe 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ClassModel.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java index e96a4ff4eb..d527e4e98d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Client.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Client.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java index 7bae1955cb..4a731f01e1 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Dog.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java similarity index 96% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Dog.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java index 94fd1071a9..791e3cca7c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java @@ -11,14 +11,14 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumArrays.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java index 8542c26fea..af2a52b816 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumClass.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumClass.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumClass.java index 1a5899f15d..b9169265a2 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/EnumClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumClass.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumTest.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java index 59944f01c5..a246923717 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.OuterEnum; +import org.openapitools.model.OuterEnum; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/FormatTest.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java index f57ddec28a..5c0f46c09b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/HasOnlyReadOnly.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 02480c10c6..4b05157843 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MapTest.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java index 73c04c4bd6..9930a3547f 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 5e1d96f5ec..e182a54354 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -11,19 +11,19 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Animal; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; +import org.openapitools.model.Animal; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java similarity index 92% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Model200Response.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java index 954ef7ebed..e42922cac1 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -79,9 +79,9 @@ public class Model200Response { if (o == null || getClass() != o.getClass()) { return false; } - Model200Response _200Response = (Model200Response) o; - return Objects.equals(this.name, _200Response.name) && - Objects.equals(this.propertyClass, _200Response.propertyClass); + Model200Response _200response = (Model200Response) o; + return Objects.equals(this.name, _200response.name) && + Objects.equals(this.propertyClass, _200response.propertyClass); } @Override diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a54b591b3..3cc2773ed7 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelReturn.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java index 12b213d6af..5c3692473b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Name.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java similarity index 89% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Name.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java index 771531b30a..3572fbd4a9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,7 +36,7 @@ public class Name { private String property = null; @JsonProperty("123Number") - private Integer _123Number = null; + private Integer _123number = null; public Name name(Integer name) { this.name = name; @@ -88,13 +88,13 @@ public class Name { } /** - * Get _123Number - * @return _123Number + * Get _123number + * @return _123number **/ @JsonProperty("123Number") @ApiModelProperty(value = "") - public Integer get123Number() { - return _123Number; + public Integer get123number() { + return _123number; } @@ -110,12 +110,12 @@ public class Name { return Objects.equals(this.name, name.name) && Objects.equals(this.snakeCase, name.snakeCase) && Objects.equals(this.property, name.property) && - Objects.equals(this._123Number, name._123Number); + Objects.equals(this._123number, name._123number); } @Override public int hashCode() { - return Objects.hash(name, snakeCase, property, _123Number); + return Objects.hash(name, snakeCase, property, _123number); } @@ -127,7 +127,7 @@ public class Name { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n"); sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n"); + sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/NumberOnly.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java index 82604a5b9c..ed4a96e478 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java index 5147738768..27ee6ca037 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterBoolean.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterBoolean.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterBoolean.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterBoolean.java index fc99d25239..7be7947b70 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterBoolean.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterComposite.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java index c144ee9952..e4f91b2395 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/io/swagger/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterEnum.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterEnum.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterEnum.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterEnum.java index 6740674b07..b04ceaae43 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterEnum.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterEnum.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterNumber.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterNumber.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterNumber.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterNumber.java index 0d8b643430..99c1ab138e 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/OuterNumber.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterNumber.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterString.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterString.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterString.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterString.java index 468cb4bc8e..f003e4d574 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/OuterString.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterString.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import javax.validation.constraints.*; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java index 04480639f0..f375837342 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import io.swagger.model.Category; -import io.swagger.model.Tag; import java.util.ArrayList; import java.util.List; +import org.openapitools.model.Category; +import org.openapitools.model.Tag; import javax.validation.constraints.*; /** diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5d26b4199f..ca33fb1a23 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/io/swagger/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java similarity index 67% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/SpecialModelName.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java index df3182fbd8..02265492e2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/io/swagger/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; @@ -26,25 +26,25 @@ import javax.validation.constraints.*; public class SpecialModelName { @JsonProperty("$special[property.name]") - private Long specialPropertyName = null; + private Long $specialPropertyName = null; - public SpecialModelName specialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } /** - * Get specialPropertyName - * @return specialPropertyName + * Get $specialPropertyName + * @return $specialPropertyName **/ @JsonProperty("$special[property.name]") @ApiModelProperty(value = "") - public Long getSpecialPropertyName() { - return specialPropertyName; + public Long get$SpecialPropertyName() { + return $specialPropertyName; } - public void setSpecialPropertyName(Long specialPropertyName) { - this.specialPropertyName = specialPropertyName; + public void set$SpecialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; } @@ -56,13 +56,13 @@ public class SpecialModelName { if (o == null || getClass() != o.getClass()) { return false; } - SpecialModelName specialModelName = (SpecialModelName) o; - return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName); + SpecialModelName $specialModelName = (SpecialModelName) o; + return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName); } @Override public int hashCode() { - return Objects.hash(specialPropertyName); + return Objects.hash($specialPropertyName); } @@ -71,7 +71,7 @@ public class SpecialModelName { StringBuilder sb = new StringBuilder(); sb.append("class SpecialModelName {\n"); - sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n"); + sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java similarity index 98% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java index a86f54144f..25b7375132 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java similarity index 99% rename from samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java index 0c1b67c0d5..338a568fe6 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java @@ -11,7 +11,7 @@ */ -package io.swagger.model; +package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/Bootstrap.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/Bootstrap.java deleted file mode 100644 index 38a037ef48..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/Bootstrap.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.swagger.api; - -import io.swagger.jaxrs.config.SwaggerContextService; -import io.swagger.models.*; - -import io.swagger.models.auth.*; - -import javax.servlet.http.HttpServlet; -import javax.servlet.ServletContext; -import javax.servlet.ServletConfig; -import javax.servlet.ServletException; - -public class Bootstrap extends HttpServlet { - @Override - public void init(ServletConfig config) throws ServletException { - Info info = new Info() - .title("Swagger Server") - .description("This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\") - .termsOfService("http://swagger.io/terms/") - .contact(new Contact() - .email("apiteam@swagger.io")) - .license(new License() - .name("Apache-2.0") - .url("http://www.apache.org/licenses/LICENSE-2.0.html")); - - ServletContext context = config.getServletContext(); - Swagger swagger = new Swagger().info(info); - - new SwaggerContextService().withServletConfig(config).updateSwagger(swagger); - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java deleted file mode 100644 index d44d5c0620..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.impl.AnotherFakeApiServiceImpl; - - -public class AnotherFakeApiServiceFactory { - private final static AnotherFakeApiService service = new AnotherFakeApiServiceImpl(); - - public static AnotherFakeApiService getAnotherFakeApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java deleted file mode 100644 index d4f8e01367..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.FakeApiService; -import io.swagger.api.impl.FakeApiServiceImpl; - - -public class FakeApiServiceFactory { - private final static FakeApiService service = new FakeApiServiceImpl(); - - public static FakeApiService getFakeApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java deleted file mode 100644 index 43321e8c0e..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; - - -public class PetApiServiceFactory { - private final static PetApiService service = new PetApiServiceImpl(); - - public static PetApiService getPetApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java deleted file mode 100644 index 254fd0a9a7..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; - - -public class StoreApiServiceFactory { - private final static StoreApiService service = new StoreApiServiceImpl(); - - public static StoreApiService getStoreApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java deleted file mode 100644 index 4c50105bb5..0000000000 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.swagger.api.factories; - -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; - - -public class UserApiServiceFactory { - private final static UserApiService service = new UserApiServiceImpl(); - - public static UserApiService getUserApi() { - return service; - } -} diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/Bootstrap.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/Bootstrap.java similarity index 97% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/Bootstrap.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/Bootstrap.java index 38a037ef48..25a26352bf 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/Bootstrap.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/Bootstrap.java @@ -1,4 +1,4 @@ -package io.swagger.api; +package org.openapitools.api; import io.swagger.jaxrs.config.SwaggerContextService; import io.swagger.models.*; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java similarity index 60% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java index d44d5c0620..21281d8d8a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/AnotherFakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/AnotherFakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.AnotherFakeApiService; -import io.swagger.api.impl.AnotherFakeApiServiceImpl; +import org.openapitools.api.AnotherFakeApiService; +import org.openapitools.api.impl.AnotherFakeApiServiceImpl; public class AnotherFakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java index d4f8e01367..6b5746c6e8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/FakeApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeApiService; -import io.swagger.api.impl.FakeApiServiceImpl; +import org.openapitools.api.FakeApiService; +import org.openapitools.api.impl.FakeApiServiceImpl; public class FakeApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java similarity index 61% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java index dc12311301..3c866f7e47 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/factories/FakeClassnameTestApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/FakeClassnameTestApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.FakeClassnameTestApiService; -import io.swagger.api.impl.FakeClassnameTestApiServiceImpl; +import org.openapitools.api.FakeClassnameTestApiService; +import org.openapitools.api.impl.FakeClassnameTestApiServiceImpl; public class FakeClassnameTestApiServiceFactory { diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java index 43321e8c0e..c292d9111e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/PetApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.PetApiService; -import io.swagger.api.impl.PetApiServiceImpl; +import org.openapitools.api.PetApiService; +import org.openapitools.api.impl.PetApiServiceImpl; public class PetApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java similarity index 59% rename from samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java index 254fd0a9a7..0a145377ad 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/StoreApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.StoreApiService; -import io.swagger.api.impl.StoreApiServiceImpl; +import org.openapitools.api.StoreApiService; +import org.openapitools.api.impl.StoreApiServiceImpl; public class StoreApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java similarity index 58% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java index 4c50105bb5..6376e5732c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/factories/UserApiServiceFactory.java @@ -1,7 +1,7 @@ -package io.swagger.api.factories; +package org.openapitools.api.factories; -import io.swagger.api.UserApiService; -import io.swagger.api.impl.UserApiServiceImpl; +import org.openapitools.api.UserApiService; +import org.openapitools.api.impl.UserApiServiceImpl; public class UserApiServiceFactory { diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java similarity index 75% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 78d120cfc6..e2d6575d83 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -1,12 +1,12 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 4adc86a979..d42e12549b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -1,18 +1,18 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.math.BigDecimal; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.Date; import java.io.File; import java.util.Map; -import io.swagger.model.OuterComposite; -import io.swagger.model.User; +import org.openapitools.model.OuterComposite; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java similarity index 76% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java index e5bbbdea56..8e5ee58fd9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/FakeClassnameTestApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java @@ -1,12 +1,12 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; -import io.swagger.model.Client; +import org.openapitools.model.Client; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java similarity index 91% rename from samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 3254af2ded..366b2e4e13 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -1,14 +1,14 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.io.File; -import io.swagger.model.ModelApiResponse; -import io.swagger.model.Pet; +import org.openapitools.model.ModelApiResponse; +import org.openapitools.model.Pet; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java similarity index 88% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index eaeb91d7ce..18c2ec5ecd 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.Map; -import io.swagger.model.Order; +import org.openapitools.model.Order; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java similarity index 93% rename from samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename to samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 7a0b6c7837..ef7366a662 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -1,13 +1,13 @@ -package io.swagger.api.impl; +package org.openapitools.api.impl; -import io.swagger.api.*; -import io.swagger.model.*; +import org.openapitools.api.*; +import org.openapitools.model.*; import java.util.List; -import io.swagger.model.User; +import org.openapitools.model.User; import java.util.List; -import io.swagger.api.NotFoundException; +import org.openapitools.api.NotFoundException; import java.io.InputStream; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs/jersey2/src/main/webapp/WEB-INF/web.xml index 61b112e3d8..b88ffedf9f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/webapp/WEB-INF/web.xml +++ b/samples/server/petstore/jaxrs/jersey2/src/main/webapp/WEB-INF/web.xml @@ -11,7 +11,7 @@ io.swagger.jaxrs.listing, io.swagger.sample.resource, - io.swagger.api + org.openapitools.api
@@ -45,7 +45,7 @@ Bootstrap - io.swagger.api.Bootstrap + org.openapitools.api.Bootstrap 2 @@ -54,7 +54,7 @@ ApiOriginFilter - io.swagger.api.ApiOriginFilter + org.openapitools.api.ApiOriginFilter ApiOriginFilter