[csharp] Fixed data type issues (#13541)

* fixed data type issues

* reverted a change
This commit is contained in:
devhl-labs 2022-10-03 10:08:28 -04:00 committed by GitHub
parent c30ae752a0
commit 0581d81eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 320 additions and 225 deletions

View File

@ -428,6 +428,17 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
@Override
public void postProcessModelProperty(CodegenModel model, CodegenProperty property) {
super.postProcessModelProperty(model, property);
if (property.isInnerEnum && property.items != null) {
// format maps of inner enums to include the classname eg: Dictionary<string, MapTest.InnerEnum>
property.datatypeWithEnum = property.datatypeWithEnum.replace(property.items.datatypeWithEnum, model.classname + "." + property.items.datatypeWithEnum);
property.dataType = property.datatypeWithEnum;
}
if (property.isMap || property.isContainer) {
// maps of enums will be marked both isMap and isEnum, correct that now
property.isEnum = false;
property.isInnerEnum = false;
property.isString = false;
}
}
@Override
@ -459,9 +470,58 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
postProcessEnumRefs(processed);
updateValueTypeProperty(processed);
updateNullableTypeProperty(processed);
for (Map.Entry<String, ModelsMap> entry : objs.entrySet()) {
CodegenModel model = ModelUtils.getModelByName(entry.getKey(), objs);
// TODO: why do these collections contain different instances?
// fixing allVars should suffice instead of patching every collection
for (CodegenProperty property : model.allVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.vars){
patchProperty(model, property);
}
for (CodegenProperty property : model.readWriteVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.optionalVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.parentVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.requiredVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.readOnlyVars){
patchProperty(model, property);
}
for (CodegenProperty property : model.nonNullableVars){
patchProperty(model, property);
}
}
return processed;
}
private void patchProperty(CodegenModel model, CodegenProperty property){
/**
* Hotfix for this issue
* https://github.com/OpenAPITools/openapi-generator/issues/12155
*/
if (property.dataType.equals("List") && property.getComposedSchemas() != null && property.getComposedSchemas().getAllOf() != null){
List<CodegenProperty> composedSchemas = property.getComposedSchemas().getAllOf();
if (composedSchemas.size() == 0) {
return;
}
CodegenProperty composedProperty = composedSchemas.stream().findFirst().get();
property.dataType = composedProperty.dataType;
property.datatypeWithEnum = composedProperty.datatypeWithEnum;
property.isMap = composedProperty.isMap;
property.isContainer = composedProperty.isContainer;
}
}
@Override
protected List<Map<String, Object>> buildEnumVars(List<Object> values, String dataType) {
List<Map<String, Object>> enumVars = super.buildEnumVars(values, dataType);

View File

@ -1489,6 +1489,7 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
cm.readOnlyVars.removeIf(item -> item.baseName.equals(v.baseName));
cm.requiredVars.removeIf(item -> item.baseName.equals(v.baseName));
cm.allVars.removeIf(item -> item.baseName.equals(v.baseName));
cm.nonNullableVars.removeIf(item -> item.baseName.equals(v.baseName));
});
}

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -98,33 +98,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum
{
get{ return _ArrayEnum;}
set
{
_ArrayEnum = value;
_flagArrayEnum = true;
}
}
private List<ArrayEnumEnum> _ArrayEnum;
private bool _flagArrayEnum;
/// <summary>
/// Returns false as ArrayEnum should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeArrayEnum()
{
return _flagArrayEnum;
}
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -145,6 +118,30 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum
{
get{ return _ArrayEnum;}
set
{
_ArrayEnum = value;
_flagArrayEnum = true;
}
}
private List<EnumArrays.ArrayEnumEnum> _ArrayEnum;
private bool _flagArrayEnum;
/// <summary>
/// Returns false as ArrayEnum should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeArrayEnum()
{
return _flagArrayEnum;
}
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -205,7 +202,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -52,33 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString
{
get{ return _MapOfEnumString;}
set
{
_MapOfEnumString = value;
_flagMapOfEnumString = true;
}
}
private Dictionary<string, InnerEnum> _MapOfEnumString;
private bool _flagMapOfEnumString;
/// <summary>
/// Returns false as MapOfEnumString should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeMapOfEnumString()
{
return _flagMapOfEnumString;
}
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -136,6 +109,30 @@ namespace Org.OpenAPITools.Model
return _flagMapMapOfString;
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString
{
get{ return _MapOfEnumString;}
set
{
_MapOfEnumString = value;
_flagMapOfEnumString = true;
}
}
private Dictionary<string, MapTest.InnerEnum> _MapOfEnumString;
private bool _flagMapOfEnumString;
/// <summary>
/// Returns false as MapOfEnumString should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeMapOfEnumString()
{
return _flagMapOfEnumString;
}
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
[DataMember(Name = "direct_map", EmitDefaultValue = false)]
@ -248,7 +245,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// </summary>
/// <param name="justSymbol">justSymbol</param>
/// <param name="arrayEnum">arrayEnum</param>
public EnumArrays(JustSymbolEnum? justSymbol = default, List<ArrayEnumEnum>? arrayEnum = default)
public EnumArrays(JustSymbolEnum? justSymbol = default, List<EnumArrays.ArrayEnumEnum>? arrayEnum = default)
{
JustSymbol = justSymbol;
ArrayEnum = arrayEnum;
@ -86,12 +86,11 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[JsonPropertyName("array_enum")]
public List<ArrayEnumEnum>? ArrayEnum { get; set; }
public List<EnumArrays.ArrayEnumEnum>? ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
@ -144,7 +143,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
/// <param name="mapOfEnumString">mapOfEnumString</param>
/// <param name="directMap">directMap</param>
/// <param name="indirectMap">indirectMap</param>
public MapTest(Dictionary<string, Dictionary<string, string>>? mapMapOfString = default, Dictionary<string, InnerEnum>? mapOfEnumString = default, Dictionary<string, bool>? directMap = default, Dictionary<string, bool>? indirectMap = default)
public MapTest(Dictionary<string, Dictionary<string, string>>? mapMapOfString = default, Dictionary<string, MapTest.InnerEnum>? mapOfEnumString = default, Dictionary<string, bool>? directMap = default, Dictionary<string, bool>? indirectMap = default)
{
MapMapOfString = mapMapOfString;
MapOfEnumString = mapOfEnumString;
@ -65,19 +65,18 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, InnerEnum>? MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets MapMapOfString
/// </summary>
[JsonPropertyName("map_map_of_string")]
public Dictionary<string, Dictionary<string, string>>? MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, MapTest.InnerEnum>? MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -146,7 +145,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// </summary>
/// <param name="justSymbol">justSymbol</param>
/// <param name="arrayEnum">arrayEnum</param>
public EnumArrays(JustSymbolEnum justSymbol = default, List<ArrayEnumEnum> arrayEnum = default)
public EnumArrays(JustSymbolEnum justSymbol = default, List<EnumArrays.ArrayEnumEnum> arrayEnum = default)
{
JustSymbol = justSymbol;
ArrayEnum = arrayEnum;
@ -84,12 +84,11 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[JsonPropertyName("array_enum")]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
@ -142,7 +141,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="mapOfEnumString">mapOfEnumString</param>
/// <param name="directMap">directMap</param>
/// <param name="indirectMap">indirectMap</param>
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default, Dictionary<string, InnerEnum> mapOfEnumString = default, Dictionary<string, bool> directMap = default, Dictionary<string, bool> indirectMap = default)
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default, Dictionary<string, MapTest.InnerEnum> mapOfEnumString = default, Dictionary<string, bool> directMap = default, Dictionary<string, bool> indirectMap = default)
{
MapMapOfString = mapMapOfString;
MapOfEnumString = mapOfEnumString;
@ -63,19 +63,18 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets MapMapOfString
/// </summary>
[JsonPropertyName("map_map_of_string")]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -144,7 +143,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// </summary>
/// <param name="justSymbol">justSymbol</param>
/// <param name="arrayEnum">arrayEnum</param>
public EnumArrays(JustSymbolEnum justSymbol = default, List<ArrayEnumEnum> arrayEnum = default)
public EnumArrays(JustSymbolEnum justSymbol = default, List<EnumArrays.ArrayEnumEnum> arrayEnum = default)
{
JustSymbol = justSymbol;
ArrayEnum = arrayEnum;
@ -84,12 +84,11 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[JsonPropertyName("array_enum")]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
@ -142,7 +141,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="mapOfEnumString">mapOfEnumString</param>
/// <param name="directMap">directMap</param>
/// <param name="indirectMap">indirectMap</param>
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default, Dictionary<string, InnerEnum> mapOfEnumString = default, Dictionary<string, bool> directMap = default, Dictionary<string, bool> indirectMap = default)
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default, Dictionary<string, MapTest.InnerEnum> mapOfEnumString = default, Dictionary<string, bool> directMap = default, Dictionary<string, bool> indirectMap = default)
{
MapMapOfString = mapMapOfString;
MapOfEnumString = mapOfEnumString;
@ -63,19 +63,18 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets MapMapOfString
/// </summary>
[JsonPropertyName("map_map_of_string")]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[JsonPropertyName("map_of_enum_string")]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -144,7 +143,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -79,13 +79,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -98,6 +91,12 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -158,7 +157,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -53,13 +53,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -82,6 +75,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -159,7 +158,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -78,13 +78,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -97,6 +90,12 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -157,7 +156,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -52,13 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -81,6 +74,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -158,7 +157,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -78,13 +78,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -97,6 +90,12 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -157,7 +156,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -52,13 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -81,6 +74,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -158,7 +157,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -78,13 +78,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -97,6 +90,12 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -157,7 +156,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -52,13 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -81,6 +74,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -158,7 +157,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -78,13 +78,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -97,6 +90,12 @@ namespace Org.OpenAPITools.Model
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -157,7 +156,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();

View File

@ -52,13 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -81,6 +74,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -158,7 +157,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [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)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -78,13 +78,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -96,6 +89,12 @@ namespace Org.OpenAPITools.Model
this.ArrayEnum = arrayEnum;
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name = "array_enum", EmitDefaultValue = false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
@ -149,7 +148,10 @@ namespace Org.OpenAPITools.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
if (this.ArrayEnum != null)
{
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
}
return hashCode;
}
}

