forked from loafle/openapi-generator-original
update check for performBeanValidation #2549
This commit is contained in:
parent
9d8c419698
commit
a7252e7560
@ -10,7 +10,9 @@ import {{invokerPackage}}.Configuration;
|
|||||||
import {{invokerPackage}}.Pair;
|
import {{invokerPackage}}.Pair;
|
||||||
import {{invokerPackage}}.ProgressRequestBody;
|
import {{invokerPackage}}.ProgressRequestBody;
|
||||||
import {{invokerPackage}}.ProgressResponseBody;
|
import {{invokerPackage}}.ProgressResponseBody;
|
||||||
|
{{#performBeanValidation}}
|
||||||
import {{invokerPackage}}.BeanValidationException;
|
import {{invokerPackage}}.BeanValidationException;
|
||||||
|
{{/performBeanValidation}}
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ package io.swagger.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class ApiException extends Exception {
|
public class ApiException extends Exception {
|
||||||
private int code = 0;
|
private int code = 0;
|
||||||
private Map<String, List<String>> responseHeaders = null;
|
private Map<String, List<String>> responseHeaders = null;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
private static ApiClient defaultApiClient = new ApiClient();
|
private static ApiClient defaultApiClient = new ApiClient();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Pair {
|
public class Pair {
|
||||||
private String name = "";
|
private String name = "";
|
||||||
private String value = "";
|
private String value = "";
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -33,7 +33,6 @@ import io.swagger.client.Configuration;
|
|||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
import io.swagger.client.ProgressRequestBody;
|
import io.swagger.client.ProgressRequestBody;
|
||||||
import io.swagger.client.ProgressResponseBody;
|
import io.swagger.client.ProgressResponseBody;
|
||||||
import io.swagger.client.BeanValidationException;
|
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ import io.swagger.client.Configuration;
|
|||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
import io.swagger.client.ProgressRequestBody;
|
import io.swagger.client.ProgressRequestBody;
|
||||||
import io.swagger.client.ProgressResponseBody;
|
import io.swagger.client.ProgressResponseBody;
|
||||||
import io.swagger.client.BeanValidationException;
|
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ import io.swagger.client.Configuration;
|
|||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
import io.swagger.client.ProgressRequestBody;
|
import io.swagger.client.ProgressRequestBody;
|
||||||
import io.swagger.client.ProgressResponseBody;
|
import io.swagger.client.ProgressResponseBody;
|
||||||
import io.swagger.client.BeanValidationException;
|
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class ApiKeyAuth implements Authentication {
|
public class ApiKeyAuth implements Authentication {
|
||||||
private final String location;
|
private final String location;
|
||||||
private final String paramName;
|
private final String paramName;
|
||||||
|
@ -30,7 +30,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class OAuth implements Authentication {
|
public class OAuth implements Authentication {
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* A category for a pet
|
* A category for a pet
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A category for a pet")
|
@ApiModel(description = "A category for a pet")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Category {
|
public class Category {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -34,7 +34,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* Describes the result of uploading an image resource
|
* Describes the result of uploading an image resource
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Describes the result of uploading an image resource")
|
@ApiModel(description = "Describes the result of uploading an image resource")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
@SerializedName("code")
|
@SerializedName("code")
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
@ -35,7 +35,7 @@ import org.joda.time.DateTime;
|
|||||||
* An order for a pets from the pet store
|
* An order for a pets from the pet store
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "An order for a pets from the pet store")
|
@ApiModel(description = "An order for a pets from the pet store")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Order {
|
public class Order {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -38,7 +38,7 @@ import java.util.List;
|
|||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A pet for sale in the pet store")
|
@ApiModel(description = "A pet for sale in the pet store")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -34,7 +34,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* A tag for a pet
|
* A tag for a pet
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A tag for a pet")
|
@ApiModel(description = "A tag for a pet")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -34,7 +34,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* A User who is purchasing from the pet store
|
* A User who is purchasing from the pet store
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A User who is purchasing from the pet store")
|
@ApiModel(description = "A User who is purchasing from the pet store")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:18:03.999+01:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
||||||
public class User {
|
public class User {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user