fix spec for map and array

This commit is contained in:
wing328 2016-05-29 17:28:33 +08:00
parent e6825eaff4
commit 6d1fd2c78d
11 changed files with 161 additions and 56 deletions

View File

@ -949,8 +949,17 @@ definitions:
- -1.2 - -1.2
AdditionalPropertiesClass: AdditionalPropertiesClass:
type: object type: object
additionalProperties: properties:
type: string map_property:
type: object
additionalProperties:
type: string
map_of_map_property:
type: object
additionalProperties:
type: object
additionalProperties:
type: string
MixedPropertiesAndAdditionalPropertiesClass: MixedPropertiesAndAdditionalPropertiesClass:
type: object type: object
properties: properties:
@ -960,9 +969,10 @@ definitions:
dateTime: dateTime:
type: string type: string
format: date-time format: date-time
additionalProperties: map:
type: string type: object
$ref: '#/definitions/Animal' additionalProperties:
$ref: '#/definitions/Animal'
ReadOnlyFirst: ReadOnlyFirst:
type: object type: object
properties: properties:
@ -973,23 +983,24 @@ definitions:
type: string type: string
ArrayTest: ArrayTest:
type: object type: object
array_of_string: properties:
type: array array_of_string:
items:
type: string
array_array_of_integer:
type: array
items:
type: array type: array
items: items:
type: integer type: string
format: int64 array_array_of_integer:
array_array_of_model:
type: array
items:
type: array type: array
items: items:
$ref: '#/definitions/ReadOnlyFirst' type: array
items:
type: integer
format: int64
array_array_of_model:
type: array
items:
type: array
items:
$ref: '#/definitions/ReadOnlyFirst'
externalDocs: externalDocs:
description: Find out more about Swagger description: Find out more about Swagger
url: 'http://swagger.io' url: 'http://swagger.io'

View File

@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012 # Visual Studio 2012
VisualStudioVersion = 12.0.0.0 VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1 MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{C81D6286-7BA5-4920-8591-F59169CCE4A4}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject EndProject
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C81D6286-7BA5-4920-8591-F59169CCE4A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}.Debug|Any CPU.Build.0 = Debug|Any CPU {C81D6286-7BA5-4920-8591-F59169CCE4A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}.Release|Any CPU.ActiveCfg = Release|Any CPU {C81D6286-7BA5-4920-8591-F59169CCE4A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}.Release|Any CPU.Build.0 = Release|Any CPU {C81D6286-7BA5-4920-8591-F59169CCE4A4}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

View File

@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
- API version: 1.0.0 - API version: 1.0.0
- SDK version: 1.0.0 - SDK version: 1.0.0
- Build date: 2016-05-25T14:35:23.891+08:00 - Build date: 2016-05-29T17:27:36.037+08:00
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen - Build package: class io.swagger.codegen.languages.CSharpClientCodegen
## Frameworks supported ## Frameworks supported

View File

@ -3,6 +3,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MapProperty** | **Dictionary<string, string>** | | [optional]
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [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)

View File

@ -3,6 +3,9 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayOfString** | **List<string>** | | [optional]
**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional]
**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [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)

View File

@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Uuid** | **Guid?** | | [optional] **Uuid** | **Guid?** | | [optional]
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime?** | | [optional]
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [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)

View File

@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -59,38 +59,36 @@ limitations under the License.
<Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="Newtonsoft.Json"> <Reference Include="Newtonsoft.Json">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference> </Reference>
<Reference Include="RestSharp"> <Reference Include="RestSharp">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath> <HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\packages')">..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath> <HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
</Reference> </Reference>
<Reference Include="nunit.framework"> <Reference Include="nunit.framework">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> <HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> <HintPath Condition="Exists('..\packages')">..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> <HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> <HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="**\*.cs" /> <Compile Include="**\*.cs"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj"> <ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
<Project>{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}</Project> <Project>{C81D6286-7BA5-4920-8591-F59169CCE4A4}</Project>
<Name>IO.Swagger</Name> <Name>IO.Swagger</Name>
</ProjectReference> </ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="swagger-logo.png" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -24,7 +24,7 @@ limitations under the License.
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D4DE6CAE-4BE8-4F73-862A-6E6B7DF37446}</ProjectGuid> <ProjectGuid>{C81D6286-7BA5-4920-8591-F59169CCE4A4}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Swagger Library</RootNamespace> <RootNamespace>Swagger Library</RootNamespace>

