forked from loafle/openapi-generator-original
[java][okhttp-gson] Remove JAX-RS dependency from generated okhttp-gson java client (#15896)
* Remove JAX-RS dependency from generated okhttp-gson java client * update samples --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
parent
dcc53c0d53
commit
7a73f75f70
@ -6,7 +6,6 @@ import {{invokerPackage}}.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import {{javaxPackage}}.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -35,7 +34,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {{javaxPackage}}.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -113,7 +113,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in anyOf
|
// store a list of schema names defined in anyOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public {{classname}}() {
|
public {{classname}}() {
|
||||||
super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
@ -128,13 +128,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
static {
|
static {
|
||||||
{{#anyOf}}
|
{{#anyOf}}
|
||||||
schemas.put("{{{.}}}", new GenericType<{{{.}}}>() {
|
schemas.put("{{{.}}}", {{{.}}}.class);
|
||||||
});
|
|
||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return {{classname}}.schemas;
|
return {{classname}}.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ import java.util.Map;
|
|||||||
{{#supportStreaming}}
|
{{#supportStreaming}}
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
{{/supportStreaming}}
|
{{/supportStreaming}}
|
||||||
import {{javaxPackage}}.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
public class {{classname}} {
|
public class {{classname}} {
|
||||||
|
@ -9,7 +9,6 @@ import java.util.Map.Entry;
|
|||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
{{/caseInsensitiveResponseHeaders}}
|
{{/caseInsensitiveResponseHeaders}}
|
||||||
|
|
||||||
import {{javaxPackage}}.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -23,7 +22,7 @@ public class ApiException extends{{#useRuntimeException}} RuntimeException {{/us
|
|||||||
{{#errorObjectType}}
|
{{#errorObjectType}}
|
||||||
private {{{errorObjectType}}} errorObject = null;
|
private {{{errorObjectType}}} errorObject = null;
|
||||||
{{/errorObjectType}}
|
{{/errorObjectType}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {{javaxPackage}}.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -126,7 +126,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public {{classname}}() {
|
public {{classname}}() {
|
||||||
super("oneOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
super("oneOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
@ -141,13 +141,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
{{/oneOf}}
|
{{/oneOf}}
|
||||||
static {
|
static {
|
||||||
{{#oneOf}}
|
{{#oneOf}}
|
||||||
schemas.put("{{{.}}}", new GenericType<{{{.}}}>() {
|
schemas.put("{{{.}}}", {{{.}}}.class);
|
||||||
});
|
|
||||||
{{/oneOf}}
|
{{/oneOf}}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return {{classname}}.schemas;
|
return {{classname}}.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class BodyApi {
|
public class BodyApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -33,7 +33,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FormApi {
|
public class FormApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -33,7 +33,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class HeaderApi {
|
public class HeaderApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -33,7 +33,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PathApi {
|
public class PathApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -40,7 +40,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class QueryApi {
|
public class QueryApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +35,6 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PingApi {
|
public class PingApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -37,7 +37,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -45,7 +45,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeApi {
|
public class FakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -37,7 +37,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -40,7 +40,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -37,7 +37,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -38,7 +38,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -42,7 +42,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeApi {
|
public class FakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -37,7 +37,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -16,7 +16,6 @@ package org.openapitools.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>ApiException class.</p>
|
* <p>ApiException class.</p>
|
||||||
@ -27,7 +26,7 @@ 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;
|
||||||
private String responseBody = null;
|
private String responseBody = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for ApiException.</p>
|
* <p>Constructor for ApiException.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class DefaultApi {
|
public class DefaultApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -43,7 +43,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeApi {
|
public class FakeApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -36,7 +36,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class PetApi {
|
public class PetApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -34,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -35,7 +35,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private ApiClient localVarApiClient;
|
private ApiClient localVarApiClient;
|
||||||
|
@ -17,7 +17,6 @@ import org.openapitools.client.ApiException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ public abstract class AbstractOpenApiSchema {
|
|||||||
*
|
*
|
||||||
* @return an instance of the actual schema/object
|
* @return an instance of the actual schema/object
|
||||||
*/
|
*/
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
public abstract Map<String, Class<?>> getSchemas();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the actual instance
|
* Get the actual instance
|
||||||
|
@ -25,7 +25,7 @@ import java.math.BigDecimal;
|
|||||||
import org.openapitools.client.model.Apple;
|
import org.openapitools.client.model.Apple;
|
||||||
import org.openapitools.client.model.Banana;
|
import org.openapitools.client.model.Banana;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -146,7 +146,7 @@ public class Fruit extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Fruit() {
|
public Fruit() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -163,14 +163,12 @@ public class Fruit extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Apple", new GenericType<Apple>() {
|
schemas.put("Apple", Apple.class);
|
||||||
});
|
schemas.put("Banana", Banana.class);
|
||||||
schemas.put("Banana", new GenericType<Banana>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Fruit.schemas;
|
return Fruit.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import java.math.BigDecimal;
|
|||||||
import org.openapitools.client.model.AppleReq;
|
import org.openapitools.client.model.AppleReq;
|
||||||
import org.openapitools.client.model.BananaReq;
|
import org.openapitools.client.model.BananaReq;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -146,7 +146,7 @@ public class FruitReq extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public FruitReq() {
|
public FruitReq() {
|
||||||
super("oneOf", Boolean.TRUE);
|
super("oneOf", Boolean.TRUE);
|
||||||
@ -163,14 +163,12 @@ public class FruitReq extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("AppleReq", new GenericType<AppleReq>() {
|
schemas.put("AppleReq", AppleReq.class);
|
||||||
});
|
schemas.put("BananaReq", BananaReq.class);
|
||||||
schemas.put("BananaReq", new GenericType<BananaReq>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return FruitReq.schemas;
|
return FruitReq.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import java.math.BigDecimal;
|
|||||||
import org.openapitools.client.model.Apple;
|
import org.openapitools.client.model.Apple;
|
||||||
import org.openapitools.client.model.Banana;
|
import org.openapitools.client.model.Banana;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -137,7 +137,7 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in anyOf
|
// store a list of schema names defined in anyOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public GmFruit() {
|
public GmFruit() {
|
||||||
super("anyOf", Boolean.FALSE);
|
super("anyOf", Boolean.FALSE);
|
||||||
@ -154,14 +154,12 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Apple", new GenericType<Apple>() {
|
schemas.put("Apple", Apple.class);
|
||||||
});
|
schemas.put("Banana", Banana.class);
|
||||||
schemas.put("Banana", new GenericType<Banana>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return GmFruit.schemas;
|
return GmFruit.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import org.openapitools.client.model.Pig;
|
|||||||
import org.openapitools.client.model.Whale;
|
import org.openapitools.client.model.Whale;
|
||||||
import org.openapitools.client.model.Zebra;
|
import org.openapitools.client.model.Zebra;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -191,7 +191,7 @@ public class Mammal extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Mammal() {
|
public Mammal() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -213,16 +213,13 @@ public class Mammal extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Pig", new GenericType<Pig>() {
|
schemas.put("Pig", Pig.class);
|
||||||
});
|
schemas.put("Whale", Whale.class);
|
||||||
schemas.put("Whale", new GenericType<Whale>() {
|
schemas.put("Zebra", Zebra.class);
|
||||||
});
|
|
||||||
schemas.put("Zebra", new GenericType<Zebra>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Mammal.schemas;
|
return Mammal.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
import org.openapitools.client.model.Quadrilateral;
|
import org.openapitools.client.model.Quadrilateral;
|
||||||
import org.openapitools.client.model.Triangle;
|
import org.openapitools.client.model.Triangle;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -165,7 +165,7 @@ public class NullableShape extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public NullableShape() {
|
public NullableShape() {
|
||||||
super("oneOf", Boolean.TRUE);
|
super("oneOf", Boolean.TRUE);
|
||||||
@ -182,14 +182,12 @@ public class NullableShape extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Quadrilateral", new GenericType<Quadrilateral>() {
|
schemas.put("Quadrilateral", Quadrilateral.class);
|
||||||
});
|
schemas.put("Triangle", Triangle.class);
|
||||||
schemas.put("Triangle", new GenericType<Triangle>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return NullableShape.schemas;
|
return NullableShape.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
import org.openapitools.client.model.BasquePig;
|
import org.openapitools.client.model.BasquePig;
|
||||||
import org.openapitools.client.model.DanishPig;
|
import org.openapitools.client.model.DanishPig;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -165,7 +165,7 @@ public class Pig extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Pig() {
|
public Pig() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -182,14 +182,12 @@ public class Pig extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("BasquePig", new GenericType<BasquePig>() {
|
schemas.put("BasquePig", BasquePig.class);
|
||||||
});
|
schemas.put("DanishPig", DanishPig.class);
|
||||||
schemas.put("DanishPig", new GenericType<DanishPig>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Pig.schemas;
|
return Pig.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
import org.openapitools.client.model.ComplexQuadrilateral;
|
import org.openapitools.client.model.ComplexQuadrilateral;
|
||||||
import org.openapitools.client.model.SimpleQuadrilateral;
|
import org.openapitools.client.model.SimpleQuadrilateral;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -165,7 +165,7 @@ public class Quadrilateral extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Quadrilateral() {
|
public Quadrilateral() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -182,14 +182,12 @@ public class Quadrilateral extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("ComplexQuadrilateral", new GenericType<ComplexQuadrilateral>() {
|
schemas.put("ComplexQuadrilateral", ComplexQuadrilateral.class);
|
||||||
});
|
schemas.put("SimpleQuadrilateral", SimpleQuadrilateral.class);
|
||||||
schemas.put("SimpleQuadrilateral", new GenericType<SimpleQuadrilateral>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Quadrilateral.schemas;
|
return Quadrilateral.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
import org.openapitools.client.model.Quadrilateral;
|
import org.openapitools.client.model.Quadrilateral;
|
||||||
import org.openapitools.client.model.Triangle;
|
import org.openapitools.client.model.Triangle;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -165,7 +165,7 @@ public class Shape extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Shape() {
|
public Shape() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -182,14 +182,12 @@ public class Shape extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Quadrilateral", new GenericType<Quadrilateral>() {
|
schemas.put("Quadrilateral", Quadrilateral.class);
|
||||||
});
|
schemas.put("Triangle", Triangle.class);
|
||||||
schemas.put("Triangle", new GenericType<Triangle>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Shape.schemas;
|
return Shape.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
import org.openapitools.client.model.Quadrilateral;
|
import org.openapitools.client.model.Quadrilateral;
|
||||||
import org.openapitools.client.model.Triangle;
|
import org.openapitools.client.model.Triangle;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -165,7 +165,7 @@ public class ShapeOrNull extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public ShapeOrNull() {
|
public ShapeOrNull() {
|
||||||
super("oneOf", Boolean.TRUE);
|
super("oneOf", Boolean.TRUE);
|
||||||
@ -182,14 +182,12 @@ public class ShapeOrNull extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("Quadrilateral", new GenericType<Quadrilateral>() {
|
schemas.put("Quadrilateral", Quadrilateral.class);
|
||||||
});
|
schemas.put("Triangle", Triangle.class);
|
||||||
schemas.put("Triangle", new GenericType<Triangle>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return ShapeOrNull.schemas;
|
return ShapeOrNull.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import org.openapitools.client.model.EquilateralTriangle;
|
|||||||
import org.openapitools.client.model.IsoscelesTriangle;
|
import org.openapitools.client.model.IsoscelesTriangle;
|
||||||
import org.openapitools.client.model.ScaleneTriangle;
|
import org.openapitools.client.model.ScaleneTriangle;
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -191,7 +191,7 @@ public class Triangle extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
// store a list of schema names defined in oneOf
|
||||||
public static final Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
public static final Map<String, Class<?>> schemas = new HashMap<String, Class<?>>();
|
||||||
|
|
||||||
public Triangle() {
|
public Triangle() {
|
||||||
super("oneOf", Boolean.FALSE);
|
super("oneOf", Boolean.FALSE);
|
||||||
@ -213,16 +213,13 @@ public class Triangle extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
schemas.put("EquilateralTriangle", new GenericType<EquilateralTriangle>() {
|
schemas.put("EquilateralTriangle", EquilateralTriangle.class);
|
||||||
});
|
schemas.put("IsoscelesTriangle", IsoscelesTriangle.class);
|
||||||
schemas.put("IsoscelesTriangle", new GenericType<IsoscelesTriangle>() {
|
schemas.put("ScaleneTriangle", ScaleneTriangle.class);
|
||||||
});
|
|
||||||
schemas.put("ScaleneTriangle", new GenericType<ScaleneTriangle>() {
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, GenericType> getSchemas() {
|
public Map<String, Class<?>> getSchemas() {
|
||||||
return Triangle.schemas;
|
return Triangle.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user