mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Merge branch 'property-names-should-be-pascal-case' of https://github.com/devhl-labs/openapi-generator into devhl-labs-property-names-should-be-pascal-case
This commit is contained in:
commit
4fa075d291
@ -585,7 +585,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
||||
List<CodegenProperty> allOf = composedSchemas.getAllOf();
|
||||
if (allOf != null) {
|
||||
for (CodegenProperty property : allOf) {
|
||||
property.name = patchPropertyName(model, property.baseType);
|
||||
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||
patchPropertyVendorExtensions(property);
|
||||
}
|
||||
}
|
||||
@ -594,7 +594,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
||||
if (anyOf != null) {
|
||||
removePropertiesDeclaredInComposedTypes(objs, model, anyOf);
|
||||
for (CodegenProperty property : anyOf) {
|
||||
property.name = patchPropertyName(model, property.baseType);
|
||||
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||
property.isNullable = true;
|
||||
patchPropertyVendorExtensions(property);
|
||||
}
|
||||
@ -604,7 +604,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
||||
if (oneOf != null) {
|
||||
removePropertiesDeclaredInComposedTypes(objs, model, oneOf);
|
||||
for (CodegenProperty property : oneOf) {
|
||||
property.name = patchPropertyName(model, property.baseType);
|
||||
property.name = patchPropertyName(model, camelize(property.baseType));
|
||||
property.isNullable = true;
|
||||
patchPropertyVendorExtensions(property);
|
||||
}
|
||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal OneOfString(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal OneOfString(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varBool"></param>
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
/// <param name="bool"></param>
|
||||
internal PolymorphicProperty(bool @bool)
|
||||
{
|
||||
VarBool = varBool;
|
||||
Bool = @bool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal PolymorphicProperty(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal PolymorphicProperty(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarBool
|
||||
/// Gets or Sets Bool
|
||||
/// </summary>
|
||||
public bool? VarBool { get; set; }
|
||||
public bool? Bool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Object
|
||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||
{
|
||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
||||
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
||||
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||
|
@ -34,19 +34,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal OneOfString(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal OneOfString(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string? VarString { get; set; }
|
||||
public string? String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
|
@ -34,20 +34,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varBool"></param>
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
/// <param name="bool"></param>
|
||||
internal PolymorphicProperty(bool @bool)
|
||||
{
|
||||
VarBool = varBool;
|
||||
Bool = @bool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal PolymorphicProperty(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal PolymorphicProperty(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@ -74,14 +74,14 @@ namespace Org.OpenAPITools.Model
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarBool
|
||||
/// Gets or Sets Bool
|
||||
/// </summary>
|
||||
public bool? VarBool { get; set; }
|
||||
public bool? Bool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string? VarString { get; set; }
|
||||
public string? String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Object
|
||||
@ -161,11 +161,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||
{
|
||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
||||
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
||||
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal OneOfString(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal OneOfString(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varBool"></param>
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
/// <param name="bool"></param>
|
||||
internal PolymorphicProperty(bool @bool)
|
||||
{
|
||||
VarBool = varBool;
|
||||
Bool = @bool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal PolymorphicProperty(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal PolymorphicProperty(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarBool
|
||||
/// Gets or Sets Bool
|
||||
/// </summary>
|
||||
public bool? VarBool { get; set; }
|
||||
public bool? Bool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Object
|
||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||
{
|
||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
||||
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
||||
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||
|
@ -35,19 +35,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal OneOfString(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal OneOfString(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string? VarString { get; set; }
|
||||
public string? String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
|
@ -35,20 +35,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varBool"></param>
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
/// <param name="bool"></param>
|
||||
internal PolymorphicProperty(bool @bool)
|
||||
{
|
||||
VarBool = varBool;
|
||||
Bool = @bool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal PolymorphicProperty(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal PolymorphicProperty(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@ -75,14 +75,14 @@ namespace Org.OpenAPITools.Model
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarBool
|
||||
/// Gets or Sets Bool
|
||||
/// </summary>
|
||||
public bool? VarBool { get; set; }
|
||||
public bool? Bool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string? VarString { get; set; }
|
||||
public string? String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Object
|
||||
@ -162,11 +162,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||
{
|
||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
||||
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
||||
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string?>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<Object?>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||
|
@ -32,19 +32,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneOfString" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal OneOfString(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal OneOfString(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets additional properties
|
||||
|
@ -32,20 +32,20 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varBool"></param>
|
||||
internal PolymorphicProperty(bool varBool)
|
||||
/// <param name="bool"></param>
|
||||
internal PolymorphicProperty(bool @bool)
|
||||
{
|
||||
VarBool = varBool;
|
||||
Bool = @bool;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PolymorphicProperty" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varString"></param>
|
||||
internal PolymorphicProperty(string varString)
|
||||
/// <param name="string"></param>
|
||||
internal PolymorphicProperty(string @string)
|
||||
{
|
||||
VarString = varString;
|
||||
String = @string;
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@ -72,14 +72,14 @@ namespace Org.OpenAPITools.Model
|
||||
partial void OnCreated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarBool
|
||||
/// Gets or Sets Bool
|
||||
/// </summary>
|
||||
public bool? VarBool { get; set; }
|
||||
public bool? Bool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarString
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
public string VarString { get; set; }
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Object
|
||||
@ -159,11 +159,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
if (utf8JsonReaderOneOf.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReaderOneOf.CurrentDepth - 1)
|
||||
{
|
||||
Utf8JsonReader utf8JsonReaderVarBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderVarBool, jsonSerializerOptions, out varBool);
|
||||
Utf8JsonReader utf8JsonReaderBool = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<bool?>(ref utf8JsonReaderBool, jsonSerializerOptions, out varBool);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderVarString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderVarString, jsonSerializerOptions, out varString);
|
||||
Utf8JsonReader utf8JsonReaderString = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<string>(ref utf8JsonReaderString, jsonSerializerOptions, out varString);
|
||||
|
||||
Utf8JsonReader utf8JsonReaderObject = utf8JsonReader;
|
||||
ClientUtils.TryDeserialize<Object>(ref utf8JsonReaderObject, jsonSerializerOptions, out varObject);
|
||||
|
Loading…
x
Reference in New Issue
Block a user