forked from loafle/openapi-generator-original
Fix alias to map response (#1067)
* fix response reference to map * update samples * add null check for openapi
This commit is contained in:
parent
340466066c
commit
1b2f3fbfb6
@ -13,6 +13,9 @@ CONFIG OPTIONS for aspnetcore
|
|||||||
sourceFolder
|
sourceFolder
|
||||||
source folder for generated code (Default: src)
|
source folder for generated code (Default: src)
|
||||||
|
|
||||||
|
aspnetCoreVersion
|
||||||
|
ASP.NET Core version: 2.1 (default), 2.0 (deprecated) (Default: 2.1)
|
||||||
|
|
||||||
sortParamsByRequiredFlag
|
sortParamsByRequiredFlag
|
||||||
Sort method arguments to place required parameters before optional parameters. (Default: true)
|
Sort method arguments to place required parameters before optional parameters. (Default: true)
|
||||||
|
|
||||||
|
@ -4,4 +4,7 @@ CONFIG OPTIONS for cpp-pistache-server
|
|||||||
addExternalLibs
|
addExternalLibs
|
||||||
Add the Possibility to fetch and compile external Libraries needed by this Framework. (Default: true)
|
Add the Possibility to fetch and compile external Libraries needed by this Framework. (Default: true)
|
||||||
|
|
||||||
|
helpersPackage
|
||||||
|
Specify the package name to be used for the helpers (e.g. org.openapitools.server.helpers). (Default: org.openapitools.server.helpers)
|
||||||
|
|
||||||
Back to the [generators list](README.md)
|
Back to the [generators list](README.md)
|
||||||
|
@ -31,4 +31,7 @@ CONFIG OPTIONS for dart
|
|||||||
sourceFolder
|
sourceFolder
|
||||||
source folder for generated code
|
source folder for generated code
|
||||||
|
|
||||||
|
supportDart2
|
||||||
|
support dart2 (Default: true)
|
||||||
|
|
||||||
Back to the [generators list](README.md)
|
Back to the [generators list](README.md)
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
|
|
||||||
CONFIG OPTIONS for elm
|
CONFIG OPTIONS for elm
|
||||||
|
|
||||||
|
elmVersion
|
||||||
|
Elm version: 0.18, 0.19 (Default: 0.19)
|
||||||
|
0.19 - Elm 0.19
|
||||||
|
0.18 - Elm 0.18
|
||||||
|
|
||||||
Back to the [generators list](README.md)
|
Back to the [generators list](README.md)
|
||||||
|
@ -117,7 +117,7 @@ CONFIG OPTIONS for java
|
|||||||
Use Play! Async HTTP client (Play WS API) (Default: false)
|
Use Play! Async HTTP client (Play WS API) (Default: false)
|
||||||
|
|
||||||
playVersion
|
playVersion
|
||||||
Version of Play! Framework (possible values "play24", "play25")
|
Version of Play! Framework (possible values "play24", "play25" (default), "play26")
|
||||||
|
|
||||||
supportJava6
|
supportJava6
|
||||||
Whether to support Java6 with the Jersey1 library. (Default: false)
|
Whether to support Java6 with the Jersey1 library. (Default: false)
|
||||||
@ -134,10 +134,13 @@ CONFIG OPTIONS for java
|
|||||||
useRuntimeException
|
useRuntimeException
|
||||||
Use RuntimeException instead of Exception (Default: false)
|
Use RuntimeException instead of Exception (Default: false)
|
||||||
|
|
||||||
|
feignVersion
|
||||||
|
Version of OpenFeign: '10.x', '9.x' (default) (Default: false)
|
||||||
|
|
||||||
library
|
library
|
||||||
library template (sub-template) to use (Default: okhttp-gson)
|
library template (sub-template) to use (Default: okhttp-gson)
|
||||||
jersey1 - HTTP client: Jersey client 1.19.4. JSON processing: Jackson 2.8.9. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
|
jersey1 - HTTP client: Jersey client 1.19.4. JSON processing: Jackson 2.8.9. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
|
||||||
feign - HTTP client: OpenFeign 9.4.0. JSON processing: Jackson 2.8.9. Enable OpenFeign 10.0.1 using '-DuseFeign10=true'.
|
feign - HTTP client: OpenFeign 9.4.0. JSON processing: Jackson 2.8.9. To enable OpenFeign 10.x, set the 'feignVersion' option to '10.x'
|
||||||
jersey2 - HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.8.9
|
jersey2 - HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.8.9
|
||||||
okhttp-gson - HTTP client: OkHttp 2.7.5. JSON processing: Gson 2.8.1. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
|
okhttp-gson - HTTP client: OkHttp 2.7.5. JSON processing: Gson 2.8.1. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
|
||||||
retrofit - HTTP client: OkHttp 2.7.5. JSON processing: Gson 2.3.1 (Retrofit 1.9.0). IMPORTANT NOTE: retrofit1.x is no longer actively maintained so please upgrade to 'retrofit2' instead.
|
retrofit - HTTP client: OkHttp 2.7.5. JSON processing: Gson 2.3.1 (Retrofit 1.9.0). IMPORTANT NOTE: retrofit1.x is no longer actively maintained so please upgrade to 'retrofit2' instead.
|
||||||
|
@ -23,7 +23,7 @@ CONFIG OPTIONS for kotlin-spring
|
|||||||
server title name or client service name (Default: OpenAPI Kotlin Spring)
|
server title name or client service name (Default: OpenAPI Kotlin Spring)
|
||||||
|
|
||||||
basePackage
|
basePackage
|
||||||
base package for generated code (Default: org.openapitools)
|
base package (invokerPackage) for generated code (Default: org.openapitools)
|
||||||
|
|
||||||
serverPort
|
serverPort
|
||||||
configuration the port in which the sever is to run on (Default: 8080)
|
configuration the port in which the sever is to run on (Default: 8080)
|
||||||
|
@ -134,6 +134,9 @@ CONFIG OPTIONS for spring
|
|||||||
responseWrapper
|
responseWrapper
|
||||||
wrap the responses in given type (Future,Callable,CompletableFuture,ListenableFuture,DeferredResult,HystrixCommand,RxObservable,RxSingle or fully qualified type)
|
wrap the responses in given type (Future,Callable,CompletableFuture,ListenableFuture,DeferredResult,HystrixCommand,RxObservable,RxSingle or fully qualified type)
|
||||||
|
|
||||||
|
virtualService
|
||||||
|
Generates the virtual service. For more details refer - https://github.com/elan-venture/virtualan/wiki (Default: false)
|
||||||
|
|
||||||
useTags
|
useTags
|
||||||
use tags for creating interface and controller classnames (Default: false)
|
use tags for creating interface and controller classnames (Default: false)
|
||||||
|
|
||||||
|
@ -55,4 +55,7 @@ CONFIG OPTIONS for typescript-angular
|
|||||||
modelFileSuffix
|
modelFileSuffix
|
||||||
The suffix of the file of the generated model (model<suffix>.ts). Default is ''.
|
The suffix of the file of the generated model (model<suffix>.ts). Default is ''.
|
||||||
|
|
||||||
|
fileNaming
|
||||||
|
Naming convention for the output files: 'camelCase', 'kebab-case'. Default is 'camelCase'.
|
||||||
|
|
||||||
Back to the [generators list](README.md)
|
Back to the [generators list](README.md)
|
||||||
|
@ -841,15 +841,14 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
/**
|
/**
|
||||||
* Return the name with escaped characters.
|
* Return the name with escaped characters.
|
||||||
*
|
*
|
||||||
* @param name the name to be escaped
|
* @param name the name to be escaped
|
||||||
* @param charactersToAllow characters that are not escaped
|
* @param charactersToAllow characters that are not escaped
|
||||||
* @param appdendixToReplacement String to append to replaced characters.
|
* @param appdendixToReplacement String to append to replaced characters.
|
||||||
* @return the escaped word
|
* @return the escaped word
|
||||||
* <p>
|
* <p>
|
||||||
* throws Runtime exception as word is not escaped properly.
|
* throws Runtime exception as word is not escaped properly.
|
||||||
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
|
||||||
* @see org.openapitools.codegen.utils.StringUtils#escape directly instead
|
* @see org.openapitools.codegen.utils.StringUtils#escape directly instead
|
||||||
*
|
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String escapeSpecialCharacters(String name, List<String> charactersToAllow, String appdendixToReplacement) {
|
public String escapeSpecialCharacters(String name, List<String> charactersToAllow, String appdendixToReplacement) {
|
||||||
@ -1096,11 +1095,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
public String toInstantiationType(Schema schema) {
|
public String toInstantiationType(Schema schema) {
|
||||||
if (ModelUtils.isMapSchema(schema)) {
|
if (ModelUtils.isMapSchema(schema)) {
|
||||||
Schema additionalProperties = ModelUtils.getAdditionalProperties(schema);
|
Schema additionalProperties = ModelUtils.getAdditionalProperties(schema);
|
||||||
String type = additionalProperties.getType();
|
|
||||||
if (null == type) {
|
|
||||||
LOGGER.error("No Type defined for Additional Property " + additionalProperties + "\n" //
|
|
||||||
+ "\tIn Property: " + schema);
|
|
||||||
}
|
|
||||||
String inner = getSchemaType(additionalProperties);
|
String inner = getSchemaType(additionalProperties);
|
||||||
return instantiationTypes.get("map") + "<String, " + inner + ">";
|
return instantiationTypes.get("map") + "<String, " + inner + ">";
|
||||||
} else if (ModelUtils.isArraySchema(schema)) {
|
} else if (ModelUtils.isArraySchema(schema)) {
|
||||||
@ -2254,7 +2248,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
operationId = removeNonNameElementToCamelCase(operationId);
|
operationId = removeNonNameElementToCamelCase(operationId);
|
||||||
|
|
||||||
if(path.startsWith("/")) {
|
if (path.startsWith("/")) {
|
||||||
op.path = path;
|
op.path = path;
|
||||||
} else {
|
} else {
|
||||||
op.path = "/" + path;
|
op.path = "/" + path;
|
||||||
@ -2295,7 +2289,10 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
op.responses.get(op.responses.size() - 1).hasMore = false;
|
op.responses.get(op.responses.size() - 1).hasMore = false;
|
||||||
|
|
||||||
if (methodResponse != null) {
|
if (methodResponse != null) {
|
||||||
final Schema responseSchema = ModelUtils.getSchemaFromResponse(methodResponse);
|
Schema responseSchema = ModelUtils.getSchemaFromResponse(methodResponse);
|
||||||
|
if (openAPI != null && openAPI.getComponents() != null) { // has models/aliases defined
|
||||||
|
responseSchema = ModelUtils.unaliasSchema(openAPI.getComponents().getSchemas(), responseSchema);
|
||||||
|
}
|
||||||
if (responseSchema != null) {
|
if (responseSchema != null) {
|
||||||
CodegenProperty cm = fromProperty("response", responseSchema);
|
CodegenProperty cm = fromProperty("response", responseSchema);
|
||||||
|
|
||||||
@ -2662,12 +2659,12 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Stream.of(
|
Stream.of(
|
||||||
Pair.of("get", pi.getGet()),
|
Pair.of("get", pi.getGet()),
|
||||||
Pair.of("head", pi.getHead()),
|
Pair.of("head", pi.getHead()),
|
||||||
Pair.of("put", pi.getPut()),
|
Pair.of("put", pi.getPut()),
|
||||||
Pair.of("post", pi.getPost()),
|
Pair.of("post", pi.getPost()),
|
||||||
Pair.of("delete", pi.getDelete()),
|
Pair.of("delete", pi.getDelete()),
|
||||||
Pair.of("patch", pi.getPatch()),
|
Pair.of("patch", pi.getPatch()),
|
||||||
Pair.of("options", pi.getOptions()))
|
Pair.of("options", pi.getOptions()))
|
||||||
.filter(p -> p.getValue() != null)
|
.filter(p -> p.getValue() != null)
|
||||||
.forEach(p -> {
|
.forEach(p -> {
|
||||||
@ -2676,7 +2673,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
|
|
||||||
boolean genId = op.getOperationId() == null;
|
boolean genId = op.getOperationId() == null;
|
||||||
if (genId) {
|
if (genId) {
|
||||||
op.setOperationId(getOrGenerateOperationId(op, c.name+"_"+expression.replaceAll("\\{\\$.*}", ""), method));
|
op.setOperationId(getOrGenerateOperationId(op, c.name + "_" + expression.replaceAll("\\{\\$.*}", ""), method));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (op.getExtensions() == null) {
|
if (op.getExtensions() == null) {
|
||||||
@ -3265,8 +3262,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
*
|
*
|
||||||
* @param word The word
|
* @param word The word
|
||||||
* @return The underscored version of the word
|
* @return The underscored version of the word
|
||||||
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
|
||||||
* @see org.openapitools.codegen.utils.StringUtils#underscore
|
* @see org.openapitools.codegen.utils.StringUtils#underscore
|
||||||
|
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static String underscore(String word) {
|
public static String underscore(String word) {
|
||||||
@ -3278,8 +3275,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
*
|
*
|
||||||
* @param word The word
|
* @param word The word
|
||||||
* @return The dashized version of the word, e.g. "my-name"
|
* @return The dashized version of the word, e.g. "my-name"
|
||||||
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
|
||||||
* @see org.openapitools.codegen.utils.StringUtils#dashize
|
* @see org.openapitools.codegen.utils.StringUtils#dashize
|
||||||
|
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("static-method")
|
@SuppressWarnings("static-method")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@ -3492,8 +3489,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
*
|
*
|
||||||
* @param word string to be camelize
|
* @param word string to be camelize
|
||||||
* @return camelized string
|
* @return camelized string
|
||||||
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
|
||||||
* @see org.openapitools.codegen.utils.StringUtils#camelize(String)
|
* @see org.openapitools.codegen.utils.StringUtils#camelize(String)
|
||||||
|
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static String camelize(String word) {
|
public static String camelize(String word) {
|
||||||
@ -3506,8 +3503,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
* @param word string to be camelize
|
* @param word string to be camelize
|
||||||
* @param lowercaseFirstLetter lower case for first letter if set to true
|
* @param lowercaseFirstLetter lower case for first letter if set to true
|
||||||
* @return camelized string
|
* @return camelized string
|
||||||
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
|
||||||
* @see org.openapitools.codegen.utils.StringUtils#camelize(String, boolean)
|
* @see org.openapitools.codegen.utils.StringUtils#camelize(String, boolean)
|
||||||
|
* @deprecated since version 3.2.3, may be removed with the next major release (4.0)
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static String camelize(String word, boolean lowercaseFirstLetter) {
|
public static String camelize(String word, boolean lowercaseFirstLetter) {
|
||||||
@ -4697,10 +4694,10 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
* Post-process the auto-generated file, e.g. using go-fmt to format the Go code. The file type can be "model-test",
|
* Post-process the auto-generated file, e.g. using go-fmt to format the Go code. The file type can be "model-test",
|
||||||
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-mustache", "supporting-common",
|
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-mustache", "supporting-common",
|
||||||
* "openapi-generator-ignore", "openapi-generator-version"
|
* "openapi-generator-ignore", "openapi-generator-version"
|
||||||
*
|
* <p>
|
||||||
* TODO: store these values in enum instead
|
* TODO: store these values in enum instead
|
||||||
*
|
*
|
||||||
* @param file file to be processed
|
* @param file file to be processed
|
||||||
* @param fileType file type
|
* @param fileType file type
|
||||||
*/
|
*/
|
||||||
public void postProcessFile(File file, String fileType) {
|
public void postProcessFile(File file, String fileType) {
|
||||||
|
@ -308,7 +308,7 @@ public class ModelUtils {
|
|||||||
if (schema.getAdditionalProperties() instanceof Schema) {
|
if (schema.getAdditionalProperties() instanceof Schema) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (schema.getAdditionalProperties() instanceof Boolean && (Boolean)schema.getAdditionalProperties()) {
|
if (schema.getAdditionalProperties() instanceof Boolean && (Boolean) schema.getAdditionalProperties()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -638,21 +638,42 @@ public class ModelUtils {
|
|||||||
* Get the actual schema from aliases. If the provided schema is not an alias, the schema itself will be returned.
|
* Get the actual schema from aliases. If the provided schema is not an alias, the schema itself will be returned.
|
||||||
*
|
*
|
||||||
* @param allSchemas all schemas
|
* @param allSchemas all schemas
|
||||||
* @param schema schema (alias or direct reference)
|
* @param schema schema (alias or direct reference)
|
||||||
* @return actual schema
|
* @return actual schema
|
||||||
*/
|
*/
|
||||||
public static Schema unaliasSchema(Map<String, Schema> allSchemas, Schema schema) {
|
public static Schema unaliasSchema(Map<String, Schema> allSchemas, Schema schema) {
|
||||||
|
if (allSchemas == null || allSchemas.isEmpty()) {
|
||||||
|
LOGGER.warn("allSchemas cann't be null/empty in unaliasSchema. Returned 'schema'");
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
|
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
|
||||||
Schema ref = allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref()));
|
Schema ref = allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref()));
|
||||||
if (ref == null) {
|
if (ref == null) {
|
||||||
LOGGER.warn("{} is not defined", schema.get$ref());
|
LOGGER.warn("{} is not defined", schema.get$ref());
|
||||||
return schema;
|
return schema;
|
||||||
} else if (isObjectSchema(ref)) { // model
|
|
||||||
return schema;
|
|
||||||
} else if (isStringSchema(ref) && (ref.getEnum() != null && !ref.getEnum().isEmpty())) {
|
} else if (isStringSchema(ref) && (ref.getEnum() != null && !ref.getEnum().isEmpty())) {
|
||||||
// top-level enum class
|
// top-level enum class
|
||||||
return schema;
|
return schema;
|
||||||
} else if (isMapSchema(ref) || isArraySchema(ref) || isComposedSchema(ref)) { // map/array def should be created as models
|
} else if (isArraySchema(ref) || isComposedSchema(ref)) { // array def should be created as models
|
||||||
|
return schema;
|
||||||
|
} else if (isMapSchema(ref)) {
|
||||||
|
if (ref.getProperties() != null && !ref.getProperties().isEmpty()) // has properties
|
||||||
|
return schema; // treat it as model
|
||||||
|
else {
|
||||||
|
// treat it as a typical map
|
||||||
|
/* TODO unalias the map item if it's an alias
|
||||||
|
if (ref.getAdditionalProperties() != null) {
|
||||||
|
|
||||||
|
Schema innerSchema = (Schema) ref.getAdditionalProperties();
|
||||||
|
if (StringUtils.isNotEmpty(innerSchema.get$ref())) { // map item is a ref to something else
|
||||||
|
//Schema unaliasInnerSchema = unaliasSchema(allSchemas, allSchemas.get(ModelUtils.getSimpleRef(innerSchema.get$ref())));
|
||||||
|
//ref.setAdditionalProperties(unaliasInnerSchema);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
return unaliasSchema(allSchemas, allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())));
|
||||||
|
}
|
||||||
|
} else if (isObjectSchema(ref)) { // model
|
||||||
return schema;
|
return schema;
|
||||||
} else {
|
} else {
|
||||||
return unaliasSchema(allSchemas, allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())));
|
return unaliasSchema(allSchemas, allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())));
|
||||||
@ -662,10 +683,10 @@ public class ModelUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Schema getAdditionalProperties(Schema schema) {
|
public static Schema getAdditionalProperties(Schema schema) {
|
||||||
if(schema.getAdditionalProperties() instanceof Schema) {
|
if (schema.getAdditionalProperties() instanceof Schema) {
|
||||||
return (Schema) schema.getAdditionalProperties();
|
return (Schema) schema.getAdditionalProperties();
|
||||||
}
|
}
|
||||||
if(schema.getAdditionalProperties() instanceof Boolean && (Boolean)schema.getAdditionalProperties()) {
|
if (schema.getAdditionalProperties() instanceof Boolean && (Boolean) schema.getAdditionalProperties()) {
|
||||||
return new ObjectSchema();
|
return new ObjectSchema();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|||||||
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||||
**MapOfEnumString** | **Dictionary<string, string>** | | [optional]
|
**MapOfEnumString** | **Dictionary<string, string>** | | [optional]
|
||||||
**DirectMap** | **Dictionary<string, bool?>** | | [optional]
|
**DirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||||
**IndirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**IndirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
||||||
/// <param name="directMap">directMap.</param>
|
/// <param name="directMap">directMap.</param>
|
||||||
/// <param name="indirectMap">indirectMap.</param>
|
/// <param name="indirectMap">indirectMap.</param>
|
||||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool?> directMap = default(Dictionary<string, bool?>), StringBooleanMap indirectMap = default(StringBooleanMap))
|
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool?> directMap = default(Dictionary<string, bool?>), Dictionary<string, bool?> indirectMap = default(Dictionary<string, bool?>))
|
||||||
{
|
{
|
||||||
this.MapMapOfString = mapMapOfString;
|
this.MapMapOfString = mapMapOfString;
|
||||||
this.MapOfEnumString = mapOfEnumString;
|
this.MapOfEnumString = mapOfEnumString;
|
||||||
@ -88,7 +88,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Gets or Sets IndirectMap
|
/// Gets or Sets IndirectMap
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="indirect_map", EmitDefaultValue=false)]
|
[DataMember(Name="indirect_map", EmitDefaultValue=false)]
|
||||||
public StringBooleanMap IndirectMap { get; set; }
|
public Dictionary<string, bool?> IndirectMap { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
@ -153,8 +153,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.IndirectMap == input.IndirectMap ||
|
this.IndirectMap == input.IndirectMap ||
|
||||||
(this.IndirectMap != null &&
|
this.IndirectMap != null &&
|
||||||
this.IndirectMap.Equals(input.IndirectMap))
|
this.IndirectMap.SequenceEqual(input.IndirectMap)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1130,7 +1130,7 @@ data MapTest = MapTest
|
|||||||
{ mapTestMapMapOfString :: !(Maybe (Map.Map String (Map.Map String Text))) -- ^ "map_map_of_string"
|
{ mapTestMapMapOfString :: !(Maybe (Map.Map String (Map.Map String Text))) -- ^ "map_map_of_string"
|
||||||
, mapTestMapOfEnumString :: !(Maybe (Map.Map String E'Inner)) -- ^ "map_of_enum_string"
|
, mapTestMapOfEnumString :: !(Maybe (Map.Map String E'Inner)) -- ^ "map_of_enum_string"
|
||||||
, mapTestDirectMap :: !(Maybe (Map.Map String Bool)) -- ^ "direct_map"
|
, mapTestDirectMap :: !(Maybe (Map.Map String Bool)) -- ^ "direct_map"
|
||||||
, mapTestIndirectMap :: !(Maybe StringBooleanMap) -- ^ "indirect_map"
|
, mapTestIndirectMap :: !(Maybe (Map.Map String Bool)) -- ^ "indirect_map"
|
||||||
} deriving (P.Show, P.Eq, P.Typeable)
|
} deriving (P.Show, P.Eq, P.Typeable)
|
||||||
|
|
||||||
-- | FromJSON MapTest
|
-- | FromJSON MapTest
|
||||||
|
@ -543,7 +543,7 @@ mapTestDirectMapL f MapTest{..} = (\mapTestDirectMap -> MapTest { mapTestDirectM
|
|||||||
{-# INLINE mapTestDirectMapL #-}
|
{-# INLINE mapTestDirectMapL #-}
|
||||||
|
|
||||||
-- | 'mapTestIndirectMap' Lens
|
-- | 'mapTestIndirectMap' Lens
|
||||||
mapTestIndirectMapL :: Lens_' MapTest (Maybe StringBooleanMap)
|
mapTestIndirectMapL :: Lens_' MapTest (Maybe (Map.Map String Bool))
|
||||||
mapTestIndirectMapL f MapTest{..} = (\mapTestIndirectMap -> MapTest { mapTestIndirectMap, ..} ) <$> f mapTestIndirectMap
|
mapTestIndirectMapL f MapTest{..} = (\mapTestIndirectMap -> MapTest { mapTestIndirectMap, ..} ) <$> f mapTestIndirectMap
|
||||||
{-# INLINE mapTestIndirectMapL #-}
|
{-# INLINE mapTestIndirectMapL #-}
|
||||||
|
|
||||||
|
@ -1324,7 +1324,8 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
indirect_map:
|
indirect_map:
|
||||||
$ref: '#/components/schemas/StringBooleanMap'
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
ArrayTest:
|
ArrayTest:
|
||||||
properties:
|
properties:
|
||||||
|
@ -273,7 +273,7 @@ instance Arbitrary MapTest where
|
|||||||
<$> arbitrary -- mapTestMapMapOfString :: Maybe (Map.Map String (Map.Map String Text))
|
<$> arbitrary -- mapTestMapMapOfString :: Maybe (Map.Map String (Map.Map String Text))
|
||||||
<*> arbitrary -- mapTestMapOfEnumString :: Maybe (Map.Map String Text)
|
<*> arbitrary -- mapTestMapOfEnumString :: Maybe (Map.Map String Text)
|
||||||
<*> arbitrary -- mapTestDirectMap :: Maybe (Map.Map String Bool)
|
<*> arbitrary -- mapTestDirectMap :: Maybe (Map.Map String Bool)
|
||||||
<*> arbitrary -- mapTestIndirectMap :: Maybe StringBooleanMap
|
<*> arbitrary -- mapTestIndirectMap :: Maybe (Map.Map String Bool)
|
||||||
|
|
||||||
instance Arbitrary MixedPropertiesAndAdditionalPropertiesClass where
|
instance Arbitrary MixedPropertiesAndAdditionalPropertiesClass where
|
||||||
arbitrary =
|
arbitrary =
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -74,7 +73,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -154,21 +153,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
||||||
@ -96,7 +95,7 @@ public class MapTest implements Parcelable {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest() {
|
public MapTest() {
|
||||||
}
|
}
|
||||||
@ -178,21 +177,29 @@ public class MapTest implements Parcelable {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +261,7 @@ public class MapTest implements Parcelable {
|
|||||||
mapMapOfString = (Map<String, Map<String, String>>)in.readValue(Map.class.getClassLoader());
|
mapMapOfString = (Map<String, Map<String, String>>)in.readValue(Map.class.getClassLoader());
|
||||||
mapOfEnumString = (Map<String, InnerEnum>)in.readValue(null);
|
mapOfEnumString = (Map<String, InnerEnum>)in.readValue(null);
|
||||||
directMap = (Map<String, Boolean>)in.readValue(null);
|
directMap = (Map<String, Boolean>)in.readValue(null);
|
||||||
indirectMap = (StringBooleanMap)in.readValue(StringBooleanMap.class.getClassLoader());
|
indirectMap = (Map<String, Boolean>)in.readValue(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||||
import javax.xml.bind.annotation.*;
|
import javax.xml.bind.annotation.*;
|
||||||
|
|
||||||
@ -92,9 +91,11 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@JacksonXmlProperty(localName = "indirect_map")
|
// Is a container wrapped=false
|
||||||
@XmlElement(name = "indirect_map")
|
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||||
private StringBooleanMap indirectMap = null;
|
// items.example= items.type=Boolean
|
||||||
|
@XmlElement(name = "inner")
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +175,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,22 +157,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@Valid
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,22 +157,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@Valid
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,22 +157,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@Valid
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -26,7 +26,6 @@ import java.io.IOException;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -94,7 +93,7 @@ public class MapTest {
|
|||||||
|
|
||||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -174,21 +173,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
**directMap** | **Map<String, Boolean>** | | [optional]
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirectMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.client.model.StringBooleanMap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -75,7 +74,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -155,21 +154,29 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|||||||
**map_map_of_string** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
**map_map_of_string** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
||||||
**map_of_enum_string** | **map[string,string]** | | [optional]
|
**map_of_enum_string** | **map[string,string]** | | [optional]
|
||||||
**direct_map** | **map[string,bool]** | | [optional]
|
**direct_map** | **map[string,bool]** | | [optional]
|
||||||
**indirect_map** | [**\OpenAPI\Client\Model\StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirect_map** | **map[string,bool]** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
'map_map_of_string' => 'map[string,map[string,string]]',
|
'map_map_of_string' => 'map[string,map[string,string]]',
|
||||||
'map_of_enum_string' => 'map[string,string]',
|
'map_of_enum_string' => 'map[string,string]',
|
||||||
'direct_map' => 'map[string,bool]',
|
'direct_map' => 'map[string,bool]',
|
||||||
'indirect_map' => '\OpenAPI\Client\Model\StringBooleanMap'
|
'indirect_map' => 'map[string,bool]'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -321,7 +321,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
/**
|
/**
|
||||||
* Gets indirect_map
|
* Gets indirect_map
|
||||||
*
|
*
|
||||||
* @return \OpenAPI\Client\Model\StringBooleanMap|null
|
* @return map[string,bool]|null
|
||||||
*/
|
*/
|
||||||
public function getIndirectMap()
|
public function getIndirectMap()
|
||||||
{
|
{
|
||||||
@ -331,7 +331,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
/**
|
/**
|
||||||
* Sets indirect_map
|
* Sets indirect_map
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\StringBooleanMap|null $indirect_map indirect_map
|
* @param map[string,bool]|null $indirect_map indirect_map
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,6 @@ Name | Type | Description | Notes
|
|||||||
**map_map_of_string** | **Hash<String, Hash<String, String>>** | | [optional]
|
**map_map_of_string** | **Hash<String, Hash<String, String>>** | | [optional]
|
||||||
**map_of_enum_string** | **Hash<String, String>** | | [optional]
|
**map_of_enum_string** | **Hash<String, String>** | | [optional]
|
||||||
**direct_map** | **Hash<String, BOOLEAN>** | | [optional]
|
**direct_map** | **Hash<String, BOOLEAN>** | | [optional]
|
||||||
**indirect_map** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirect_map** | **Hash<String, BOOLEAN>** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ module Petstore
|
|||||||
:'map_map_of_string' => :'Hash<String, Hash<String, String>>',
|
:'map_map_of_string' => :'Hash<String, Hash<String, String>>',
|
||||||
:'map_of_enum_string' => :'Hash<String, String>',
|
:'map_of_enum_string' => :'Hash<String, String>',
|
||||||
:'direct_map' => :'Hash<String, BOOLEAN>',
|
:'direct_map' => :'Hash<String, BOOLEAN>',
|
||||||
:'indirect_map' => :'StringBooleanMap'
|
:'indirect_map' => :'Hash<String, BOOLEAN>'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -91,7 +91,9 @@ module Petstore
|
|||||||
end
|
end
|
||||||
|
|
||||||
if attributes.has_key?(:'indirect_map')
|
if attributes.has_key?(:'indirect_map')
|
||||||
self.indirect_map = attributes[:'indirect_map']
|
if (value = attributes[:'indirect_map']).is_a?(Hash)
|
||||||
|
self.indirect_map = value
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|||||||
**map_map_of_string** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
**map_map_of_string** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
||||||
**map_of_enum_string** | **map[string,string]** | | [optional]
|
**map_of_enum_string** | **map[string,string]** | | [optional]
|
||||||
**direct_map** | **map[string,bool]** | | [optional]
|
**direct_map** | **map[string,bool]** | | [optional]
|
||||||
**indirect_map** | [**\OpenAPI\Client\Model\StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
**indirect_map** | **map[string,bool]** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
'map_map_of_string' => 'map[string,map[string,string]]',
|
'map_map_of_string' => 'map[string,map[string,string]]',
|
||||||
'map_of_enum_string' => 'map[string,string]',
|
'map_of_enum_string' => 'map[string,string]',
|
||||||
'direct_map' => 'map[string,bool]',
|
'direct_map' => 'map[string,bool]',
|
||||||
'indirect_map' => '\OpenAPI\Client\Model\StringBooleanMap'
|
'indirect_map' => 'map[string,bool]'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -321,7 +321,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
/**
|
/**
|
||||||
* Gets indirect_map
|
* Gets indirect_map
|
||||||
*
|
*
|
||||||
* @return \OpenAPI\Client\Model\StringBooleanMap|null
|
* @return map[string,bool]|null
|
||||||
*/
|
*/
|
||||||
public function getIndirectMap()
|
public function getIndirectMap()
|
||||||
{
|
{
|
||||||
@ -331,7 +331,7 @@ class MapTest implements ModelInterface, ArrayAccess
|
|||||||
/**
|
/**
|
||||||
* Sets indirect_map
|
* Sets indirect_map
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\StringBooleanMap|null $indirect_map indirect_map
|
* @param map[string,bool]|null $indirect_map indirect_map
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
@ -3,7 +3,6 @@ package org.openapitools.model;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -62,8 +61,7 @@ public enum InnerEnum {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
private Map<String, Boolean> indirectMap = null;
|
||||||
private StringBooleanMap indirectMap = null;
|
|
||||||
/**
|
/**
|
||||||
* Get mapMapOfString
|
* Get mapMapOfString
|
||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
@ -138,19 +136,24 @@ public enum InnerEnum {
|
|||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -73,7 +72,7 @@ public class MapTest implements Serializable {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -159,23 +158,31 @@ public class MapTest implements Serializable {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -56,7 +55,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
||||||
private @Valid StringBooleanMap indirectMap = null;
|
private @Valid Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ -111,7 +110,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -119,10 +118,10 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1557,7 +1557,9 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
indirect_map:
|
indirect_map:
|
||||||
$ref: '#/components/schemas/StringBooleanMap'
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
Tag:
|
||||||
example:
|
example:
|
||||||
|
@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -56,7 +55,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
||||||
private @Valid StringBooleanMap indirectMap = null;
|
private @Valid Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ -111,7 +110,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -119,10 +118,10 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1557,7 +1557,9 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
indirect_map:
|
indirect_map:
|
||||||
$ref: '#/components/schemas/StringBooleanMap'
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
Tag:
|
||||||
example:
|
example:
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,7 +71,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,23 +157,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,7 +71,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,23 +157,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,7 +71,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,23 +157,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,7 +71,7 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -158,23 +157,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,6 @@ class MapTest
|
|||||||
/** @var map[string,bool] $directMap */
|
/** @var map[string,bool] $directMap */
|
||||||
private $directMap;
|
private $directMap;
|
||||||
|
|
||||||
/** @var \OpenAPIServer\Model\StringBooleanMap $indirectMap */
|
/** @var map[string,bool] $indirectMap */
|
||||||
private $indirectMap;
|
private $indirectMap;
|
||||||
}
|
}
|
||||||
|
@ -38,9 +38,11 @@ class MapTest
|
|||||||
public $direct_map;
|
public $direct_map;
|
||||||
/**
|
/**
|
||||||
* @DTA\Data(field="indirect_map", nullable=true)
|
* @DTA\Data(field="indirect_map", nullable=true)
|
||||||
* @DTA\Strategy(name="Object", options={"type":\App\DTO\StringBooleanMap::class})
|
* TODO check validator and strategy are correct and can handle container item type
|
||||||
* @DTA\Validator(name="Dictionary", options={"type":\App\DTO\StringBooleanMap::class})
|
* @DTA\Validator(name="Collection", options={"validators":{
|
||||||
* @var \App\DTO\StringBooleanMap
|
* {"name":"Type", "options":{"type":"bool"}}
|
||||||
|
* }})
|
||||||
|
* @var map[string,bool]
|
||||||
*/
|
*/
|
||||||
public $indirect_map;
|
public $indirect_map;
|
||||||
}
|
}
|
||||||
|
@ -52,17 +52,7 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default CompletableFuture<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
default CompletableFuture<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
return CompletableFuture.supplyAsync(()-> {
|
return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED));
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
|
||||||
}, Runnable::run);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,17 +86,7 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default CompletableFuture<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
default CompletableFuture<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
return CompletableFuture.supplyAsync(()-> {
|
return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED));
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
|
||||||
}, Runnable::run);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,17 +98,7 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default CompletableFuture<ResponseEntity<String>> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
default CompletableFuture<ResponseEntity<String>> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
return CompletableFuture.supplyAsync(()-> {
|
return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED));
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
|
||||||
}, Runnable::run);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,14 +51,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -91,14 +83,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -111,14 +95,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,12 +41,6 @@ public class FakeApiController implements FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
public ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -63,23 +57,11 @@ public class FakeApiController implements FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
public ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
public ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,12 +41,6 @@ public class FakeApiController implements FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
public ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -63,23 +57,11 @@ public class FakeApiController implements FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
public ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
public ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,14 +36,6 @@ public interface FakeApiDelegate {
|
|||||||
* @see FakeApi#fakeOuterBooleanSerialize
|
* @see FakeApi#fakeOuterBooleanSerialize
|
||||||
*/
|
*/
|
||||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(Boolean body) {
|
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(Boolean body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -68,14 +60,6 @@ public interface FakeApiDelegate {
|
|||||||
* @see FakeApi#fakeOuterNumberSerialize
|
* @see FakeApi#fakeOuterNumberSerialize
|
||||||
*/
|
*/
|
||||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(BigDecimal body) {
|
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(BigDecimal body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -84,14 +68,6 @@ public interface FakeApiDelegate {
|
|||||||
* @see FakeApi#fakeOuterStringSerialize
|
* @see FakeApi#fakeOuterStringSerialize
|
||||||
*/
|
*/
|
||||||
default ResponseEntity<String> fakeOuterStringSerialize(String body) {
|
default ResponseEntity<String> fakeOuterStringSerialize(String body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,14 +53,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -97,14 +89,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -119,14 +103,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,12 +42,6 @@ public interface FakeApiDelegate {
|
|||||||
ServerWebExchange exchange) {
|
ServerWebExchange exchange) {
|
||||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||||
Mono<Void> result = Mono.empty();
|
Mono<Void> result = Mono.empty();
|
||||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
result = ApiUtil.getExampleResponse(exchange, "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.then(Mono.empty());
|
return result.then(Mono.empty());
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -76,12 +70,6 @@ public interface FakeApiDelegate {
|
|||||||
ServerWebExchange exchange) {
|
ServerWebExchange exchange) {
|
||||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||||
Mono<Void> result = Mono.empty();
|
Mono<Void> result = Mono.empty();
|
||||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
result = ApiUtil.getExampleResponse(exchange, "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.then(Mono.empty());
|
return result.then(Mono.empty());
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -93,12 +81,6 @@ public interface FakeApiDelegate {
|
|||||||
ServerWebExchange exchange) {
|
ServerWebExchange exchange) {
|
||||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||||
Mono<Void> result = Mono.empty();
|
Mono<Void> result = Mono.empty();
|
||||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
result = ApiUtil.getExampleResponse(exchange, "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.then(Mono.empty());
|
return result.then(Mono.empty());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1614,7 +1614,9 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
indirect_map:
|
indirect_map:
|
||||||
$ref: '#/components/schemas/StringBooleanMap'
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
Tag:
|
||||||
example:
|
example:
|
||||||
|
@ -51,14 +51,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -91,14 +83,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -111,14 +95,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,14 +51,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -91,14 +83,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -111,14 +95,6 @@ public interface FakeApi {
|
|||||||
produces = { "*/*" },
|
produces = { "*/*" },
|
||||||
method = RequestMethod.POST)
|
method = RequestMethod.POST)
|
||||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||||
getRequest().ifPresent(request -> {
|
|
||||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
|
||||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
|
||||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
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 org.openapitools.model.StringBooleanMap;
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@ -62,7 +61,8 @@ public class MapTest {
|
|||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
@JsonProperty("indirect_map")
|
||||||
private StringBooleanMap indirectMap = null;
|
@Valid
|
||||||
|
private Map<String, Boolean> indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@ -149,24 +149,31 @@ public class MapTest {
|
|||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||||
|
if (this.indirectMap == null) {
|
||||||
|
this.indirectMap = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.indirectMap.put(key, indirectMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
@Valid
|
|
||||||
|
|
||||||
public StringBooleanMap getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user