forked from loafle/openapi-generator-original
Compare commits
2 Commits
master
...
devhl-labs
Author | SHA1 | Date | |
---|---|---|---|
|
4fa075d291 | ||
|
6c955da59a |
@ -585,7 +585,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
List<CodegenProperty> allOf = composedSchemas.getAllOf();
|
List<CodegenProperty> allOf = composedSchemas.getAllOf();
|
||||||
if (allOf != null) {
|
if (allOf != null) {
|
||||||
for (CodegenProperty property : allOf) {
|
for (CodegenProperty property : allOf) {
|
||||||
property.name = patchPropertyName(model, property.baseType);
|
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||||
patchPropertyVendorExtensions(property);
|
patchPropertyVendorExtensions(property);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -594,7 +594,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
if (anyOf != null) {
|
if (anyOf != null) {
|
||||||
removePropertiesDeclaredInComposedTypes(objs, model, anyOf);
|
removePropertiesDeclaredInComposedTypes(objs, model, anyOf);
|
||||||
for (CodegenProperty property : anyOf) {
|
for (CodegenProperty property : anyOf) {
|
||||||
property.name = patchPropertyName(model, property.baseType);
|
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||||
property.isNullable = true;
|
property.isNullable = true;
|
||||||
patchPropertyVendorExtensions(property);
|
patchPropertyVendorExtensions(property);
|
||||||
}
|
}
|
||||||
@ -604,7 +604,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
if (oneOf != null) {
|
if (oneOf != null) {
|
||||||
removePropertiesDeclaredInComposedTypes(objs, model, oneOf);
|
removePropertiesDeclaredInComposedTypes(objs, model, oneOf);
|
||||||
for (CodegenProperty property : oneOf) {
|
for (CodegenProperty property : oneOf) {
|
||||||
property.name = patchPropertyName(model, property.baseType);
|
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||||
property.isNullable = true;
|
property.isNullable = true;
|
||||||
patchPropertyVendorExtensions(property);
|
patchPropertyVendorExtensions(property);
|
||||||
}
|
}
|
||||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal OneOfString(string varString)
|
internal OneOfString(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varBool"></param>
|
/// <param name="bool"></param>
|
||||||
internal PolymorphicProperty(bool varBool)
|
internal PolymorphicProperty(bool @bool)
|
||||||
{
|
{
|
||||||
VarBool = varBool;
|
Bool = @bool;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal PolymorphicProperty(string varString)
|
internal PolymorphicProperty(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarBool
|
/// Gets or Sets Bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? VarBool { get; set; }
|
public bool? Bool { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Object
|
/// Gets or Sets Object
|
||||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||||
{
|
{
|
||||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||||
|
@ -34,19 +34,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal OneOfString(string varString)
|
internal OneOfString(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? VarString { get; set; }
|
public string? String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
|
@ -34,20 +34,20 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varBool"></param>
|
/// <param name="bool"></param>
|
||||||
internal PolymorphicProperty(bool varBool)
|
internal PolymorphicProperty(bool @bool)
|
||||||
{
|
{
|
||||||
VarBool = varBool;
|
Bool = @bool;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal PolymorphicProperty(string varString)
|
internal PolymorphicProperty(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,14 +74,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarBool
|
/// Gets or Sets Bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? VarBool { get; set; }
|
public bool? Bool { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? VarString { get; set; }
|
public string? String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Object
|
/// Gets or Sets Object
|
||||||
@ -161,11 +161,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||||
{
|
{
|
||||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal OneOfString(string varString)
|
internal OneOfString(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varBool"></param>
|
/// <param name="bool"></param>
|
||||||
internal PolymorphicProperty(bool varBool)
|
internal PolymorphicProperty(bool @bool)
|
||||||
{
|
{
|
||||||
VarBool = varBool;
|
Bool = @bool;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal PolymorphicProperty(string varString)
|
internal PolymorphicProperty(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarBool
|
/// Gets or Sets Bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? VarBool { get; set; }
|
public bool? Bool { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Object
|
/// Gets or Sets Object
|
||||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||||
{
|
{
|
||||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||||
|
@ -35,19 +35,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal OneOfString(string varString)
|
internal OneOfString(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? VarString { get; set; }
|
public string? String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
|
@ -35,20 +35,20 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varBool"></param>
|
/// <param name="bool"></param>
|
||||||
internal PolymorphicProperty(bool varBool)
|
internal PolymorphicProperty(bool @bool)
|
||||||
{
|
{
|
||||||
VarBool = varBool;
|
Bool = @bool;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal PolymorphicProperty(string varString)
|
internal PolymorphicProperty(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,14 +75,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarBool
|
/// Gets or Sets Bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? VarBool { get; set; }
|
public bool? Bool { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? VarString { get; set; }
|
public string? String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Object
|
/// Gets or Sets Object
|
||||||
@ -162,11 +162,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||||
{
|
{
|
||||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal OneOfString(string varString)
|
internal OneOfString(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varBool"></param>
|
/// <param name="bool"></param>
|
||||||
internal PolymorphicProperty(bool varBool)
|
internal PolymorphicProperty(bool @bool)
|
||||||
{
|
{
|
||||||
VarBool = varBool;
|
Bool = @bool;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="varString"></param>
|
/// <param name="string"></param>
|
||||||
internal PolymorphicProperty(string varString)
|
internal PolymorphicProperty(string @string)
|
||||||
{
|
{
|
||||||
VarString = varString;
|
String = @string;
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarBool
|
/// Gets or Sets Bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? VarBool { get; set; }
|
public bool? Bool { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets VarString
|
/// Gets or Sets String
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VarString { get; set; }
|
public string String { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Object
|
/// Gets or Sets Object
|
||||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||||
{
|
{
|
||||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||||
|
|
||||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user