fix copmile for C# model annotation

This commit is contained in:
wing328 2016-09-19 16:25:47 +08:00
parent 1be134facf
commit 1d748e47da
69 changed files with 695 additions and 71 deletions

View File

@ -4,6 +4,7 @@ import com.google.common.collect.ImmutableMap;
import io.swagger.codegen.CodegenConstants; import io.swagger.codegen.CodegenConstants;
import io.swagger.codegen.CodegenType; import io.swagger.codegen.CodegenType;
import io.swagger.codegen.CodegenModel; import io.swagger.codegen.CodegenModel;
import io.swagger.codegen.CodegenParameter;
import io.swagger.codegen.SupportingFile; import io.swagger.codegen.SupportingFile;
import io.swagger.codegen.CodegenProperty; import io.swagger.codegen.CodegenProperty;
import io.swagger.codegen.CodegenOperation; import io.swagger.codegen.CodegenOperation;
@ -11,8 +12,10 @@ import io.swagger.codegen.CliOption;
import io.swagger.models.Model; import io.swagger.models.Model;
import java.io.File; import java.io.File;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@ -32,6 +32,7 @@ cp packages/RestSharp.105.1.0/lib/{{targetFrameworkNuget}}/RestSharp.dll bin/Res
echo "[INFO] Run 'mcs' to build bin/{{{packageName}}}.dll" echo "[INFO] Run 'mcs' to build bin/{{{packageName}}}.dll"
mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\ mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\
bin/RestSharp.dll,\ bin/RestSharp.dll,\
System.ComponentModel.DataAnnotations.dll,\
System.Runtime.Serialization.dll \ System.Runtime.Serialization.dll \
-target:library \ -target:library \
-out:bin/{{packageName}}.dll \ -out:bin/{{packageName}}.dll \

View File