View File

@ -37,15 +37,29 @@ namespace IO.Swagger.Model
/// AdditionalPropertiesClass /// AdditionalPropertiesClass
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AdditionalPropertiesClass : Dictionary<String, string>, IEquatable<AdditionalPropertiesClass> public partial class AdditionalPropertiesClass : IEquatable<AdditionalPropertiesClass>
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
/// </summary> /// </summary>
public AdditionalPropertiesClass() /// <param name="MapProperty">MapProperty.</param>
/// <param name="MapOfMapProperty">MapOfMapProperty.</param>
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = null, Dictionary<string, Dictionary<string, string>> MapOfMapProperty = null)
{ {
this.MapProperty = MapProperty;
this.MapOfMapProperty = MapOfMapProperty;
} }
/// <summary>
/// Gets or Sets MapProperty
/// </summary>
[DataMember(Name="map_property", EmitDefaultValue=false)]
public Dictionary<string, string> MapProperty { get; set; }
/// <summary>
/// Gets or Sets MapOfMapProperty
/// </summary>
[DataMember(Name="map_of_map_property", EmitDefaultValue=false)]
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
@ -54,6 +68,8 @@ namespace IO.Swagger.Model
{ {
var sb = new StringBuilder(); var sb = new StringBuilder();
sb.Append("class AdditionalPropertiesClass {\n"); sb.Append("class AdditionalPropertiesClass {\n");
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -62,7 +78,7 @@ namespace IO.Swagger.Model
/// Returns the JSON string presentation of the object /// Returns the JSON string presentation of the object
/// </summary> /// </summary>
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public new string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return JsonConvert.SerializeObject(this, Formatting.Indented);
} }
@ -89,7 +105,17 @@ namespace IO.Swagger.Model
if (other == null) if (other == null)
return false; return false;
return false; return
(
this.MapProperty == other.MapProperty ||
this.MapProperty != null &&
this.MapProperty.SequenceEqual(other.MapProperty)
) &&
(
this.MapOfMapProperty == other.MapOfMapProperty ||
this.MapOfMapProperty != null &&
this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty)
);
} }
/// <summary> /// <summary>
@ -103,6 +129,10 @@ namespace IO.Swagger.Model
{ {
int hash = 41; int hash = 41;
// Suitable nullity checks etc, of course :) // Suitable nullity checks etc, of course :)
if (this.MapProperty != null)
hash = hash * 59 + this.MapProperty.GetHashCode();
if (this.MapOfMapProperty != null)
hash = hash * 59 + this.MapOfMapProperty.GetHashCode();
return hash; return hash;
} }
} }

View File

@ -42,10 +42,31 @@ namespace IO.Swagger.Model
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayTest" /> class. /// Initializes a new instance of the <see cref="ArrayTest" /> class.
/// </summary> /// </summary>
public ArrayTest() /// <param name="ArrayOfString">ArrayOfString.</param>
/// <param name="ArrayArrayOfInteger">ArrayArrayOfInteger.</param>
/// <param name="ArrayArrayOfModel">ArrayArrayOfModel.</param>
public ArrayTest(List<string> ArrayOfString = null, List<List<long?>> ArrayArrayOfInteger = null, List<List<ReadOnlyFirst>> ArrayArrayOfModel = null)
{ {
this.ArrayOfString = ArrayOfString;
this.ArrayArrayOfInteger = ArrayArrayOfInteger;
this.ArrayArrayOfModel = ArrayArrayOfModel;
} }
/// <summary>
/// Gets or Sets ArrayOfString
/// </summary>
[DataMember(Name="array_of_string", EmitDefaultValue=false)]
public List<string> ArrayOfString { get; set; }
/// <summary>
/// Gets or Sets ArrayArrayOfInteger
/// </summary>
[DataMember(Name="array_array_of_integer", EmitDefaultValue=false)]
public List<List<long?>> ArrayArrayOfInteger { get; set; }
/// <summary>
/// Gets or Sets ArrayArrayOfModel
/// </summary>
[DataMember(Name="array_array_of_model", EmitDefaultValue=false)]
public List<List<ReadOnlyFirst>> ArrayArrayOfModel { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
@ -54,6 +75,9 @@ namespace IO.Swagger.Model
{ {
var sb = new StringBuilder(); var sb = new StringBuilder();
sb.Append("class ArrayTest {\n"); sb.Append("class ArrayTest {\n");
sb.Append(" ArrayOfString: ").Append(ArrayOfString).Append("\n");
sb.Append(" ArrayArrayOfInteger: ").Append(ArrayArrayOfInteger).Append("\n");
sb.Append(" ArrayArrayOfModel: ").Append(ArrayArrayOfModel).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -89,7 +113,22 @@ namespace IO.Swagger.Model
if (other == null) if (other == null)
return false; return false;
return false; return
(
this.ArrayOfString == other.ArrayOfString ||
this.ArrayOfString != null &&
this.ArrayOfString.SequenceEqual(other.ArrayOfString)
) &&
(
this.ArrayArrayOfInteger == other.ArrayArrayOfInteger ||
this.ArrayArrayOfInteger != null &&
this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger)
) &&
(
this.ArrayArrayOfModel == other.ArrayArrayOfModel ||
this.ArrayArrayOfModel != null &&
this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel)
);
} }
/// <summary> /// <summary>
@ -103,6 +142,12 @@ namespace IO.Swagger.Model
{ {
int hash = 41; int hash = 41;
// Suitable nullity checks etc, of course :) // Suitable nullity checks etc, of course :)
if (this.ArrayOfString != null)
hash = hash * 59 + this.ArrayOfString.GetHashCode();
if (this.ArrayArrayOfInteger != null)
hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode();
if (this.ArrayArrayOfModel != null)
hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode();
return hash; return hash;
} }
} }