View File

@ -52,13 +52,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -80,6 +73,12 @@ namespace Org.OpenAPITools.Model
[DataMember(Name = "map_map_of_string", EmitDefaultValue = false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name = "map_of_enum_string", EmitDefaultValue = false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap
/// </summary>
@ -150,7 +149,10 @@ namespace Org.OpenAPITools.Model
{
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
}
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
if (this.MapOfEnumString != null)
{
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
}
if (this.DirectMap != null)
{
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **string** | | [optional]
**ArrayEnum** | **List&lt;string&gt;** | | [optional]
**ArrayEnum** | **List&lt;EnumArrays.ArrayEnumEnum&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, MapTest.InnerEnum&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]

View File

@ -75,12 +75,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name="array_enum", EmitDefaultValue=false)]
public List<ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
/// </summary>
@ -93,6 +87,11 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets ArrayEnum
/// </summary>
[DataMember(Name="array_enum", EmitDefaultValue=false)]
public List<EnumArrays.ArrayEnumEnum> ArrayEnum { get; set; }
/// <summary>
/// Returns the string presentation of the object

View File

@ -50,12 +50,6 @@ namespace Org.OpenAPITools.Model
}
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name="map_of_enum_string", EmitDefaultValue=false)]
public Dictionary<string, InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MapTest" /> class.
/// </summary>
@ -77,6 +71,11 @@ namespace Org.OpenAPITools.Model
[DataMember(Name="map_map_of_string", EmitDefaultValue=false)]
public Dictionary<string, Dictionary<string, string>> MapMapOfString { get; set; }
/// <summary>
/// Gets or Sets MapOfEnumString
/// </summary>
[DataMember(Name="map_of_enum_string", EmitDefaultValue=false)]
public Dictionary<string, MapTest.InnerEnum> MapOfEnumString { get; set; }
/// <summary>
/// Gets or Sets DirectMap