@ -14,8 +14,12 @@
@echo off @echo off
{{#supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319{{/supportsAsync}} {{#supportsAsync}}
{{^supportsAsync}}SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5{{/supportsAsync}} SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319
{{/supportsAsync}}
{{^supportsAsync}}
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5
{{/supportsAsync}}
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')" if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
.\nuget.exe install src\{{packageName}}\packages.config -o packages .\nuget.exe install src\{{packageName}}\packages.config -o packages

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", "{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{473916C4-D026-4063-8A3D-34BC255A0E7A}"
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
{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {473916C4-D026-4063-8A3D-34BC255A0E7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}.Debug|Any CPU.Build.0 = Debug|Any CPU {473916C4-D026-4063-8A3D-34BC255A0E7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}.Release|Any CPU.ActiveCfg = Release|Any CPU {473916C4-D026-4063-8A3D-34BC255A0E7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}.Release|Any CPU.Build.0 = Release|Any CPU {473916C4-D026-4063-8A3D-34BC255A0E7A}.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

@ -32,6 +32,7 @@ cp packages/RestSharp.105.1.0/lib/net45/RestSharp.dll bin/RestSharp.dll;
echo "[INFO] Run 'mcs' to build bin/IO.Swagger.dll" echo "[INFO] Run 'mcs' to build bin/IO.Swagger.dll"
mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\ mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\
bin/RestSharp.dll,\ bin/RestSharp.dll,\
System.ComponentModel.DataAnnotations.dll,\
System.Runtime.Serialization.dll \ System.Runtime.Serialization.dll \
-target:library \ -target:library \
-out:bin/IO.Swagger.dll \ -out:bin/IO.Swagger.dll \

View File

@ -54,6 +54,7 @@ limitations under the License.
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Runtime.Serialization" />

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>{CD8F9D95-6AFF-40BD-B8E6-58AF86348EC2}</ProjectGuid> <ProjectGuid>{473916C4-D026-4063-8A3D-34BC255A0E7A}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IO.Swagger</RootNamespace> <RootNamespace>IO.Swagger</RootNamespace>
@ -54,6 +54,7 @@ limitations under the License.
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Runtime.Serialization" />

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// AdditionalPropertiesClass /// AdditionalPropertiesClass
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AdditionalPropertiesClass : IEquatable<AdditionalPropertiesClass> public partial class AdditionalPropertiesClass : IEquatable<AdditionalPropertiesClass>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
@ -136,6 +138,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Animal /// Animal
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Animal : IEquatable<Animal> public partial class Animal : IEquatable<Animal>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Animal" /> class. /// Initializes a new instance of the <see cref="Animal" /> class.
@ -157,6 +159,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// AnimalFarm /// AnimalFarm
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AnimalFarm : List<Animal>, IEquatable<AnimalFarm> public partial class AnimalFarm : List<Animal>, IEquatable<AnimalFarm>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AnimalFarm" /> class. /// Initializes a new instance of the <see cref="AnimalFarm" /> class.
@ -107,6 +109,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ApiResponse /// ApiResponse
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ApiResponse : IEquatable<ApiResponse> public partial class ApiResponse : IEquatable<ApiResponse>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ApiResponse" /> class. /// Initializes a new instance of the <see cref="ApiResponse" /> class.
@ -151,6 +153,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ArrayOfArrayOfNumberOnly /// ArrayOfArrayOfNumberOnly
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ArrayOfArrayOfNumberOnly : IEquatable<ArrayOfArrayOfNumberOnly> public partial class ArrayOfArrayOfNumberOnly : IEquatable<ArrayOfArrayOfNumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ArrayOfNumberOnly /// ArrayOfNumberOnly
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ArrayOfNumberOnly : IEquatable<ArrayOfNumberOnly> public partial class ArrayOfNumberOnly : IEquatable<ArrayOfNumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ArrayTest /// ArrayTest
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ArrayTest : IEquatable<ArrayTest> public partial class ArrayTest : IEquatable<ArrayTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayTest" /> class. /// Initializes a new instance of the <see cref="ArrayTest" /> class.
@ -151,6 +153,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Cat /// Cat
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Cat : Animal, IEquatable<Cat> public partial class Cat : Animal, IEquatable<Cat>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Cat" /> class. /// Initializes a new instance of the <see cref="Cat" /> class.
@ -172,6 +174,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Category /// Category
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Category : IEquatable<Category> public partial class Category : IEquatable<Category>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Category" /> class. /// Initializes a new instance of the <see cref="Category" /> class.
@ -136,6 +138,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Dog /// Dog
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Dog : Animal, IEquatable<Dog> public partial class Dog : Animal, IEquatable<Dog>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Dog" /> class. /// Initializes a new instance of the <see cref="Dog" /> class.
@ -172,6 +174,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// EnumArrays /// EnumArrays
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class EnumArrays : IEquatable<EnumArrays> public partial class EnumArrays : IEquatable<EnumArrays>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Gets or Sets JustSymbol /// Gets or Sets JustSymbol
@ -177,6 +179,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// EnumTest /// EnumTest
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class EnumTest : IEquatable<EnumTest> public partial class EnumTest : IEquatable<EnumTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Gets or Sets EnumString /// Gets or Sets EnumString
@ -211,6 +213,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// FormatTest /// FormatTest
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class FormatTest : IEquatable<FormatTest> public partial class FormatTest : IEquatable<FormatTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="FormatTest" /> class. /// Initializes a new instance of the <see cref="FormatTest" /> class.
@ -338,6 +340,90 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
// Integer (int?) maximum
if(this.Integer > (int?)100.0)
{
yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.0.", new [] { "Integer" });
}
// Integer (int?) minimum
if(this.Integer < (int?)10.0)
{
yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.0.", new [] { "Integer" });
}
// Int32 (int?) maximum
if(this.Int32 > (int?)200.0)
{
yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.0.", new [] { "Int32" });
}
// Int32 (int?) minimum
if(this.Int32 < (int?)20.0)
{
yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.0.", new [] { "Int32" });
}
// Number (decimal?) maximum
if(this.Number > (decimal?)543.2)
{
yield return new ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
}
// Number (decimal?) minimum
if(this.Number < (decimal?)32.1)
{
yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
}
// _Float (float?) maximum
if(this._Float > (float?)987.6)
{
yield return new ValidationResult("Invalid value for _Float, must be a value less than or equal to 987.6.", new [] { "_Float" });
}
// _Float (float?) minimum
if(this._Float < (float?)54.3)
{
yield return new ValidationResult("Invalid value for _Float, must be a value greater than or equal to 54.3.", new [] { "_Float" });
}
// _Double (double?) maximum
if(this._Double > (double?)123.4)
{
yield return new ValidationResult("Invalid value for _Double, must be a value less than or equal to 123.4.", new [] { "_Double" });
}
// _Double (double?) minimum
if(this._Double < (double?)67.8)
{
yield return new ValidationResult("Invalid value for _Double, must be a value greater than or equal to 67.8.", new [] { "_Double" });
}
// _String (string) pattern
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
if (false == regex_String.Match(this._String).Success)
{
yield return new ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
}
// Password (string) maxLength
if(this.Password != null && this.Password.Length > 64)
{
yield return new ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" });
}
// Password (string) minLength
if(this.Password != null && this.Password.Length < 10)
{
yield return new ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" });
}
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// HasOnlyReadOnly /// HasOnlyReadOnly
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class HasOnlyReadOnly : IEquatable<HasOnlyReadOnly> public partial class HasOnlyReadOnly : IEquatable<HasOnlyReadOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="HasOnlyReadOnly" /> class. /// Initializes a new instance of the <see cref="HasOnlyReadOnly" /> class.
@ -133,6 +135,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// List /// List
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class List : IEquatable<List> public partial class List : IEquatable<List>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="List" /> class. /// Initializes a new instance of the <see cref="List" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// MapTest /// MapTest
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class MapTest : IEquatable<MapTest> public partial class MapTest : IEquatable<MapTest>, IValidatableObject
{ {
/// <summary> /// <summary>
@ -157,6 +159,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// MixedPropertiesAndAdditionalPropertiesClass /// MixedPropertiesAndAdditionalPropertiesClass
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable<MixedPropertiesAndAdditionalPropertiesClass> public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable<MixedPropertiesAndAdditionalPropertiesClass>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
@ -151,6 +153,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Model for testing model name starting with number /// Model for testing model name starting with number
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Model200Response : IEquatable<Model200Response> public partial class Model200Response : IEquatable<Model200Response>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Model200Response" /> class. /// Initializes a new instance of the <see cref="Model200Response" /> class.
@ -136,6 +138,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ModelClient /// ModelClient
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ModelClient : IEquatable<ModelClient> public partial class ModelClient : IEquatable<ModelClient>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ModelClient" /> class. /// Initializes a new instance of the <see cref="ModelClient" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Model for testing reserved words /// Model for testing reserved words
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ModelReturn : IEquatable<ModelReturn> public partial class ModelReturn : IEquatable<ModelReturn>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ModelReturn" /> class. /// Initializes a new instance of the <see cref="ModelReturn" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Model for testing model name same as property name /// Model for testing model name same as property name
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Name : IEquatable<Name> public partial class Name : IEquatable<Name>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Name" /> class. /// Initializes a new instance of the <see cref="Name" /> class.
@ -175,6 +177,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// NumberOnly /// NumberOnly
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class NumberOnly : IEquatable<NumberOnly> public partial class NumberOnly : IEquatable<NumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="NumberOnly" /> class. /// Initializes a new instance of the <see cref="NumberOnly" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Order /// Order
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Order : IEquatable<Order> public partial class Order : IEquatable<Order>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Order Status /// Order Status
@ -232,6 +234,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Pet /// Pet
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Pet : IEquatable<Pet> public partial class Pet : IEquatable<Pet>, IValidatableObject
{ {
/// <summary> /// <summary>
/// pet status in the store /// pet status in the store
@ -245,6 +247,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// ReadOnlyFirst /// ReadOnlyFirst
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class ReadOnlyFirst : IEquatable<ReadOnlyFirst> public partial class ReadOnlyFirst : IEquatable<ReadOnlyFirst>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class. /// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
@ -134,6 +136,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// SpecialModelName /// SpecialModelName
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class SpecialModelName : IEquatable<SpecialModelName> public partial class SpecialModelName : IEquatable<SpecialModelName>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="SpecialModelName" /> class. /// Initializes a new instance of the <see cref="SpecialModelName" /> class.
@ -121,6 +123,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// Tag /// Tag
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class Tag : IEquatable<Tag> public partial class Tag : IEquatable<Tag>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Tag" /> class. /// Initializes a new instance of the <see cref="Tag" /> class.
@ -136,6 +138,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,12 +24,14 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -37,7 +39,7 @@ namespace IO.Swagger.Model
/// User /// User
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class User : IEquatable<User> public partial class User : IEquatable<User>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="User" /> class. /// Initializes a new instance of the <see cref="User" /> class.
@ -227,6 +229,11 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

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", "{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{2A56AF87-B694-4558-9CBC-D85E740D4BFD}"
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
{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2A56AF87-B694-4558-9CBC-D85E740D4BFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}.Debug|Any CPU.Build.0 = Debug|Any CPU {2A56AF87-B694-4558-9CBC-D85E740D4BFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}.Release|Any CPU.ActiveCfg = Release|Any CPU {2A56AF87-B694-4558-9CBC-D85E740D4BFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}.Release|Any CPU.Build.0 = Release|Any CPU {2A56AF87-B694-4558-9CBC-D85E740D4BFD}.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

@ -32,6 +32,7 @@ cp packages/RestSharp.105.1.0/lib/net45/RestSharp.dll bin/RestSharp.dll;
echo "[INFO] Run 'mcs' to build bin/IO.Swagger.dll" echo "[INFO] Run 'mcs' to build bin/IO.Swagger.dll"
mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\ mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\
bin/RestSharp.dll,\ bin/RestSharp.dll,\
System.ComponentModel.DataAnnotations.dll,\
System.Runtime.Serialization.dll \ System.Runtime.Serialization.dll \
-target:library \ -target:library \
-out:bin/IO.Swagger.dll \ -out:bin/IO.Swagger.dll \

View File

@ -54,6 +54,7 @@ limitations under the License.
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Runtime.Serialization" />
@ -86,7 +87,7 @@ limitations under the License.
<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>{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}</Project> <Project>{2A56AF87-B694-4558-9CBC-D85E740D4BFD}</Project>
<Name>IO.Swagger</Name> <Name>IO.Swagger</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>

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>{54B7162B-7A0F-44B6-AF09-8ECBA3A2436D}</ProjectGuid> <ProjectGuid>{2A56AF87-B694-4558-9CBC-D85E740D4BFD}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IO.Swagger</RootNamespace> <RootNamespace>IO.Swagger</RootNamespace>
@ -54,6 +54,7 @@ limitations under the License.
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Runtime.Serialization" />

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class AdditionalPropertiesClass : IEquatable<AdditionalPropertiesClass> public partial class AdditionalPropertiesClass : IEquatable<AdditionalPropertiesClass>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
@ -139,7 +141,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -150,6 +154,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Animal : IEquatable<Animal> public partial class Animal : IEquatable<Animal>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Animal" /> class. /// Initializes a new instance of the <see cref="Animal" /> class.
@ -160,7 +162,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -171,6 +175,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class AnimalFarm : List<Animal>, IEquatable<AnimalFarm> public partial class AnimalFarm : List<Animal>, IEquatable<AnimalFarm>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AnimalFarm" /> class. /// Initializes a new instance of the <see cref="AnimalFarm" /> class.
@ -110,7 +112,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -121,6 +125,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ApiResponse : IEquatable<ApiResponse> public partial class ApiResponse : IEquatable<ApiResponse>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ApiResponse" /> class. /// Initializes a new instance of the <see cref="ApiResponse" /> class.
@ -154,7 +156,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -165,6 +169,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ArrayOfArrayOfNumberOnly : IEquatable<ArrayOfArrayOfNumberOnly> public partial class ArrayOfArrayOfNumberOnly : IEquatable<ArrayOfArrayOfNumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ArrayOfNumberOnly : IEquatable<ArrayOfNumberOnly> public partial class ArrayOfNumberOnly : IEquatable<ArrayOfNumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ArrayTest : IEquatable<ArrayTest> public partial class ArrayTest : IEquatable<ArrayTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ArrayTest" /> class. /// Initializes a new instance of the <see cref="ArrayTest" /> class.
@ -154,7 +156,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -165,6 +169,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Cat : Animal, IEquatable<Cat> public partial class Cat : Animal, IEquatable<Cat>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Cat" /> class. /// Initializes a new instance of the <see cref="Cat" /> class.
@ -175,7 +177,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -186,6 +190,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Category : IEquatable<Category> public partial class Category : IEquatable<Category>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Category" /> class. /// Initializes a new instance of the <see cref="Category" /> class.
@ -139,7 +141,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -150,6 +154,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Dog : Animal, IEquatable<Dog> public partial class Dog : Animal, IEquatable<Dog>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Dog" /> class. /// Initializes a new instance of the <see cref="Dog" /> class.
@ -175,7 +177,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -186,6 +190,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class EnumArrays : IEquatable<EnumArrays> public partial class EnumArrays : IEquatable<EnumArrays>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Gets or Sets JustSymbol /// Gets or Sets JustSymbol
@ -180,7 +182,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -191,6 +195,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class EnumTest : IEquatable<EnumTest> public partial class EnumTest : IEquatable<EnumTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Gets or Sets EnumString /// Gets or Sets EnumString
@ -214,7 +216,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -225,6 +229,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class FormatTest : IEquatable<FormatTest> public partial class FormatTest : IEquatable<FormatTest>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="FormatTest" /> class. /// Initializes a new instance of the <see cref="FormatTest" /> class.
@ -341,7 +343,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -352,6 +356,90 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
// Integer (int?) maximum
if(this.Integer > (int?)100.0)
{
yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.0.", new [] { "Integer" });
}
// Integer (int?) minimum
if(this.Integer < (int?)10.0)
{
yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.0.", new [] { "Integer" });
}
// Int32 (int?) maximum
if(this.Int32 > (int?)200.0)
{
yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.0.", new [] { "Int32" });
}
// Int32 (int?) minimum
if(this.Int32 < (int?)20.0)
{
yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.0.", new [] { "Int32" });
}
// Number (decimal?) maximum
if(this.Number > (decimal?)543.2)
{
yield return new ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
}
// Number (decimal?) minimum
if(this.Number < (decimal?)32.1)
{
yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
}
// _Float (float?) maximum
if(this._Float > (float?)987.6)
{
yield return new ValidationResult("Invalid value for _Float, must be a value less than or equal to 987.6.", new [] { "_Float" });
}
// _Float (float?) minimum
if(this._Float < (float?)54.3)
{
yield return new ValidationResult("Invalid value for _Float, must be a value greater than or equal to 54.3.", new [] { "_Float" });
}
// _Double (double?) maximum
if(this._Double > (double?)123.4)
{
yield return new ValidationResult("Invalid value for _Double, must be a value less than or equal to 123.4.", new [] { "_Double" });
}
// _Double (double?) minimum
if(this._Double < (double?)67.8)
{
yield return new ValidationResult("Invalid value for _Double, must be a value greater than or equal to 67.8.", new [] { "_Double" });
}
// _String (string) pattern
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
if (false == regex_String.Match(this._String).Success)
{
yield return new ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
}
// Password (string) maxLength
if(this.Password != null && this.Password.Length > 64)
{
yield return new ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" });
}
// Password (string) minLength
if(this.Password != null && this.Password.Length < 10)
{
yield return new ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" });
}
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class HasOnlyReadOnly : IEquatable<HasOnlyReadOnly> public partial class HasOnlyReadOnly : IEquatable<HasOnlyReadOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="HasOnlyReadOnly" /> class. /// Initializes a new instance of the <see cref="HasOnlyReadOnly" /> class.
@ -136,7 +138,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -147,6 +151,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class List : IEquatable<List> public partial class List : IEquatable<List>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="List" /> class. /// Initializes a new instance of the <see cref="List" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class MapTest : IEquatable<MapTest> public partial class MapTest : IEquatable<MapTest>, IValidatableObject
{ {
/// <summary> /// <summary>
@ -160,7 +162,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -171,6 +175,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable<MixedPropertiesAndAdditionalPropertiesClass> public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable<MixedPropertiesAndAdditionalPropertiesClass>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class. /// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
@ -154,7 +156,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -165,6 +169,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Model200Response : IEquatable<Model200Response> public partial class Model200Response : IEquatable<Model200Response>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Model200Response" /> class. /// Initializes a new instance of the <see cref="Model200Response" /> class.
@ -139,7 +141,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -150,6 +154,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ModelClient : IEquatable<ModelClient> public partial class ModelClient : IEquatable<ModelClient>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ModelClient" /> class. /// Initializes a new instance of the <see cref="ModelClient" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ModelReturn : IEquatable<ModelReturn> public partial class ModelReturn : IEquatable<ModelReturn>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ModelReturn" /> class. /// Initializes a new instance of the <see cref="ModelReturn" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Name : IEquatable<Name> public partial class Name : IEquatable<Name>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Name" /> class. /// Initializes a new instance of the <see cref="Name" /> class.
@ -178,7 +180,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -189,6 +193,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class NumberOnly : IEquatable<NumberOnly> public partial class NumberOnly : IEquatable<NumberOnly>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="NumberOnly" /> class. /// Initializes a new instance of the <see cref="NumberOnly" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Order : IEquatable<Order> public partial class Order : IEquatable<Order>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Order Status /// Order Status
@ -235,7 +237,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -246,6 +250,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Pet : IEquatable<Pet> public partial class Pet : IEquatable<Pet>, IValidatableObject
{ {
/// <summary> /// <summary>
/// pet status in the store /// pet status in the store
@ -248,7 +250,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -259,6 +263,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class ReadOnlyFirst : IEquatable<ReadOnlyFirst> public partial class ReadOnlyFirst : IEquatable<ReadOnlyFirst>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class. /// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
@ -137,7 +139,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -148,6 +152,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class SpecialModelName : IEquatable<SpecialModelName> public partial class SpecialModelName : IEquatable<SpecialModelName>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="SpecialModelName" /> class. /// Initializes a new instance of the <see cref="SpecialModelName" /> class.
@ -124,7 +126,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -135,6 +139,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class Tag : IEquatable<Tag> public partial class Tag : IEquatable<Tag>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Tag" /> class. /// Initializes a new instance of the <see cref="Tag" /> class.
@ -139,7 +141,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -150,6 +154,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }

View File

@ -24,6 +24,7 @@ using System;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,6 +33,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters; using Newtonsoft.Json.Converters;
using PropertyChanged; using PropertyChanged;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace IO.Swagger.Model namespace IO.Swagger.Model
{ {
@ -40,7 +42,7 @@ namespace IO.Swagger.Model
/// </summary> /// </summary>
[DataContract] [DataContract]
[ImplementPropertyChanged] [ImplementPropertyChanged]
public partial class User : IEquatable<User> public partial class User : IEquatable<User>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="User" /> class. /// Initializes a new instance of the <see cref="User" /> class.
@ -230,7 +232,9 @@ namespace IO.Swagger.Model
return hash; return hash;
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) public virtual void OnPropertyChanged(string propertyName)
{ {
// NOTE: property changed is handled via "code weaving" using Fody. // NOTE: property changed is handled via "code weaving" using Fody.
@ -241,6 +245,11 @@ namespace IO.Swagger.Model
propertyChanged(this, new PropertyChangedEventArgs(propertyName)); propertyChanged(this, new PropertyChangedEventArgs(propertyName));
} }
} }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
} }
} }