View File

@ -37,17 +37,19 @@ namespace IO.Swagger.Model
/// MixedPropertiesAndAdditionalPropertiesClass /// MixedPropertiesAndAdditionalPropertiesClass
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class MixedPropertiesAndAdditionalPropertiesClass : Dictionary<String, Animal>, IEquatable<MixedPropertiesAndAdditionalPropertiesClass> public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable<MixedPropertiesAndAdditionalPropertiesClass>
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
/// </summary> /// </summary>
/// <param name="Uuid">Uuid.</param> /// <param name="Uuid">Uuid.</param>
/// <param name="DateTime">DateTime.</param> /// <param name="DateTime">DateTime.</param>
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = null, DateTime? DateTime = null) /// <param name="Map">Map.</param>
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = null, DateTime? DateTime = null, Dictionary<string, Animal> Map = null)
{ {
this.Uuid = Uuid; this.Uuid = Uuid;
this.DateTime = DateTime; this.DateTime = DateTime;
this.Map = Map;
} }
/// <summary> /// <summary>
@ -61,6 +63,11 @@ namespace IO.Swagger.Model
[DataMember(Name="dateTime", EmitDefaultValue=false)] [DataMember(Name="dateTime", EmitDefaultValue=false)]
public DateTime? DateTime { get; set; } public DateTime? DateTime { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Map
/// </summary>
[DataMember(Name="map", EmitDefaultValue=false)]
public Dictionary<string, Animal> Map { get; set; }
/// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
/// </summary> /// </summary>
/// <returns>String presentation of the object</returns> /// <returns>String presentation of the object</returns>
@ -70,6 +77,7 @@ namespace IO.Swagger.Model
sb.Append("class MixedPropertiesAndAdditionalPropertiesClass {\n"); sb.Append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n");
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Map: ").Append(Map).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -78,7 +86,7 @@ namespace IO.Swagger.Model
/// Returns the JSON string presentation of the object /// Returns the JSON string presentation of the object
/// </summary> /// </summary>
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public new string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return JsonConvert.SerializeObject(this, Formatting.Indented);
} }
@ -115,6 +123,11 @@ namespace IO.Swagger.Model
this.DateTime == other.DateTime || this.DateTime == other.DateTime ||
this.DateTime != null && this.DateTime != null &&
this.DateTime.Equals(other.DateTime) this.DateTime.Equals(other.DateTime)
) &&
(
this.Map == other.Map ||
this.Map != null &&
this.Map.SequenceEqual(other.Map)
); );
} }
@ -133,6 +146,8 @@ namespace IO.Swagger.Model
hash = hash * 59 + this.Uuid.GetHashCode(); hash = hash * 59 + this.Uuid.GetHashCode();
if (this.DateTime != null) if (this.DateTime != null)
hash = hash * 59 + this.DateTime.GetHashCode(); hash = hash * 59 + this.DateTime.GetHashCode();
if (this.Map != null)
hash = hash * 59 + this.Map.GetHashCode();
return hash; return hash;
} }
} }