diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
index 94d8b854b0d..ad48306e00c 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public AnotherFakeApi(String basePath)
+ public AnotherFakeApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -284,12 +284,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
index 27789c4533a..8844aca4ab7 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public DefaultApi(String basePath)
+ public DefaultApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -212,11 +212,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -263,11 +263,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs
index d7749151314..fe862283f1e 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -826,7 +826,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public FakeApi(String basePath)
+ public FakeApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -889,7 +889,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -936,11 +936,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -987,11 +987,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1039,12 +1039,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1094,12 +1094,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1148,12 +1148,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1203,12 +1203,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1257,12 +1257,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1312,12 +1312,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1366,12 +1366,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1421,12 +1421,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"*/*"
};
@@ -1473,11 +1473,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1524,11 +1524,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1579,12 +1579,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1636,12 +1636,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -1698,12 +1698,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1762,12 +1762,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -1820,12 +1820,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1879,12 +1879,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1966,12 +1966,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2027,7 +2027,7 @@ namespace Org.OpenAPITools.Api
// authentication (http_basic_test) required
// http basic authentication required
- if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
}
@@ -2102,12 +2102,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -2164,7 +2164,7 @@ namespace Org.OpenAPITools.Api
// authentication (http_basic_test) required
// http basic authentication required
- if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
}
@@ -2217,12 +2217,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2315,12 +2315,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -2408,11 +2408,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2439,7 +2439,7 @@ namespace Org.OpenAPITools.Api
// authentication (bearer_test) required
// bearer authentication required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -2490,11 +2490,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -2522,7 +2522,7 @@ namespace Org.OpenAPITools.Api
// authentication (bearer_test) required
// bearer authentication required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -2565,12 +2565,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2622,12 +2622,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -2684,12 +2684,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2748,12 +2748,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -2829,11 +2829,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -2913,11 +2913,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
index 56ebdf5fd10..d4fbb5868ad 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
@@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public FakeClassnameTags123Api(String basePath)
+ public FakeClassnameTags123Api(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Api
localVarRequestOptions.Data = modelClient;
// authentication (api_key_query) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
{
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
}
@@ -289,12 +289,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
localVarRequestOptions.Data = modelClient;
// authentication (api_key_query) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
{
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs
index 61759145f12..2bf19af1b1a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs
@@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public PetApi(String basePath)
+ public PetApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -586,13 +586,13 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json",
"application/xml"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -621,7 +621,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -666,13 +666,13 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json",
"application/xml"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -702,7 +702,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -743,11 +743,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -764,7 +764,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -807,11 +807,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -829,7 +829,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -873,11 +873,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -908,7 +908,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -990,7 +990,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1034,11 +1034,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1069,7 +1069,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1115,11 +1115,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1151,7 +1151,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1191,11 +1191,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1209,7 +1209,7 @@ namespace Org.OpenAPITools.Api
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
// authentication (api_key) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
{
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
}
@@ -1251,11 +1251,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1270,7 +1270,7 @@ namespace Org.OpenAPITools.Api
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
// authentication (api_key) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
{
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
}
@@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json",
"application/xml"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1348,7 +1348,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1393,13 +1393,13 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json",
"application/xml"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -1429,7 +1429,7 @@ namespace Org.OpenAPITools.Api
}
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1472,12 +1472,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1498,7 +1498,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1543,12 +1543,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/x-www-form-urlencoded"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -1570,7 +1570,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1614,12 +1614,12 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"multipart/form-data"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1641,7 +1641,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1687,12 +1687,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"multipart/form-data"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1715,7 +1715,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1763,12 +1763,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"multipart/form-data"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1787,7 +1787,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
@@ -1837,12 +1837,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"multipart/form-data"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -1862,7 +1862,7 @@ namespace Org.OpenAPITools.Api
// authentication (petstore_auth) required
// oauth required
- if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
{
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs
index 6ab56c9e9bf..ad7387db705 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs
@@ -234,7 +234,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public StoreApi(String basePath)
+ public StoreApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -349,11 +349,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -405,11 +405,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -455,11 +455,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
// authentication (api_key) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
{
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
}
@@ -511,11 +511,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/json"
};
@@ -528,7 +528,7 @@ namespace Org.OpenAPITools.Api
// authentication (api_key) required
- if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
{
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
}
@@ -568,11 +568,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -623,11 +623,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -681,12 +681,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -741,12 +741,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs
index 80436c9b433..a2f2598c8ac 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs
@@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
/// Initializes a new instance of the class.
///
///
- public UserApi(String basePath)
+ public UserApi(string basePath)
{
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
@@ -469,7 +469,7 @@ namespace Org.OpenAPITools.Api
/// Gets the base path of the API client.
///
/// The base path
- public String GetBasePath()
+ public string GetBasePath()
{
return this.Configuration.BasePath;
}
@@ -521,12 +521,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -578,12 +578,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -634,12 +634,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -691,12 +691,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -747,12 +747,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -804,12 +804,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -860,11 +860,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -916,11 +916,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -972,11 +972,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1031,11 +1031,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1095,11 +1095,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1161,11 +1161,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
"application/xml",
"application/json"
};
@@ -1213,11 +1213,11 @@ namespace Org.OpenAPITools.Api
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1262,11 +1262,11 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
@@ -1322,12 +1322,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -1386,12 +1386,12 @@ namespace Org.OpenAPITools.Api
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
- String[] _contentTypes = new String[] {
+ string[] _contentTypes = new string[] {
"application/json"
};
// to determine the Accept header
- String[] _accepts = new String[] {
+ string[] _accepts = new string[] {
};
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs
index c3d43b29bb4..68cf1fd135b 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs
@@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Client
var bytes = response.RawBytes;
if (response.Headers != null)
{
- var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
+ var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
? Path.GetTempPath()
: _configuration.TempFolderPath;
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Client
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
}
- if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
+ if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
{
return Convert.ChangeType(response.Content, type);
}
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Client
///
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
{
- private readonly String _baseUrl;
+ private readonly string _baseUrl;
///
/// Specifies the settings on a object.
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
///
/// The target service's base path in URL format.
///
- public ApiClient(String basePath)
+ public ApiClient(string basePath)
{
if (string.IsNullOrEmpty(basePath))
throw new ArgumentException("basePath cannot be empty");
@@ -268,7 +268,7 @@ namespace Org.OpenAPITools.Client
///
private RestRequest NewRequest(
HttpMethod method,
- String path,
+ string path,
RequestOptions options,
IReadableConfiguration configuration)
{
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiResponse.cs
index 1b7d787c84b..ca2de833a5a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiResponse.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ApiResponse.cs
@@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Client
///
/// Gets or sets any error text defined by the calling client.
///
- String ErrorText { get; set; }
+ string ErrorText { get; set; }
///
/// Gets or sets any cookies passed along on the response.
@@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Client
///
/// Gets or sets any error text defined by the calling client.
///
- public String ErrorText { get; set; }
+ public string ErrorText { get; set; }
///
/// Gets or sets any cookies passed along on the response.
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ClientUtils.cs
index 2b6e52d6065..3d038d5ce69 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ClientUtils.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ClientUtils.cs
@@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Client
/// URL encode a string
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
///
- /// String to be URL encoded
+ /// string to be URL encoded
/// Byte array
public static string UrlEncode(string input)
{
@@ -158,7 +158,7 @@ namespace Org.OpenAPITools.Client
///
/// Encode string in base64 format.
///
- /// String to be encoded.
+ /// string to be encoded.
/// Encoded string.
public static string Base64Encode(string text)
{
@@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Client
///
/// The Content-Type array to select from.
/// The Content-Type header to use.
- public static String SelectHeaderContentType(String[] contentTypes)
+ public static string SelectHeaderContentType(string[] contentTypes)
{
if (contentTypes.Length == 0)
return null;
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
///
/// The accepts array to select from.
/// The Accept header to use.
- public static String SelectHeaderAccept(String[] accepts)
+ public static string SelectHeaderAccept(string[] accepts)
{
if (accepts.Length == 0)
return null;
@@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Client
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
return "application/json";
- return String.Join(",", accepts);
+ return string.Join(",", accepts);
}
///
@@ -233,9 +233,9 @@ namespace Org.OpenAPITools.Client
///
/// MIME
/// Returns True if MIME type is json.
- public static bool IsJsonMime(String mime)
+ public static bool IsJsonMime(string mime)
{
- if (String.IsNullOrWhiteSpace(mime)) return false;
+ if (string.IsNullOrWhiteSpace(mime)) return false;
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs
index bca7db624cd..06154ad382c 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs
@@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
/// Defines the base path of the target API server.
/// Example: http://localhost:3000/v1/
///
- private String _basePath;
+ private string _basePath;
///
/// Gets or sets the API key based on the authentication name.
@@ -511,9 +511,9 @@ namespace Org.OpenAPITools.Client
///
/// Returns a string with essential information for debugging.
///
- public static String ToDebugReport()
+ public static string ToDebugReport()
{
- String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
+ string report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.0.0\n";
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 1b9f9b7a99f..1d2d0019cae 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Client
}
}
- var httpValues = HttpUtility.ParseQueryString(String.Empty);
+ var httpValues = HttpUtility.ParseQueryString(string.Empty);
foreach (var parameter in requestOptions.QueryParameters)
{
#if (NETCOREAPP)
@@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Client
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
var dateTime = DateTime.Now;
- String Digest = String.Empty;
+ string Digest = string.Empty;
//get the body
string requestBody = string.Empty;
@@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Client
}
}
- var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
+ var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
var headerValuesList = new List();
foreach (var keyVal in HttpSignatureHeader)
@@ -411,10 +411,10 @@ namespace Org.OpenAPITools.Client
return derBytes.ToArray();
}
- private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
+ private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
{
- const String pempubheader = "-----BEGIN PUBLIC KEY-----";
- const String pempubfooter = "-----END PUBLIC KEY-----";
+ const string pempubheader = "-----BEGIN PUBLIC KEY-----";
+ const string pempubfooter = "-----END PUBLIC KEY-----";
bool isPrivateKeyFile = true;
byte[] pemkey = null;
@@ -441,11 +441,11 @@ namespace Org.OpenAPITools.Client
return null;
}
- private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
+ private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
{
- const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
- const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
- String pemstr = instr.Trim();
+ const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
+ const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
+ string pemstr = instr.Trim();
byte[] binkey;
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
@@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
StringBuilder sb = new StringBuilder(pemstr);
sb.Replace(pemprivheader, "");
sb.Replace(pemprivfooter, "");
- String pvkstr = sb.ToString().Trim();
+ string pvkstr = sb.ToString().Trim();
try
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
@@ -472,12 +472,12 @@ namespace Org.OpenAPITools.Client
{
return null;
}
- String saltline = str.ReadLine();
+ string saltline = str.ReadLine();
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
{
return null;
}
- String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
+ string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
byte[] salt = new byte[saltstr.Length / 2];
for (int i = 0; i < salt.Length; i++)
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
@@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Client
}
//------ remaining b64 data is encrypted RSA key ----
- String encryptedstr = str.ReadToEnd();
+ string encryptedstr = str.ReadToEnd();
try
{ //should have b64 encrypted RSA key now
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IApiAccessor.cs
index 59465ae8e90..2bd76416004 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IApiAccessor.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IApiAccessor.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Client
/// Gets the base path of the API client.
///
/// The base path
- String GetBasePath();
+ string GetBasePath();
///
/// Provides a factory method hook for the creation of exceptions.
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IAsynchronousClient.cs
index 8a6f726678a..601e86d561c 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IAsynchronousClient.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IAsynchronousClient.cs
@@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> GetAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the POST http verb.
@@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PostAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the PUT http verb.
@@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PutAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the DELETE http verb.
@@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> DeleteAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the HEAD http verb.
@@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> HeadAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the OPTIONS http verb.
@@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> OptionsAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the PATCH http verb.
@@ -95,6 +95,6 @@ namespace Org.OpenAPITools.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PatchAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ISynchronousClient.cs
index d27f01a588b..0e0a7fedacf 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ISynchronousClient.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/ISynchronousClient.cs
@@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Get(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the POST http verb.
@@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Post(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the PUT http verb.
@@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Put(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the DELETE http verb.
@@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Delete(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the HEAD http verb.
@@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Head(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the OPTIONS http verb.
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Options(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null);
///
/// Executes a blocking call to some using the PATCH http verb.
@@ -88,6 +88,6 @@ namespace Org.OpenAPITools.Client
/// Per-request configurable settings.
/// The return type.
/// The response data, decorated with
- ApiResponse Patch(String path, RequestOptions options, IReadableConfiguration configuration = null);
+ ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null);
}
}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/RequestOptions.cs
index d8da585db9c..7a1d5b97a88 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/RequestOptions.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/RequestOptions.cs
@@ -24,29 +24,29 @@ namespace Org.OpenAPITools.Client
///
/// Parameters to be bound to path parts of the Request's URL
///
- public Dictionary PathParameters { get; set; }
+ public Dictionary PathParameters { get; set; }
///
/// Query parameters to be applied to the request.
/// Keys may have 1 or more values associated.
///
- public Multimap QueryParameters { get; set; }
+ public Multimap QueryParameters { get; set; }
///
/// Header parameters to be applied to to the request.
/// Keys may have 1 or more values associated.
///
- public Multimap HeaderParameters { get; set; }
+ public Multimap HeaderParameters { get; set; }
///
/// Form parameters to be sent along with the request.
///
- public Dictionary FormParameters { get; set; }
+ public Dictionary FormParameters { get; set; }
///
/// File parameters to be sent along with the request.
///
- public Dictionary FileParameters { get; set; }
+ public Dictionary FileParameters { get; set; }
///
/// Cookies to be sent along with the request.
@@ -67,8 +67,8 @@ namespace Org.OpenAPITools.Client
QueryParameters = new Multimap();
HeaderParameters = new Multimap();
FormParameters = new Dictionary();
- FileParameters = new Dictionary();
+ FileParameters = new Dictionary();
Cookies = new List();
}
}
-}
\ No newline at end of file
+}
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Fruit.cs
index 132be5b4d3b..66de6a1c6f1 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Fruit.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Fruit.cs
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
}
try
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FruitReq.cs
index 380896933df..488c489d73a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FruitReq.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/FruitReq.cs
@@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
}
try
@@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
index c168aa41d4c..1aaa59d3f8b 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
}
try
@@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
}
// no match found, throw an exception
@@ -229,7 +229,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs
index 2e847a10eb6..ed940d7ab6f 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Mammal.cs
@@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
newMammal = new Mammal(JsonConvert.DeserializeObject(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
return newMammal;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
break;
}
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
}
try
@@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
}
try
@@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs
index 80339ebf79b..20be30e5b89 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NullableShape.cs
@@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
newNullableShape = new NullableShape(JsonConvert.DeserializeObject(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
return newNullableShape;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
break;
}
@@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
}
try
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Pig.cs
index d8605861e63..967d2139a0a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Pig.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Pig.cs
@@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
newPig = new Pig(JsonConvert.DeserializeObject(jsonString, Pig.AdditionalPropertiesSerializerSettings));
return newPig;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
break;
}
@@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
}
try
@@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs
index 17463ca09a4..19bc98ed2ec 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Quadrilateral.cs
@@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
return newQuadrilateral;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
break;
}
@@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
}
try
@@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs
index e75e0e8b167..f17c4d9a8f5 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Shape.cs
@@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
newShape = new Shape(JsonConvert.DeserializeObject(jsonString, Shape.AdditionalPropertiesSerializerSettings));
return newShape;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
break;
}
@@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
}
try
@@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs
index 7471bafb379..df321dc9e81 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeOrNull.cs
@@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
return newShapeOrNull;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
break;
}
@@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
}
try
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
}
///
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Triangle.cs
index cccaa79a8ff..6f33859a898 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Triangle.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/Triangle.cs
@@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
newTriangle = new Triangle(JsonConvert.DeserializeObject(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
return newTriangle;
default:
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
break;
}
@@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
}
try
@@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
}
try
@@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
}
if (match == 0)
@@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((String)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
}
///