forked from loafle/openapi-generator-original
fixed bug (#15006)
This commit is contained in:
parent
b3bfa1ef3b
commit
d24ae6b27a
@ -552,12 +552,12 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fix incorrect data types for maps of maps
|
// fix incorrect data types for maps of maps
|
||||||
if (property.datatypeWithEnum.contains("List>") && property.items != null) {
|
if (property.datatypeWithEnum.endsWith(", List>") && property.items != null) {
|
||||||
property.datatypeWithEnum = property.datatypeWithEnum.replace("List>", property.items.datatypeWithEnum + ">");
|
property.datatypeWithEnum = property.datatypeWithEnum.replace(", List>", ", " + property.items.datatypeWithEnum + ">");
|
||||||
property.dataType = property.datatypeWithEnum;
|
property.dataType = property.datatypeWithEnum;
|
||||||
}
|
}
|
||||||
if (property.datatypeWithEnum.contains("Dictionary>") && property.items != null) {
|
if (property.datatypeWithEnum.endsWith(", Dictionary>") && property.items != null) {
|
||||||
property.datatypeWithEnum = property.datatypeWithEnum.replace("Dictionary>", property.items.datatypeWithEnum + ">");
|
property.datatypeWithEnum = property.datatypeWithEnum.replace(", Dictionary>", ", " + property.items.datatypeWithEnum + ">");
|
||||||
property.dataType = property.datatypeWithEnum;
|
property.dataType = property.datatypeWithEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2248,3 +2248,15 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: date
|
format: date
|
||||||
example: "2017-07-21"
|
example: "2017-07-21"
|
||||||
|
TestCollectionEndingWithWordListObject:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
TestCollectionEndingWithWordList:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/TestCollectionEndingWithWordList'
|
||||||
|
TestCollectionEndingWithWordList:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
value:
|
||||||
|
type: string
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -197,6 +199,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -225,6 +225,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,154 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this._Value = value;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
this._flagValue = true;
|
||||||
|
}
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value
|
||||||
|
{
|
||||||
|
get{ return _Value;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Value = value;
|
||||||
|
_flagValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private string _Value;
|
||||||
|
private bool _flagValue;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as Value should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeValue()
|
||||||
|
{
|
||||||
|
return _flagValue;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,154 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this._TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
this._flagTestCollectionEndingWithWordList = true;
|
||||||
|
}
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList
|
||||||
|
{
|
||||||
|
get{ return _TestCollectionEndingWithWordList;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_TestCollectionEndingWithWordList = value;
|
||||||
|
_flagTestCollectionEndingWithWordList = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private List<TestCollectionEndingWithWordList> _TestCollectionEndingWithWordList;
|
||||||
|
private bool _flagTestCollectionEndingWithWordList;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as TestCollectionEndingWithWordList should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeTestCollectionEndingWithWordList()
|
||||||
|
{
|
||||||
|
return _flagTestCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -86,6 +86,8 @@ docs/models/ShapeOrNull.md
|
|||||||
docs/models/SimpleQuadrilateral.md
|
docs/models/SimpleQuadrilateral.md
|
||||||
docs/models/SpecialModelName.md
|
docs/models/SpecialModelName.md
|
||||||
docs/models/Tag.md
|
docs/models/Tag.md
|
||||||
|
docs/models/TestCollectionEndingWithWordList.md
|
||||||
|
docs/models/TestCollectionEndingWithWordListObject.md
|
||||||
docs/models/Triangle.md
|
docs/models/Triangle.md
|
||||||
docs/models/TriangleInterface.md
|
docs/models/TriangleInterface.md
|
||||||
docs/models/User.md
|
docs/models/User.md
|
||||||
@ -203,6 +205,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -128,6 +128,8 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TagJsonConverter());
|
_jsonOptions.Converters.Add(new TagJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListObjectJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new UserJsonConverter());
|
_jsonOptions.Converters.Add(new UserJsonConverter());
|
||||||
|
@ -0,0 +1,155 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
#nullable enable
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordList : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordList(string value)
|
||||||
|
{
|
||||||
|
Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListJsonConverter : JsonConverter<TestCollectionEndingWithWordList>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
string value = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string? propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "value":
|
||||||
|
value = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
throw new ArgumentNullException(nameof(value), "Property is required for class TestCollectionEndingWithWordList.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordList(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordList"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordList testCollectionEndingWithWordList, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("value", testCollectionEndingWithWordList.Value);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,157 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
#nullable enable
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList)
|
||||||
|
{
|
||||||
|
TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("TestCollectionEndingWithWordList")]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListObjectJsonConverter : JsonConverter<TestCollectionEndingWithWordListObject>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string? propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "TestCollectionEndingWithWordList":
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.Null)
|
||||||
|
testCollectionEndingWithWordList = JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (testCollectionEndingWithWordList == null)
|
||||||
|
throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is required for class TestCollectionEndingWithWordListObject.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordListObject"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordListObject testCollectionEndingWithWordListObject, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WritePropertyName("TestCollectionEndingWithWordList");
|
||||||
|
JsonSerializer.Serialize(writer, testCollectionEndingWithWordListObject.TestCollectionEndingWithWordList, jsonSerializerOptions);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -86,6 +86,8 @@ docs/models/ShapeOrNull.md
|
|||||||
docs/models/SimpleQuadrilateral.md
|
docs/models/SimpleQuadrilateral.md
|
||||||
docs/models/SpecialModelName.md
|
docs/models/SpecialModelName.md
|
||||||
docs/models/Tag.md
|
docs/models/Tag.md
|
||||||
|
docs/models/TestCollectionEndingWithWordList.md
|
||||||
|
docs/models/TestCollectionEndingWithWordListObject.md
|
||||||
docs/models/Triangle.md
|
docs/models/Triangle.md
|
||||||
docs/models/TriangleInterface.md
|
docs/models/TriangleInterface.md
|
||||||
docs/models/User.md
|
docs/models/User.md
|
||||||
@ -203,6 +205,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -126,6 +126,8 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TagJsonConverter());
|
_jsonOptions.Converters.Add(new TagJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListObjectJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new UserJsonConverter());
|
_jsonOptions.Converters.Add(new UserJsonConverter());
|
||||||
|
@ -0,0 +1,153 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordList : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordList(string value)
|
||||||
|
{
|
||||||
|
Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListJsonConverter : JsonConverter<TestCollectionEndingWithWordList>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
string value = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "value":
|
||||||
|
value = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
throw new ArgumentNullException(nameof(value), "Property is required for class TestCollectionEndingWithWordList.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordList(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordList"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordList testCollectionEndingWithWordList, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("value", testCollectionEndingWithWordList.Value);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,155 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList)
|
||||||
|
{
|
||||||
|
TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("TestCollectionEndingWithWordList")]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListObjectJsonConverter : JsonConverter<TestCollectionEndingWithWordListObject>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "TestCollectionEndingWithWordList":
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.Null)
|
||||||
|
testCollectionEndingWithWordList = JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (testCollectionEndingWithWordList == null)
|
||||||
|
throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is required for class TestCollectionEndingWithWordListObject.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordListObject"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordListObject testCollectionEndingWithWordListObject, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WritePropertyName("TestCollectionEndingWithWordList");
|
||||||
|
JsonSerializer.Serialize(writer, testCollectionEndingWithWordListObject.TestCollectionEndingWithWordList, jsonSerializerOptions);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -86,6 +86,8 @@ docs/models/ShapeOrNull.md
|
|||||||
docs/models/SimpleQuadrilateral.md
|
docs/models/SimpleQuadrilateral.md
|
||||||
docs/models/SpecialModelName.md
|
docs/models/SpecialModelName.md
|
||||||
docs/models/Tag.md
|
docs/models/Tag.md
|
||||||
|
docs/models/TestCollectionEndingWithWordList.md
|
||||||
|
docs/models/TestCollectionEndingWithWordListObject.md
|
||||||
docs/models/Triangle.md
|
docs/models/Triangle.md
|
||||||
docs/models/TriangleInterface.md
|
docs/models/TriangleInterface.md
|
||||||
docs/models/User.md
|
docs/models/User.md
|
||||||
@ -203,6 +205,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -126,6 +126,8 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
_jsonOptions.Converters.Add(new SimpleQuadrilateralJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
_jsonOptions.Converters.Add(new SpecialModelNameJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TagJsonConverter());
|
_jsonOptions.Converters.Add(new TagJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new TestCollectionEndingWithWordListObjectJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
_jsonOptions.Converters.Add(new TriangleInterfaceJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new UserJsonConverter());
|
_jsonOptions.Converters.Add(new UserJsonConverter());
|
||||||
|
@ -0,0 +1,153 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordList : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordList(string value)
|
||||||
|
{
|
||||||
|
Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("value")]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListJsonConverter : JsonConverter<TestCollectionEndingWithWordList>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
string value = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "value":
|
||||||
|
value = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
throw new ArgumentNullException(nameof(value), "Property is required for class TestCollectionEndingWithWordList.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordList(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordList"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordList testCollectionEndingWithWordList, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("value", testCollectionEndingWithWordList.Value);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,155 @@
|
|||||||
|
// <auto-generated>
|
||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList)
|
||||||
|
{
|
||||||
|
TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("TestCollectionEndingWithWordList")]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json converter for type TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
public class TestCollectionEndingWithWordListObjectJsonConverter : JsonConverter<TestCollectionEndingWithWordListObject>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A Json reader.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="utf8JsonReader"></param>
|
||||||
|
/// <param name="typeToConvert"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="JsonException"></exception>
|
||||||
|
public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
int currentDepth = utf8JsonReader.CurrentDepth;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
|
||||||
|
throw new JsonException();
|
||||||
|
|
||||||
|
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||||
|
|
||||||
|
List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default;
|
||||||
|
|
||||||
|
while (utf8JsonReader.Read())
|
||||||
|
{
|
||||||
|
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
|
||||||
|
{
|
||||||
|
string propertyName = utf8JsonReader.GetString();
|
||||||
|
utf8JsonReader.Read();
|
||||||
|
|
||||||
|
switch (propertyName)
|
||||||
|
{
|
||||||
|
case "TestCollectionEndingWithWordList":
|
||||||
|
if (utf8JsonReader.TokenType != JsonTokenType.Null)
|
||||||
|
testCollectionEndingWithWordList = JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
if (testCollectionEndingWithWordList == null)
|
||||||
|
throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is required for class TestCollectionEndingWithWordListObject.");
|
||||||
|
|
||||||
|
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||||
|
|
||||||
|
return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="testCollectionEndingWithWordListObject"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, TestCollectionEndingWithWordListObject testCollectionEndingWithWordListObject, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WritePropertyName("TestCollectionEndingWithWordList");
|
||||||
|
JsonSerializer.Serialize(writer, testCollectionEndingWithWordListObject.TestCollectionEndingWithWordList, jsonSerializerOptions);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -194,6 +196,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -250,6 +250,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,133 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using FileParameter = Org.OpenAPITools.Client.FileParameter;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,133 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using FileParameter = Org.OpenAPITools.Client.FileParameter;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -197,6 +199,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -237,6 +237,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -197,6 +199,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -237,6 +237,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -197,6 +199,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -237,6 +237,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -83,6 +83,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -193,6 +195,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -211,6 +211,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](SpecialModelName.md)
|
- [Model.SpecialModelName](SpecialModelName.md)
|
||||||
- [Model.Tag](Tag.md)
|
- [Model.Tag](Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](Triangle.md)
|
- [Model.Triangle](Triangle.md)
|
||||||
- [Model.TriangleInterface](TriangleInterface.md)
|
- [Model.TriangleInterface](TriangleInterface.md)
|
||||||
- [Model.User](User.md)
|
- [Model.User](User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return this.Equals(input as TestCollectionEndingWithWordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
if (input == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return
|
||||||
|
(
|
||||||
|
this.Value == input.Value ||
|
||||||
|
(this.Value != null &&
|
||||||
|
this.Value.Equals(input.Value))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,119 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return this.Equals(input as TestCollectionEndingWithWordListObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
if (input == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return
|
||||||
|
(
|
||||||
|
this.TestCollectionEndingWithWordList == input.TestCollectionEndingWithWordList ||
|
||||||
|
this.TestCollectionEndingWithWordList != null &&
|
||||||
|
input.TestCollectionEndingWithWordList != null &&
|
||||||
|
this.TestCollectionEndingWithWordList.SequenceEqual(input.TestCollectionEndingWithWordList)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -196,6 +198,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -225,6 +225,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -85,6 +85,8 @@ docs/SimpleQuadrilateral.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
|
docs/TestCollectionEndingWithWordList.md
|
||||||
|
docs/TestCollectionEndingWithWordListObject.md
|
||||||
docs/Triangle.md
|
docs/Triangle.md
|
||||||
docs/TriangleInterface.md
|
docs/TriangleInterface.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
@ -196,6 +198,8 @@ src/Org.OpenAPITools/Model/ShapeOrNull.cs
|
|||||||
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.cs
|
src/Org.OpenAPITools/Model/Tag.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
|
||||||
|
src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
|
||||||
src/Org.OpenAPITools/Model/Triangle.cs
|
src/Org.OpenAPITools/Model/Triangle.cs
|
||||||
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
src/Org.OpenAPITools/Model/TriangleInterface.cs
|
||||||
src/Org.OpenAPITools/Model/User.cs
|
src/Org.OpenAPITools/Model/User.cs
|
||||||
|
@ -237,6 +237,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
- [Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordList](docs/TestCollectionEndingWithWordList.md)
|
||||||
|
- [Model.TestCollectionEndingWithWordListObject](docs/TestCollectionEndingWithWordListObject.md)
|
||||||
- [Model.Triangle](docs/Triangle.md)
|
- [Model.Triangle](docs/Triangle.md)
|
||||||
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
- [Model.TriangleInterface](docs/TriangleInterface.md)
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordList
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Value** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.TestCollectionEndingWithWordListObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**TestCollectionEndingWithWordList** | [**List<TestCollectionEndingWithWordList>**](TestCollectionEndingWithWordList.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordListObject
|
||||||
|
//private TestCollectionEndingWithWordListObject instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordListObject
|
||||||
|
//instance = new TestCollectionEndingWithWordListObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordListObject
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordListObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'TestCollectionEndingWithWordList'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'TestCollectionEndingWithWordList'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class TestCollectionEndingWithWordListTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for TestCollectionEndingWithWordList
|
||||||
|
//private TestCollectionEndingWithWordList instance;
|
||||||
|
|
||||||
|
public TestCollectionEndingWithWordListTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of TestCollectionEndingWithWordList
|
||||||
|
//instance = new TestCollectionEndingWithWordList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void TestCollectionEndingWithWordListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" TestCollectionEndingWithWordList
|
||||||
|
//Assert.IsType<TestCollectionEndingWithWordList>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Value'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ValueTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Value'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordList")]
|
||||||
|
public partial class TestCollectionEndingWithWordList : IEquatable<TestCollectionEndingWithWordList>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordList" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">value.</param>
|
||||||
|
public TestCollectionEndingWithWordList(string value = default(string))
|
||||||
|
{
|
||||||
|
this.Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Value
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordList {\n");
|
||||||
|
sb.Append(" Value: ").Append(Value).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordList instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordList to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordList input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Value != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.Value.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// TestCollectionEndingWithWordListObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "TestCollectionEndingWithWordListObject")]
|
||||||
|
public partial class TestCollectionEndingWithWordListObject : IEquatable<TestCollectionEndingWithWordListObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TestCollectionEndingWithWordListObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testCollectionEndingWithWordList">testCollectionEndingWithWordList.</param>
|
||||||
|
public TestCollectionEndingWithWordListObject(List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default(List<TestCollectionEndingWithWordList>))
|
||||||
|
{
|
||||||
|
this.TestCollectionEndingWithWordList = testCollectionEndingWithWordList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets TestCollectionEndingWithWordList
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "TestCollectionEndingWithWordList", EmitDefaultValue = false)]
|
||||||
|
public List<TestCollectionEndingWithWordList> TestCollectionEndingWithWordList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("class TestCollectionEndingWithWordListObject {\n");
|
||||||
|
sb.Append(" TestCollectionEndingWithWordList: ").Append(TestCollectionEndingWithWordList).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if TestCollectionEndingWithWordListObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of TestCollectionEndingWithWordListObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(TestCollectionEndingWithWordListObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.TestCollectionEndingWithWordList != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.TestCollectionEndingWithWordList.GetHashCode();
|
||||||
|
}
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user