Skip to content

Commit d8ba49b

Browse files
authored
default OverrideSpecifiedNames to false (#7583)
1 parent b1da096 commit d8ba49b

File tree

3 files changed

+6
-6
lines changed
  • modules/openapi-generator/src/main/resources/csharp-netcore
  • samples/client/petstore/csharp-netcore

3 files changed

+6
-6
lines changed

modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace {{packageName}}.Client
4141
{
4242
NamingStrategy = new CamelCaseNamingStrategy
4343
{
44-
OverrideSpecifiedNames = true
44+
OverrideSpecifiedNames = false
4545
}
4646
}
4747
};
@@ -780,4 +780,4 @@ namespace {{packageName}}.Client
780780
}
781781
#endregion ISynchronousClient
782782
}
783-
}
783+
}

samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ApiClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal class CustomJsonCodec : RestSharp.Serializers.ISerializer, RestSharp.De
4646
{
4747
NamingStrategy = new CamelCaseNamingStrategy
4848
{
49-
OverrideSpecifiedNames = true
49+
OverrideSpecifiedNames = false
5050
}
5151
}
5252
};
@@ -782,4 +782,4 @@ public ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableCon
782782
}
783783
#endregion ISynchronousClient
784784
}
785-
}
785+
}

samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal class CustomJsonCodec : RestSharp.Serializers.ISerializer, RestSharp.De
4747
{
4848
NamingStrategy = new CamelCaseNamingStrategy
4949
{
50-
OverrideSpecifiedNames = true
50+
OverrideSpecifiedNames = false
5151
}
5252
}
5353
};
@@ -783,4 +783,4 @@ public ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableCon
783783
}
784784
#endregion ISynchronousClient
785785
}
786-
}
786+
}

0 commit comments

Comments
 (0)