forked from loafle/openapi-generator-original
made default strings use string literal (#15049)
This commit is contained in:
parent
0dc84520e7
commit
c838b1d1f9
@ -145,7 +145,7 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
"{{{name}}}", new Dictionary<string, object> {
|
"{{{name}}}", new Dictionary<string, object> {
|
||||||
{"description", "{{{description}}}{{^description}}No description provided{{/description}}"},
|
{"description", "{{{description}}}{{^description}}No description provided{{/description}}"},
|
||||||
{"default_value", "{{{defaultValue}}}"},
|
{"default_value", {{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}"{{{defaultValue}}}"},
|
||||||
{{#enumValues}}
|
{{#enumValues}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
{
|
{
|
||||||
|
@ -1 +1 @@
|
|||||||
{{#model.allVars}}{{>PropertyDataType}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#defaultValue}} = {{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}{{#isNullable}} = default{{/isNullable}}{{/defaultValue}} {{/model.allVars}}
|
{{#model.allVars}}{{>PropertyDataType}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#defaultValue}} = {{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}{{#isNullable}} = default{{/isNullable}}{{/defaultValue}} {{/model.allVars}}
|
@ -134,7 +134,7 @@
|
|||||||
{{#hasOnlyReadOnly}}
|
{{#hasOnlyReadOnly}}
|
||||||
[JsonConstructorAttribute]
|
[JsonConstructorAttribute]
|
||||||
{{/hasOnlyReadOnly}}
|
{{/hasOnlyReadOnly}}
|
||||||
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
|
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
|
||||||
{
|
{
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
{{^isInherited}}
|
{{^isInherited}}
|
||||||
@ -178,7 +178,7 @@
|
|||||||
{{^conditionalSerialization}}
|
{{^conditionalSerialization}}
|
||||||
{{^vendorExtensions.x-csharp-value-type}}
|
{{^vendorExtensions.x-csharp-value-type}}
|
||||||
// use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided
|
// use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided
|
||||||
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{{defaultValue}}};
|
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} ?? {{#isString}}@{{/isString}}{{{defaultValue}}};
|
||||||
{{/vendorExtensions.x-csharp-value-type}}
|
{{/vendorExtensions.x-csharp-value-type}}
|
||||||
{{#vendorExtensions.x-csharp-value-type}}
|
{{#vendorExtensions.x-csharp-value-type}}
|
||||||
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
||||||
|
@ -2260,3 +2260,12 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
|
LiteralStringClass:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
type: string
|
||||||
|
default: C:\\Users\\username
|
||||||
|
unescapedLiteralString:
|
||||||
|
type: string
|
||||||
|
default: C:\Users\username
|
@ -51,6 +51,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -167,6 +168,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -193,6 +193,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||||
- [Model.List](docs/List.md)
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
|
||||||
- [Model.Mammal](docs/Mammal.md)
|
- [Model.Mammal](docs/Mammal.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,77 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="className">className (required).</param>
|
/// <param name="className">className (required).</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Animal(string className = default(string), string color = "red")
|
public Animal(string className = default(string), string color = @"red")
|
||||||
{
|
{
|
||||||
// to ensure "className" is required (not null)
|
// to ensure "className" is required (not null)
|
||||||
if (className == null)
|
if (className == null)
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="declawed">declawed.</param>
|
/// <param name="declawed">declawed.</param>
|
||||||
/// <param name="className">className (required) (default to "Cat").</param>
|
/// <param name="className">className (required) (default to "Cat").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this._Declawed = declawed;
|
this._Declawed = declawed;
|
||||||
if (this.Declawed != null)
|
if (this.Declawed != null)
|
||||||
|
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">id.</param>
|
/// <param name="id">id.</param>
|
||||||
/// <param name="name">name (required) (default to "default-name").</param>
|
/// <param name="name">name (required) (default to "default-name").</param>
|
||||||
public Category(long id = default(long), string name = "default-name")
|
public Category(long id = default(long), string name = @"default-name")
|
||||||
{
|
{
|
||||||
// to ensure "name" is required (not null)
|
// to ensure "name" is required (not null)
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="breed">breed.</param>
|
/// <param name="breed">breed.</param>
|
||||||
/// <param name="className">className (required) (default to "Dog").</param>
|
/// <param name="className">className (required) (default to "Dog").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
public Dog(string breed = default(string), string className = @"Dog", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this._Breed = breed;
|
this._Breed = breed;
|
||||||
if (this.Breed != null)
|
if (this.Breed != null)
|
||||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar").</param>
|
/// <param name="bar">bar (default to "bar").</param>
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,179 @@
|
|||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "LiteralStringClass")]
|
||||||
|
public partial class LiteralStringClass : IEquatable<LiteralStringClass>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username").</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username").</param>
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "escapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string EscapedLiteralString
|
||||||
|
{
|
||||||
|
get{ return _EscapedLiteralString;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_EscapedLiteralString = value;
|
||||||
|
_flagEscapedLiteralString = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private string _EscapedLiteralString;
|
||||||
|
private bool _flagEscapedLiteralString;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as EscapedLiteralString should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeEscapedLiteralString()
|
||||||
|
{
|
||||||
|
return _flagEscapedLiteralString;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "unescapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string UnescapedLiteralString
|
||||||
|
{
|
||||||
|
get{ return _UnescapedLiteralString;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_UnescapedLiteralString = value;
|
||||||
|
_flagUnescapedLiteralString = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private string _UnescapedLiteralString;
|
||||||
|
private bool _flagUnescapedLiteralString;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as UnescapedLiteralString should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeUnescapedLiteralString()
|
||||||
|
{
|
||||||
|
return _flagUnescapedLiteralString;
|
||||||
|
}
|
||||||
|
/// <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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if LiteralStringClass instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of LiteralStringClass to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(LiteralStringClass 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.EscapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.EscapedLiteralString.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.UnescapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.UnescapedLiteralString.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
public ParentPet(string petType = @"ParentPet") : base(petType)
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,7 @@ docs/models/HasOnlyReadOnly.md
|
|||||||
docs/models/HealthCheckResult.md
|
docs/models/HealthCheckResult.md
|
||||||
docs/models/IsoscelesTriangle.md
|
docs/models/IsoscelesTriangle.md
|
||||||
docs/models/List.md
|
docs/models/List.md
|
||||||
|
docs/models/LiteralStringClass.md
|
||||||
docs/models/Mammal.md
|
docs/models/Mammal.md
|
||||||
docs/models/MapTest.md
|
docs/models/MapTest.md
|
||||||
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,76 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -92,6 +92,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new ListJsonConverter());
|
_jsonOptions.Converters.Add(new ListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
||||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Animal(string className, string color = "red")
|
public Animal(string className, string color = @"red")
|
||||||
{
|
{
|
||||||
ClassName = className;
|
ClassName = className;
|
||||||
Color = color;
|
Color = color;
|
||||||
|
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = "red") : base(className, color)
|
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
Dictionary = dictionary;
|
Dictionary = dictionary;
|
||||||
CatAllOf = catAllOf;
|
CatAllOf = catAllOf;
|
||||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="id">id</param>
|
/// <param name="id">id</param>
|
||||||
/// <param name="name">name (default to "default-name")</param>
|
/// <param name="name">name (default to "default-name")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Category(long id, string name = "default-name")
|
public Category(long id, string name = @"default-name")
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Name = name;
|
Name = name;
|
||||||
|
@ -37,7 +37,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Dog(DogAllOf dogAllOf, string className, string color = "red") : base(className, color)
|
internal Dog(DogAllOf dogAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
DogAllOf = dogAllOf;
|
DogAllOf = dogAllOf;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar")</param>
|
/// <param name="bar">bar (default to "bar")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
Bar = bar;
|
Bar = bar;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,172 @@
|
|||||||
|
// <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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public partial class LiteralStringClass : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username")</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username")</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
EscapedLiteralString = escapedLiteralString;
|
||||||
|
UnescapedLiteralString = unescapedLiteralString;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("escapedLiteralString")]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("unescapedLiteralString")]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public class LiteralStringClassJsonConverter : JsonConverter<LiteralStringClass>
|
||||||
|
{
|
||||||
|
/// <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 LiteralStringClass 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 escapedLiteralString = default;
|
||||||
|
string unescapedLiteralString = 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 "escapedLiteralString":
|
||||||
|
escapedLiteralString = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
case "unescapedLiteralString":
|
||||||
|
unescapedLiteralString = 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 (escapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(escapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
if (unescapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
#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 LiteralStringClass(escapedLiteralString, unescapedLiteralString);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="literalStringClass"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, LiteralStringClass literalStringClass, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString);
|
||||||
|
writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -54,6 +54,7 @@ docs/models/HasOnlyReadOnly.md
|
|||||||
docs/models/HealthCheckResult.md
|
docs/models/HealthCheckResult.md
|
||||||
docs/models/IsoscelesTriangle.md
|
docs/models/IsoscelesTriangle.md
|
||||||
docs/models/List.md
|
docs/models/List.md
|
||||||
|
docs/models/LiteralStringClass.md
|
||||||
docs/models/Mammal.md
|
docs/models/Mammal.md
|
||||||
docs/models/MapTest.md
|
docs/models/MapTest.md
|
||||||
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,76 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -90,6 +90,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new ListJsonConverter());
|
_jsonOptions.Converters.Add(new ListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
||||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Animal(string className, string color = "red")
|
public Animal(string className, string color = @"red")
|
||||||
{
|
{
|
||||||
ClassName = className;
|
ClassName = className;
|
||||||
Color = color;
|
Color = color;
|
||||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = "red") : base(className, color)
|
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
Dictionary = dictionary;
|
Dictionary = dictionary;
|
||||||
CatAllOf = catAllOf;
|
CatAllOf = catAllOf;
|
||||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="id">id</param>
|
/// <param name="id">id</param>
|
||||||
/// <param name="name">name (default to "default-name")</param>
|
/// <param name="name">name (default to "default-name")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Category(long id, string name = "default-name")
|
public Category(long id, string name = @"default-name")
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Name = name;
|
Name = name;
|
||||||
|
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Dog(DogAllOf dogAllOf, string className, string color = "red") : base(className, color)
|
internal Dog(DogAllOf dogAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
DogAllOf = dogAllOf;
|
DogAllOf = dogAllOf;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar")</param>
|
/// <param name="bar">bar (default to "bar")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
Bar = bar;
|
Bar = bar;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,170 @@
|
|||||||
|
// <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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public partial class LiteralStringClass : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username")</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username")</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
EscapedLiteralString = escapedLiteralString;
|
||||||
|
UnescapedLiteralString = unescapedLiteralString;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("escapedLiteralString")]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("unescapedLiteralString")]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public class LiteralStringClassJsonConverter : JsonConverter<LiteralStringClass>
|
||||||
|
{
|
||||||
|
/// <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 LiteralStringClass 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 escapedLiteralString = default;
|
||||||
|
string unescapedLiteralString = 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 "escapedLiteralString":
|
||||||
|
escapedLiteralString = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
case "unescapedLiteralString":
|
||||||
|
unescapedLiteralString = 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 (escapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(escapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
if (unescapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
#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 LiteralStringClass(escapedLiteralString, unescapedLiteralString);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="literalStringClass"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, LiteralStringClass literalStringClass, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString);
|
||||||
|
writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -54,6 +54,7 @@ docs/models/HasOnlyReadOnly.md
|
|||||||
docs/models/HealthCheckResult.md
|
docs/models/HealthCheckResult.md
|
||||||
docs/models/IsoscelesTriangle.md
|
docs/models/IsoscelesTriangle.md
|
||||||
docs/models/List.md
|
docs/models/List.md
|
||||||
|
docs/models/LiteralStringClass.md
|
||||||
docs/models/Mammal.md
|
docs/models/Mammal.md
|
||||||
docs/models/MapTest.md
|
docs/models/MapTest.md
|
||||||
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,76 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -90,6 +90,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
_jsonOptions.Converters.Add(new HealthCheckResultJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
_jsonOptions.Converters.Add(new IsoscelesTriangleJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new ListJsonConverter());
|
_jsonOptions.Converters.Add(new ListJsonConverter());
|
||||||
|
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
_jsonOptions.Converters.Add(new MammalJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
_jsonOptions.Converters.Add(new MapTestJsonConverter());
|
||||||
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
|
||||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Animal(string className, string color = "red")
|
public Animal(string className, string color = @"red")
|
||||||
{
|
{
|
||||||
ClassName = className;
|
ClassName = className;
|
||||||
Color = color;
|
Color = color;
|
||||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = "red") : base(className, color)
|
internal Cat(Dictionary<string, int> dictionary, CatAllOf catAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
Dictionary = dictionary;
|
Dictionary = dictionary;
|
||||||
CatAllOf = catAllOf;
|
CatAllOf = catAllOf;
|
||||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="id">id</param>
|
/// <param name="id">id</param>
|
||||||
/// <param name="name">name (default to "default-name")</param>
|
/// <param name="name">name (default to "default-name")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Category(long id, string name = "default-name")
|
public Category(long id, string name = @"default-name")
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Name = name;
|
Name = name;
|
||||||
|
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="className">className</param>
|
/// <param name="className">className</param>
|
||||||
/// <param name="color">color (default to "red")</param>
|
/// <param name="color">color (default to "red")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal Dog(DogAllOf dogAllOf, string className, string color = "red") : base(className, color)
|
internal Dog(DogAllOf dogAllOf, string className, string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
DogAllOf = dogAllOf;
|
DogAllOf = dogAllOf;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar")</param>
|
/// <param name="bar">bar (default to "bar")</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
Bar = bar;
|
Bar = bar;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,170 @@
|
|||||||
|
// <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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public partial class LiteralStringClass : IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username")</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username")</param>
|
||||||
|
[JsonConstructor]
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
EscapedLiteralString = escapedLiteralString;
|
||||||
|
UnescapedLiteralString = unescapedLiteralString;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("escapedLiteralString")]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[JsonPropertyName("unescapedLiteralString")]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
public class LiteralStringClassJsonConverter : JsonConverter<LiteralStringClass>
|
||||||
|
{
|
||||||
|
/// <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 LiteralStringClass 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 escapedLiteralString = default;
|
||||||
|
string unescapedLiteralString = 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 "escapedLiteralString":
|
||||||
|
escapedLiteralString = utf8JsonReader.GetString();
|
||||||
|
break;
|
||||||
|
case "unescapedLiteralString":
|
||||||
|
unescapedLiteralString = 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 (escapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(escapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
if (unescapedLiteralString == null)
|
||||||
|
throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is required for class LiteralStringClass.");
|
||||||
|
|
||||||
|
#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 LiteralStringClass(escapedLiteralString, unescapedLiteralString);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A Json writer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="writer"></param>
|
||||||
|
/// <param name="literalStringClass"></param>
|
||||||
|
/// <param name="jsonSerializerOptions"></param>
|
||||||
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
|
public override void Write(Utf8JsonWriter writer, LiteralStringClass literalStringClass, JsonSerializerOptions jsonSerializerOptions)
|
||||||
|
{
|
||||||
|
writer.WriteStartObject();
|
||||||
|
|
||||||
|
writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString);
|
||||||
|
writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString);
|
||||||
|
|
||||||
|
writer.WriteEndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -51,6 +51,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -164,6 +165,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -218,6 +218,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||||
- [Model.List](docs/List.md)
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
|
||||||
- [Model.Mammal](docs/Mammal.md)
|
- [Model.Mammal](docs/Mammal.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,77 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -50,7 +50,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="className">className (required).</param>
|
/// <param name="className">className (required).</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Animal(string className = default(string), string color = "red")
|
public Animal(string className = default(string), string color = @"red")
|
||||||
{
|
{
|
||||||
// to ensure "className" is required (not null)
|
// to ensure "className" is required (not null)
|
||||||
if (className == null)
|
if (className == null)
|
||||||
@ -59,7 +59,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
}
|
}
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
this.Color = color ?? "red";
|
this.Color = color ?? @"red";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="declawed">declawed.</param>
|
/// <param name="declawed">declawed.</param>
|
||||||
/// <param name="className">className (required) (default to "Cat").</param>
|
/// <param name="className">className (required) (default to "Cat").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -46,7 +46,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">id.</param>
|
/// <param name="id">id.</param>
|
||||||
/// <param name="name">name (required) (default to "default-name").</param>
|
/// <param name="name">name (required) (default to "default-name").</param>
|
||||||
public Category(long id = default(long), string name = "default-name")
|
public Category(long id = default(long), string name = @"default-name")
|
||||||
{
|
{
|
||||||
// to ensure "name" is required (not null)
|
// to ensure "name" is required (not null)
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="breed">breed.</param>
|
/// <param name="breed">breed.</param>
|
||||||
/// <param name="className">className (required) (default to "Dog").</param>
|
/// <param name="className">className (required) (default to "Dog").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
public Dog(string breed = default(string), string className = @"Dog", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -37,10 +37,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar").</param>
|
/// <param name="bar">bar (default to "bar").</param>
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
// use default value if no "bar" provided
|
// use default value if no "bar" provided
|
||||||
this.Bar = bar ?? "bar";
|
this.Bar = bar ?? @"bar";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,148 @@
|
|||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "LiteralStringClass")]
|
||||||
|
public partial class LiteralStringClass : IEquatable<LiteralStringClass>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username").</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username").</param>
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
// use default value if no "escapedLiteralString" provided
|
||||||
|
this.EscapedLiteralString = escapedLiteralString ?? @"C:\\Users\\username";
|
||||||
|
// use default value if no "unescapedLiteralString" provided
|
||||||
|
this.UnescapedLiteralString = unescapedLiteralString ?? @"C:\Users\username";
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "escapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "unescapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if LiteralStringClass instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of LiteralStringClass to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(LiteralStringClass 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.EscapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.EscapedLiteralString.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.UnescapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.UnescapedLiteralString.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
public ParentPet(string petType = @"ParentPet") : base(petType)
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -167,6 +168,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||||
- [Model.List](docs/List.md)
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
|
||||||
- [Model.Mammal](docs/Mammal.md)
|
- [Model.Mammal](docs/Mammal.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,77 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="className">className (required).</param>
|
/// <param name="className">className (required).</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Animal(string className = default(string), string color = "red")
|
public Animal(string className = default(string), string color = @"red")
|
||||||
{
|
{
|
||||||
// to ensure "className" is required (not null)
|
// to ensure "className" is required (not null)
|
||||||
if (className == null)
|
if (className == null)
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
}
|
}
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
this.Color = color ?? "red";
|
this.Color = color ?? @"red";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="declawed">declawed.</param>
|
/// <param name="declawed">declawed.</param>
|
||||||
/// <param name="className">className (required) (default to "Cat").</param>
|
/// <param name="className">className (required) (default to "Cat").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">id.</param>
|
/// <param name="id">id.</param>
|
||||||
/// <param name="name">name (required) (default to "default-name").</param>
|
/// <param name="name">name (required) (default to "default-name").</param>
|
||||||
public Category(long id = default(long), string name = "default-name")
|
public Category(long id = default(long), string name = @"default-name")
|
||||||
{
|
{
|
||||||
// to ensure "name" is required (not null)
|
// to ensure "name" is required (not null)
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="breed">breed.</param>
|
/// <param name="breed">breed.</param>
|
||||||
/// <param name="className">className (required) (default to "Dog").</param>
|
/// <param name="className">className (required) (default to "Dog").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
public Dog(string breed = default(string), string className = @"Dog", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -36,10 +36,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar").</param>
|
/// <param name="bar">bar (default to "bar").</param>
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
// use default value if no "bar" provided
|
// use default value if no "bar" provided
|
||||||
this.Bar = bar ?? "bar";
|
this.Bar = bar ?? @"bar";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "LiteralStringClass")]
|
||||||
|
public partial class LiteralStringClass : IEquatable<LiteralStringClass>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username").</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username").</param>
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
// use default value if no "escapedLiteralString" provided
|
||||||
|
this.EscapedLiteralString = escapedLiteralString ?? @"C:\\Users\\username";
|
||||||
|
// use default value if no "unescapedLiteralString" provided
|
||||||
|
this.UnescapedLiteralString = unescapedLiteralString ?? @"C:\Users\username";
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "escapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "unescapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if LiteralStringClass instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of LiteralStringClass to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(LiteralStringClass 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.EscapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.EscapedLiteralString.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.UnescapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.UnescapedLiteralString.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
public ParentPet(string petType = @"ParentPet") : base(petType)
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -167,6 +168,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||||
- [Model.List](docs/List.md)
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
|
||||||
- [Model.Mammal](docs/Mammal.md)
|
- [Model.Mammal](docs/Mammal.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,77 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="className">className (required).</param>
|
/// <param name="className">className (required).</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Animal(string className = default(string), string color = "red")
|
public Animal(string className = default(string), string color = @"red")
|
||||||
{
|
{
|
||||||
// to ensure "className" is required (not null)
|
// to ensure "className" is required (not null)
|
||||||
if (className == null)
|
if (className == null)
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
}
|
}
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
this.Color = color ?? "red";
|
this.Color = color ?? @"red";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="declawed">declawed.</param>
|
/// <param name="declawed">declawed.</param>
|
||||||
/// <param name="className">className (required) (default to "Cat").</param>
|
/// <param name="className">className (required) (default to "Cat").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">id.</param>
|
/// <param name="id">id.</param>
|
||||||
/// <param name="name">name (required) (default to "default-name").</param>
|
/// <param name="name">name (required) (default to "default-name").</param>
|
||||||
public Category(long id = default(long), string name = "default-name")
|
public Category(long id = default(long), string name = @"default-name")
|
||||||
{
|
{
|
||||||
// to ensure "name" is required (not null)
|
// to ensure "name" is required (not null)
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="breed">breed.</param>
|
/// <param name="breed">breed.</param>
|
||||||
/// <param name="className">className (required) (default to "Dog").</param>
|
/// <param name="className">className (required) (default to "Dog").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
public Dog(string breed = default(string), string className = @"Dog", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -36,10 +36,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar").</param>
|
/// <param name="bar">bar (default to "bar").</param>
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
// use default value if no "bar" provided
|
// use default value if no "bar" provided
|
||||||
this.Bar = bar ?? "bar";
|
this.Bar = bar ?? @"bar";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "LiteralStringClass")]
|
||||||
|
public partial class LiteralStringClass : IEquatable<LiteralStringClass>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username").</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username").</param>
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
// use default value if no "escapedLiteralString" provided
|
||||||
|
this.EscapedLiteralString = escapedLiteralString ?? @"C:\\Users\\username";
|
||||||
|
// use default value if no "unescapedLiteralString" provided
|
||||||
|
this.UnescapedLiteralString = unescapedLiteralString ?? @"C:\Users\username";
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "escapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "unescapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if LiteralStringClass instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of LiteralStringClass to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(LiteralStringClass 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.EscapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.EscapedLiteralString.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.UnescapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.UnescapedLiteralString.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
public ParentPet(string petType = @"ParentPet") : base(petType)
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -167,6 +168,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||||
- [Model.List](docs/List.md)
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
|
||||||
- [Model.Mammal](docs/Mammal.md)
|
- [Model.Mammal](docs/Mammal.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
# Org.OpenAPITools.Model.LiteralStringClass
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EscapedLiteralString** | **string** | | [optional] [default to "C:\\Users\\username"]
|
||||||
|
**UnescapedLiteralString** | **string** | | [optional] [default to "C:\Users\username"]
|
||||||
|
|
||||||
|
[[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,77 @@
|
|||||||
|
/*
|
||||||
|
* 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 LiteralStringClass
|
||||||
|
/// </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 LiteralStringClassTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for LiteralStringClass
|
||||||
|
//private LiteralStringClass instance;
|
||||||
|
|
||||||
|
public LiteralStringClassTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of LiteralStringClass
|
||||||
|
//instance = new LiteralStringClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void LiteralStringClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" LiteralStringClass
|
||||||
|
//Assert.IsType<LiteralStringClass>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EscapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void EscapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EscapedLiteralString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'UnescapedLiteralString'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UnescapedLiteralStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'UnescapedLiteralString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -49,7 +49,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="className">className (required).</param>
|
/// <param name="className">className (required).</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Animal(string className = default(string), string color = "red")
|
public Animal(string className = default(string), string color = @"red")
|
||||||
{
|
{
|
||||||
// to ensure "className" is required (not null)
|
// to ensure "className" is required (not null)
|
||||||
if (className == null)
|
if (className == null)
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
}
|
}
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
this.Color = color ?? "red";
|
this.Color = color ?? @"red";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="declawed">declawed.</param>
|
/// <param name="declawed">declawed.</param>
|
||||||
/// <param name="className">className (required) (default to "Cat").</param>
|
/// <param name="className">className (required) (default to "Cat").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">id.</param>
|
/// <param name="id">id.</param>
|
||||||
/// <param name="name">name (required) (default to "default-name").</param>
|
/// <param name="name">name (required) (default to "default-name").</param>
|
||||||
public Category(long id = default(long), string name = "default-name")
|
public Category(long id = default(long), string name = @"default-name")
|
||||||
{
|
{
|
||||||
// to ensure "name" is required (not null)
|
// to ensure "name" is required (not null)
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="breed">breed.</param>
|
/// <param name="breed">breed.</param>
|
||||||
/// <param name="className">className (required) (default to "Dog").</param>
|
/// <param name="className">className (required) (default to "Dog").</param>
|
||||||
/// <param name="color">color (default to "red").</param>
|
/// <param name="color">color (default to "red").</param>
|
||||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
public Dog(string breed = default(string), string className = @"Dog", string color = @"red") : base(className, color)
|
||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
@ -36,10 +36,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="bar">bar (default to "bar").</param>
|
/// <param name="bar">bar (default to "bar").</param>
|
||||||
public Foo(string bar = "bar")
|
public Foo(string bar = @"bar")
|
||||||
{
|
{
|
||||||
// use default value if no "bar" provided
|
// use default value if no "bar" provided
|
||||||
this.Bar = bar ?? "bar";
|
this.Bar = bar ?? @"bar";
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
/// LiteralStringClass
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "LiteralStringClass")]
|
||||||
|
public partial class LiteralStringClass : IEquatable<LiteralStringClass>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LiteralStringClass" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="escapedLiteralString">escapedLiteralString (default to "C:\\Users\\username").</param>
|
||||||
|
/// <param name="unescapedLiteralString">unescapedLiteralString (default to "C:\Users\username").</param>
|
||||||
|
public LiteralStringClass(string escapedLiteralString = @"C:\\Users\\username", string unescapedLiteralString = @"C:\Users\username")
|
||||||
|
{
|
||||||
|
// use default value if no "escapedLiteralString" provided
|
||||||
|
this.EscapedLiteralString = escapedLiteralString ?? @"C:\\Users\\username";
|
||||||
|
// use default value if no "unescapedLiteralString" provided
|
||||||
|
this.UnescapedLiteralString = unescapedLiteralString ?? @"C:\Users\username";
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets EscapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "escapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string EscapedLiteralString { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets UnescapedLiteralString
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "unescapedLiteralString", EmitDefaultValue = false)]
|
||||||
|
public string UnescapedLiteralString { 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 LiteralStringClass {\n");
|
||||||
|
sb.Append(" EscapedLiteralString: ").Append(EscapedLiteralString).Append("\n");
|
||||||
|
sb.Append(" UnescapedLiteralString: ").Append(UnescapedLiteralString).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 LiteralStringClass).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if LiteralStringClass instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of LiteralStringClass to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(LiteralStringClass 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.EscapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.EscapedLiteralString.GetHashCode();
|
||||||
|
}
|
||||||
|
if (this.UnescapedLiteralString != null)
|
||||||
|
{
|
||||||
|
hashCode = (hashCode * 59) + this.UnescapedLiteralString.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
/// Initializes a new instance of the <see cref="ParentPet" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
/// <param name="petType">petType (required) (default to "ParentPet").</param>
|
||||||
public ParentPet(string petType = "ParentPet") : base(petType)
|
public ParentPet(string petType = @"ParentPet") : base(petType)
|
||||||
{
|
{
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ docs/HasOnlyReadOnly.md
|
|||||||
docs/HealthCheckResult.md
|
docs/HealthCheckResult.md
|
||||||
docs/IsoscelesTriangle.md
|
docs/IsoscelesTriangle.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
|
docs/LiteralStringClass.md
|
||||||
docs/Mammal.md
|
docs/Mammal.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
@ -163,6 +164,7 @@ src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
|||||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||||
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
|
||||||
src/Org.OpenAPITools/Model/List.cs
|
src/Org.OpenAPITools/Model/List.cs
|
||||||
|
src/Org.OpenAPITools/Model/LiteralStringClass.cs
|
||||||
src/Org.OpenAPITools/Model/Mammal.cs
|
src/Org.OpenAPITools/Model/Mammal.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
|
@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.HealthCheckResult](HealthCheckResult.md)
|
- [Model.HealthCheckResult](HealthCheckResult.md)
|
||||||
- [Model.IsoscelesTriangle](IsoscelesTriangle.md)
|
- [Model.IsoscelesTriangle](IsoscelesTriangle.md)
|
||||||
- [Model.List](List.md)
|
- [Model.List](List.md)
|
||||||
|
- [Model.LiteralStringClass](LiteralStringClass.md)
|
||||||
- [Model.Mammal](Mammal.md)
|
- [Model.Mammal](Mammal.md)
|
||||||
- [Model.MapTest](MapTest.md)
|
- [Model.MapTest](MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
@ -2186,6 +2186,15 @@ components:
|
|||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
LiteralStringClass:
|
||||||
|
properties:
|
||||||
|
escapedLiteralString:
|
||||||
|
default: C:\\Users\\username
|
||||||
|
type: string
|
||||||
|
unescapedLiteralString:
|
||||||
|
default: C:\Users\username
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
_foo_get_default_response:
|
_foo_get_default_response:
|
||||||
example:
|
example:
|
||||||
string:
|
string:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user