From 015886fdedf79b7a33fa7c2351ec41c40df89549 Mon Sep 17 00:00:00 2001 From: Prajon Shakya Date: Sat, 19 Jun 2021 00:42:33 -0400 Subject: [PATCH] [csharp][netcore] Update type "String" to "string" for consistent type (#9713) * Updated 'String' to 'string' for consistent use of keyword * Build project and update samples for csharp-netcore --- .../csharp-netcore/ApiClient.mustache | 10 +- .../csharp-netcore/ApiResponse.mustache | 4 +- .../csharp-netcore/ClientUtils.mustache | 14 +- .../csharp-netcore/Configuration.mustache | 6 +- .../HttpSigningConfiguration.mustache | 28 +- .../csharp-netcore/IApiAccessor.mustache | 2 +- .../IAsynchronousClient.mustache | 14 +- .../ISynchronousClient.mustache | 14 +- .../csharp-netcore/RequestOptions.mustache | 14 +- .../resources/csharp-netcore/api.mustache | 36 +- .../libraries/httpclient/ApiClient.mustache | 12 +- .../httpclient/RequestOptions.mustache | 14 +- .../libraries/httpclient/api.mustache | 38 +- .../csharp-netcore/modelAnyOf.mustache | 4 +- .../csharp-netcore/modelOneOf.mustache | 6 +- .../.openapi-generator/FILES | 374 +++++++++--------- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 14 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 14 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 134 +++---- .../Api/FakeClassnameTags123Api.cs | 18 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 114 +++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 42 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 70 ++-- .../src/Org.OpenAPITools/Client/ApiClient.cs | 12 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Client/HttpSigningConfiguration.cs | 28 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 6 +- .../src/Org.OpenAPITools/Model/FruitReq.cs | 6 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 6 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 10 +- .../Org.OpenAPITools/Model/NullableShape.cs | 8 +- .../src/Org.OpenAPITools/Model/Pig.cs | 8 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 8 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 8 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 10 +- .../.openapi-generator/FILES | 374 +++++++++--------- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 12 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 12 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 132 +++---- .../Api/FakeClassnameTags123Api.cs | 16 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 112 +++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 40 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 68 ++-- .../src/Org.OpenAPITools/Client/ApiClient.cs | 10 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Client/HttpSigningConfiguration.cs | 28 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 6 +- .../src/Org.OpenAPITools/Model/FruitReq.cs | 6 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 6 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 10 +- .../Org.OpenAPITools/Model/NullableShape.cs | 8 +- .../src/Org.OpenAPITools/Model/Pig.cs | 8 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 8 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 8 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 10 +- .../.openapi-generator/FILES | 374 +++++++++--------- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 12 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 12 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 132 +++---- .../Api/FakeClassnameTags123Api.cs | 16 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 112 +++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 40 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 68 ++-- .../src/Org.OpenAPITools/Client/ApiClient.cs | 10 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Client/HttpSigningConfiguration.cs | 28 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 6 +- .../src/Org.OpenAPITools/Model/FruitReq.cs | 6 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 6 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 10 +- .../Org.OpenAPITools/Model/NullableShape.cs | 8 +- .../src/Org.OpenAPITools/Model/Pig.cs | 8 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 8 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 8 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 10 +- .../OpenAPIClient/.openapi-generator/FILES | 372 ++++++++--------- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 12 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 12 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 132 +++---- .../Api/FakeClassnameTags123Api.cs | 16 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 112 +++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 40 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 68 ++-- .../src/Org.OpenAPITools/Client/ApiClient.cs | 10 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Client/HttpSigningConfiguration.cs | 28 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 6 +- .../src/Org.OpenAPITools/Model/FruitReq.cs | 6 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 6 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 10 +- .../Org.OpenAPITools/Model/NullableShape.cs | 8 +- .../src/Org.OpenAPITools/Model/Pig.cs | 8 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 8 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 8 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 10 +- .../.openapi-generator/FILES | 372 ++++++++--------- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 12 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 12 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 132 +++---- .../Api/FakeClassnameTags123Api.cs | 16 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 112 +++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 40 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 68 ++-- .../src/Org.OpenAPITools/Client/ApiClient.cs | 10 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Client/HttpSigningConfiguration.cs | 28 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 6 +- .../src/Org.OpenAPITools/Model/FruitReq.cs | 6 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 6 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 8 +- .../Org.OpenAPITools/Model/NullableShape.cs | 6 +- .../src/Org.OpenAPITools/Model/Pig.cs | 6 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 6 +- .../src/Org.OpenAPITools/Model/Shape.cs | 6 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 8 +- .../.openapi-generator/FILES | 84 ++-- .../src/Org.OpenAPITools/Api/PetApi.cs | 100 ++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 40 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 92 ++--- .../src/Org.OpenAPITools/Client/ApiClient.cs | 10 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 4 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 14 +- .../Org.OpenAPITools/Client/Configuration.cs | 6 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/ISynchronousClient.cs | 14 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 14 +- 162 files changed, 2679 insertions(+), 2679 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache index 6d0e25d93f4..8f62efb7394 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache @@ -106,7 +106,7 @@ namespace {{packageName}}.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 {{packageName}}.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); } @@ -163,7 +163,7 @@ namespace {{packageName}}.Client /// {{>visibility}} partial class ApiClient : ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} { - private readonly String _baseUrl; + private readonly string _baseUrl; /// /// Specifies the settings on a object. @@ -208,7 +208,7 @@ namespace {{packageName}}.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"); @@ -269,7 +269,7 @@ namespace {{packageName}}.Client /// private RestRequest NewRequest( HttpMethod method, - String path, + string path, RequestOptions options, IReadableConfiguration configuration) { diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiResponse.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiResponse.mustache index 35bd9f72d31..161c2acd16c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiResponse.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiResponse.mustache @@ -36,7 +36,7 @@ namespace {{packageName}}.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. @@ -77,7 +77,7 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache index dd9a5f90fdc..3c04dcdbd0c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache @@ -120,7 +120,7 @@ namespace {{packageName}}.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) { @@ -154,7 +154,7 @@ namespace {{packageName}}.Client /// /// Encode string in base64 format. /// - /// String to be encoded. + /// string to be encoded. /// Encoded string. public static string Base64Encode(string text) { @@ -182,7 +182,7 @@ namespace {{packageName}}.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; @@ -203,7 +203,7 @@ namespace {{packageName}}.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; @@ -211,7 +211,7 @@ namespace {{packageName}}.Client if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) return "application/json"; - return String.Join(",", accepts); + return string.Join(",", accepts); } /// @@ -229,9 +229,9 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache index 718db517d4e..ead56414441 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache @@ -68,7 +68,7 @@ namespace {{packageName}}.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. @@ -496,9 +496,9 @@ namespace {{packageName}}.Client /// /// Returns a string with essential information for debugging. /// - public static String ToDebugReport() + public static string ToDebugReport() { - String report = "C# SDK ({{{packageName}}}) Debug Report:\n"; + string report = "C# SDK ({{{packageName}}}) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: {{{version}}}\n"; diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache index 597f503e558..cc8c275e40b 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache @@ -120,7 +120,7 @@ namespace {{packageName}}.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 {{packageName}}.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 {{packageName}}.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 {{packageName}}.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 {{packageName}}.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 {{packageName}}.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 {{packageName}}.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 {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/IApiAccessor.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IApiAccessor.mustache index 5ef01aa6c0d..a269f56e904 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IApiAccessor.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IApiAccessor.mustache @@ -19,7 +19,7 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/IAsynchronousClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IAsynchronousClient.mustache index 8dca28d0f88..f0c88fae473 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IAsynchronousClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IAsynchronousClient.mustache @@ -21,7 +21,7 @@ namespace {{packageName}}.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. @@ -32,7 +32,7 @@ namespace {{packageName}}.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. @@ -43,7 +43,7 @@ namespace {{packageName}}.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. @@ -54,7 +54,7 @@ namespace {{packageName}}.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. @@ -65,7 +65,7 @@ namespace {{packageName}}.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. @@ -76,7 +76,7 @@ namespace {{packageName}}.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. @@ -87,6 +87,6 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/ISynchronousClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ISynchronousClient.mustache index 1ac0b2a8691..c09bfbfed66 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ISynchronousClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ISynchronousClient.mustache @@ -20,7 +20,7 @@ namespace {{packageName}}.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. @@ -30,7 +30,7 @@ namespace {{packageName}}.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. @@ -40,7 +40,7 @@ namespace {{packageName}}.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. @@ -50,7 +50,7 @@ namespace {{packageName}}.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. @@ -60,7 +60,7 @@ namespace {{packageName}}.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. @@ -70,7 +70,7 @@ namespace {{packageName}}.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. @@ -80,6 +80,6 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/RequestOptions.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/RequestOptions.mustache index 224eb497d28..dc924c733c1 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/RequestOptions.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/RequestOptions.mustache @@ -16,29 +16,29 @@ namespace {{packageName}}.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. @@ -59,8 +59,8 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache index 40d3bfd6596..8d84eecefb4 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache @@ -115,7 +115,7 @@ namespace {{packageName}}.{{apiPackage}} /// Initializes a new instance of the class. /// /// - public {{classname}}(String basePath) + public {{classname}}(string basePath) { this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( {{packageName}}.Client.GlobalConfiguration.Instance, @@ -188,7 +188,7 @@ namespace {{packageName}}.{{apiPackage}} /// Gets the base path of the API client. /// /// The base path - public String GetBasePath() + public string GetBasePath() { return this.Configuration.BasePath; } @@ -248,14 +248,14 @@ namespace {{packageName}}.{{apiPackage}} {{/allParams}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); - String[] _contentTypes = new String[] { + string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/consumes}} }; // to determine the Accept header - String[] _accepts = new String[] { + string[] _accepts = new string[] { {{#produces}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/produces}} @@ -353,19 +353,19 @@ namespace {{packageName}}.{{apiPackage}} {{#isApiKey}} {{#isKeyInCookie}} // cookie parameter support - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } {{/isKeyInCookie}} {{#isKeyInHeader}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); } {{/isKeyInHeader}} {{#isKeyInQuery}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } @@ -373,21 +373,21 @@ namespace {{packageName}}.{{apiPackage}} {{/isApiKey}} {{#isBasicBasic}} // 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 " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } {{/isBasicBearer}} {{#isOAuth}} // oauth required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } @@ -463,14 +463,14 @@ namespace {{packageName}}.{{apiPackage}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); - String[] _contentTypes = new String[] { + string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}}, {{/-last}} {{/consumes}} }; // to determine the Accept header - String[] _accepts = new String[] { + string[] _accepts = new string[] { {{#produces}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/produces}} @@ -546,19 +546,19 @@ namespace {{packageName}}.{{apiPackage}} {{#isApiKey}} {{#isKeyInCookie}} // cookie parameter support - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } {{/isKeyInCookie}} {{#isKeyInHeader}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); } {{/isKeyInHeader}} {{#isKeyInQuery}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } @@ -567,14 +567,14 @@ namespace {{packageName}}.{{apiPackage}} {{#isBasic}} {{#isBasicBasic}} // 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 " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } @@ -582,7 +582,7 @@ namespace {{packageName}}.{{apiPackage}} {{/isBasic}} {{#isOAuth}} // 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/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache index e48722f8fa7..e9c39ea9f6d 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache @@ -107,7 +107,7 @@ namespace {{packageName}}.Client var bytes = await response.Content.ReadAsByteArrayAsync(); if (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]+)['""]?$"); @@ -131,7 +131,7 @@ namespace {{packageName}}.Client return DateTime.Parse(await response.Content.ReadAsStringAsync(), 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(await response.Content.ReadAsStringAsync(), type); } @@ -166,7 +166,7 @@ namespace {{packageName}}.Client /// {{>visibility}} partial class ApiClient : IDisposable, ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} { - private readonly String _baseUrl; + private readonly string _baseUrl; private readonly HttpClientHandler _httpClientHandler; private readonly HttpClient _httpClient; @@ -206,7 +206,7 @@ namespace {{packageName}}.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"); @@ -243,7 +243,7 @@ namespace {{packageName}}.Client /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public ApiClient(HttpClient client, String basePath, HttpClientHandler handler = null) + public ApiClient(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client cannot be null"); if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); @@ -301,7 +301,7 @@ namespace {{packageName}}.Client /// private HttpRequestMessage NewRequest( HttpMethod method, - String path, + string path, RequestOptions options, IReadableConfiguration configuration) { diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/RequestOptions.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/RequestOptions.mustache index b0137d97997..bc5a8e348b8 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/RequestOptions.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/RequestOptions.mustache @@ -16,29 +16,29 @@ namespace {{packageName}}.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. @@ -59,8 +59,8 @@ namespace {{packageName}}.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/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache index 0a3389d0a45..20ddfe96b98 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache @@ -122,7 +122,7 @@ namespace {{packageName}}.{{apiPackage}} /// The target service's base path in URL format. /// /// - public {{classname}}(String basePath) + public {{classname}}(string basePath) { this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( {{packageName}}.Client.GlobalConfiguration.Instance, @@ -188,7 +188,7 @@ namespace {{packageName}}.{{apiPackage}} /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public {{classname}}(HttpClient client, String basePath, HttpClientHandler handler = null) + public {{classname}}(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -286,7 +286,7 @@ namespace {{packageName}}.{{apiPackage}} /// Gets the base path of the API client. /// /// The base path - public String GetBasePath() + public string GetBasePath() { return this.Configuration.BasePath; } @@ -346,14 +346,14 @@ namespace {{packageName}}.{{apiPackage}} {{/allParams}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); - String[] _contentTypes = new String[] { + string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/consumes}} }; // to determine the Accept header - String[] _accepts = new String[] { + string[] _accepts = new string[] { {{#produces}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/produces}} @@ -451,19 +451,19 @@ namespace {{packageName}}.{{apiPackage}} {{#isApiKey}} {{#isKeyInCookie}} // cookie parameter support - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } {{/isKeyInCookie}} {{#isKeyInHeader}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); } {{/isKeyInHeader}} {{#isKeyInQuery}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } @@ -471,21 +471,21 @@ namespace {{packageName}}.{{apiPackage}} {{/isApiKey}} {{#isBasicBasic}} // 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 " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } {{/isBasicBearer}} {{#isOAuth}} // oauth required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } @@ -561,14 +561,14 @@ namespace {{packageName}}.{{apiPackage}} {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); - String[] _contentTypes = new String[] { + string[] _contentTypes = new string[] { {{#consumes}} "{{{mediaType}}}"{{^-last}}, {{/-last}} {{/consumes}} }; // to determine the Accept header - String[] _accepts = new String[] { + string[] _accepts = new string[] { {{#produces}} "{{{mediaType}}}"{{^-last}},{{/-last}} {{/produces}} @@ -644,19 +644,19 @@ namespace {{packageName}}.{{apiPackage}} {{#isApiKey}} {{#isKeyInCookie}} // cookie parameter support - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } {{/isKeyInCookie}} {{#isKeyInHeader}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); } {{/isKeyInHeader}} {{#isKeyInQuery}} - if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) { localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); } @@ -665,14 +665,14 @@ namespace {{packageName}}.{{apiPackage}} {{#isBasic}} {{#isBasicBasic}} // 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 " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } @@ -680,7 +680,7 @@ namespace {{packageName}}.{{apiPackage}} {{/isBasic}} {{#isOAuth}} // 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/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache index 0bb2f488666..931f7646da8 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache @@ -115,7 +115,7 @@ catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString())); } {{/anyOf}} @@ -195,7 +195,7 @@ /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((String)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null))); + writer.WriteRawValue((string)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null))); } /// diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache index 6b26e1245a0..d2d6e28b3f9 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache @@ -116,7 +116,7 @@ return new{{classname}}; {{/mappedModels}} default: - System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue)); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue)); break; } @@ -143,7 +143,7 @@ catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString())); } {{/oneOf}} @@ -232,7 +232,7 @@ /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((String)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null))); + writer.WriteRawValue((string)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES index d317e612051..5270579e128 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES @@ -1,187 +1,187 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/Apple.md -docs/AppleReq.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Banana.md -docs/BananaReq.md -docs/BasquePig.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ChildCat.md -docs/ChildCatAllOf.md -docs/ClassModel.md -docs/ComplexQuadrilateral.md -docs/DanishPig.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/Drawing.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/EquilateralTriangle.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/Fruit.md -docs/FruitReq.md -docs/GmFruit.md -docs/GrandparentAnimal.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/IsoscelesTriangle.md -docs/List.md -docs/Mammal.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelClient.md -docs/Name.md -docs/NullableClass.md -docs/NullableShape.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/ParentPet.md -docs/Pet.md -docs/PetApi.md -docs/Pig.md -docs/Quadrilateral.md -docs/QuadrilateralInterface.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/ScaleneTriangle.md -docs/Shape.md -docs/ShapeInterface.md -docs/ShapeOrNull.md -docs/SimpleQuadrilateral.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/Triangle.md -docs/TriangleInterface.md -docs/User.md -docs/UserApi.md -docs/Whale.md -docs/Zebra.md -git_push.sh -src/Org.OpenAPITools/Api/AnotherFakeApi.cs -src/Org.OpenAPITools/Api/DefaultApi.cs -src/Org.OpenAPITools/Api/FakeApi.cs -src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/FileParameter.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Client/WebRequestPathBuilder.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Animal.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Apple.cs -src/Org.OpenAPITools/Model/AppleReq.cs -src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayTest.cs -src/Org.OpenAPITools/Model/Banana.cs -src/Org.OpenAPITools/Model/BananaReq.cs -src/Org.OpenAPITools/Model/BasquePig.cs -src/Org.OpenAPITools/Model/Capitalization.cs -src/Org.OpenAPITools/Model/Cat.cs -src/Org.OpenAPITools/Model/CatAllOf.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/ChildCat.cs -src/Org.OpenAPITools/Model/ChildCatAllOf.cs -src/Org.OpenAPITools/Model/ClassModel.cs -src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs -src/Org.OpenAPITools/Model/DanishPig.cs -src/Org.OpenAPITools/Model/Dog.cs -src/Org.OpenAPITools/Model/DogAllOf.cs -src/Org.OpenAPITools/Model/Drawing.cs -src/Org.OpenAPITools/Model/EnumArrays.cs -src/Org.OpenAPITools/Model/EnumClass.cs -src/Org.OpenAPITools/Model/EnumTest.cs -src/Org.OpenAPITools/Model/EquilateralTriangle.cs -src/Org.OpenAPITools/Model/File.cs -src/Org.OpenAPITools/Model/FileSchemaTestClass.cs -src/Org.OpenAPITools/Model/Foo.cs -src/Org.OpenAPITools/Model/FormatTest.cs -src/Org.OpenAPITools/Model/Fruit.cs -src/Org.OpenAPITools/Model/FruitReq.cs -src/Org.OpenAPITools/Model/GmFruit.cs -src/Org.OpenAPITools/Model/GrandparentAnimal.cs -src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs -src/Org.OpenAPITools/Model/HealthCheckResult.cs -src/Org.OpenAPITools/Model/InlineResponseDefault.cs -src/Org.OpenAPITools/Model/IsoscelesTriangle.cs -src/Org.OpenAPITools/Model/List.cs -src/Org.OpenAPITools/Model/Mammal.cs -src/Org.OpenAPITools/Model/MapTest.cs -src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Model200Response.cs -src/Org.OpenAPITools/Model/ModelClient.cs -src/Org.OpenAPITools/Model/Name.cs -src/Org.OpenAPITools/Model/NullableClass.cs -src/Org.OpenAPITools/Model/NullableShape.cs -src/Org.OpenAPITools/Model/NumberOnly.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/OuterComposite.cs -src/Org.OpenAPITools/Model/OuterEnum.cs -src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs -src/Org.OpenAPITools/Model/OuterEnumInteger.cs -src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs -src/Org.OpenAPITools/Model/ParentPet.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Pig.cs -src/Org.OpenAPITools/Model/Quadrilateral.cs -src/Org.OpenAPITools/Model/QuadrilateralInterface.cs -src/Org.OpenAPITools/Model/ReadOnlyFirst.cs -src/Org.OpenAPITools/Model/Return.cs -src/Org.OpenAPITools/Model/ScaleneTriangle.cs -src/Org.OpenAPITools/Model/Shape.cs -src/Org.OpenAPITools/Model/ShapeInterface.cs -src/Org.OpenAPITools/Model/ShapeOrNull.cs -src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs -src/Org.OpenAPITools/Model/SpecialModelName.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/Triangle.cs -src/Org.OpenAPITools/Model/TriangleInterface.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Model/Whale.cs -src/Org.OpenAPITools/Model/Zebra.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/Apple.md +docs/AppleReq.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Banana.md +docs/BananaReq.md +docs/BasquePig.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ChildCat.md +docs/ChildCatAllOf.md +docs/ClassModel.md +docs/ComplexQuadrilateral.md +docs/DanishPig.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/Drawing.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/EquilateralTriangle.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/Fruit.md +docs/FruitReq.md +docs/GmFruit.md +docs/GrandparentAnimal.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineResponseDefault.md +docs/IsoscelesTriangle.md +docs/List.md +docs/Mammal.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelClient.md +docs/Name.md +docs/NullableClass.md +docs/NullableShape.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/ParentPet.md +docs/Pet.md +docs/PetApi.md +docs/Pig.md +docs/Quadrilateral.md +docs/QuadrilateralInterface.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/ScaleneTriangle.md +docs/Shape.md +docs/ShapeInterface.md +docs/ShapeOrNull.md +docs/SimpleQuadrilateral.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/Triangle.md +docs/TriangleInterface.md +docs/User.md +docs/UserApi.md +docs/Whale.md +docs/Zebra.md +git_push.sh +src/Org.OpenAPITools/Api/AnotherFakeApi.cs +src/Org.OpenAPITools/Api/DefaultApi.cs +src/Org.OpenAPITools/Api/FakeApi.cs +src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/FileParameter.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Client/WebRequestPathBuilder.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Animal.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Apple.cs +src/Org.OpenAPITools/Model/AppleReq.cs +src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayTest.cs +src/Org.OpenAPITools/Model/Banana.cs +src/Org.OpenAPITools/Model/BananaReq.cs +src/Org.OpenAPITools/Model/BasquePig.cs +src/Org.OpenAPITools/Model/Capitalization.cs +src/Org.OpenAPITools/Model/Cat.cs +src/Org.OpenAPITools/Model/CatAllOf.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/ChildCat.cs +src/Org.OpenAPITools/Model/ChildCatAllOf.cs +src/Org.OpenAPITools/Model/ClassModel.cs +src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +src/Org.OpenAPITools/Model/DanishPig.cs +src/Org.OpenAPITools/Model/Dog.cs +src/Org.OpenAPITools/Model/DogAllOf.cs +src/Org.OpenAPITools/Model/Drawing.cs +src/Org.OpenAPITools/Model/EnumArrays.cs +src/Org.OpenAPITools/Model/EnumClass.cs +src/Org.OpenAPITools/Model/EnumTest.cs +src/Org.OpenAPITools/Model/EquilateralTriangle.cs +src/Org.OpenAPITools/Model/File.cs +src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +src/Org.OpenAPITools/Model/Foo.cs +src/Org.OpenAPITools/Model/FormatTest.cs +src/Org.OpenAPITools/Model/Fruit.cs +src/Org.OpenAPITools/Model/FruitReq.cs +src/Org.OpenAPITools/Model/GmFruit.cs +src/Org.OpenAPITools/Model/GrandparentAnimal.cs +src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +src/Org.OpenAPITools/Model/HealthCheckResult.cs +src/Org.OpenAPITools/Model/InlineResponseDefault.cs +src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +src/Org.OpenAPITools/Model/List.cs +src/Org.OpenAPITools/Model/Mammal.cs +src/Org.OpenAPITools/Model/MapTest.cs +src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Model200Response.cs +src/Org.OpenAPITools/Model/ModelClient.cs +src/Org.OpenAPITools/Model/Name.cs +src/Org.OpenAPITools/Model/NullableClass.cs +src/Org.OpenAPITools/Model/NullableShape.cs +src/Org.OpenAPITools/Model/NumberOnly.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/OuterComposite.cs +src/Org.OpenAPITools/Model/OuterEnum.cs +src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +src/Org.OpenAPITools/Model/OuterEnumInteger.cs +src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +src/Org.OpenAPITools/Model/ParentPet.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Pig.cs +src/Org.OpenAPITools/Model/Quadrilateral.cs +src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +src/Org.OpenAPITools/Model/Return.cs +src/Org.OpenAPITools/Model/ScaleneTriangle.cs +src/Org.OpenAPITools/Model/Shape.cs +src/Org.OpenAPITools/Model/ShapeInterface.cs +src/Org.OpenAPITools/Model/ShapeOrNull.cs +src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +src/Org.OpenAPITools/Model/SpecialModelName.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/Triangle.cs +src/Org.OpenAPITools/Model/TriangleInterface.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Model/Whale.cs +src/Org.OpenAPITools/Model/Zebra.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 8498781b05c..e12e4f11ae6 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public AnotherFakeApi(String basePath) + public AnotherFakeApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public AnotherFakeApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public AnotherFakeApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -266,7 +266,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; } @@ -319,12 +319,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" }; @@ -378,12 +378,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-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs index 299f2875b21..f9443fab762 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public DefaultApi(String basePath) + public DefaultApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public DefaultApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public DefaultApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -259,7 +259,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; } @@ -306,11 +306,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" }; @@ -357,11 +357,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-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs index 5631e484c0c..9a2358e3f4c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -833,7 +833,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public FakeApi(String basePath) + public FakeApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -895,7 +895,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public FakeApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public FakeApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -983,7 +983,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; } @@ -1030,11 +1030,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" }; @@ -1081,11 +1081,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" }; @@ -1133,12 +1133,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[] { "*/*" }; @@ -1188,12 +1188,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[] { "*/*" }; @@ -1242,12 +1242,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[] { "*/*" }; @@ -1297,12 +1297,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[] { "*/*" }; @@ -1351,12 +1351,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[] { "*/*" }; @@ -1406,12 +1406,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[] { "*/*" }; @@ -1460,12 +1460,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[] { "*/*" }; @@ -1515,12 +1515,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[] { "*/*" }; @@ -1567,11 +1567,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" }; @@ -1618,11 +1618,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" }; @@ -1673,12 +1673,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); @@ -1730,12 +1730,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[] { }; @@ -1792,12 +1792,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); @@ -1856,12 +1856,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[] { }; @@ -1914,12 +1914,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" }; @@ -1973,12 +1973,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" }; @@ -2060,12 +2060,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); @@ -2121,7 +2121,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)); } @@ -2196,12 +2196,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[] { }; @@ -2258,7 +2258,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)); } @@ -2311,12 +2311,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); @@ -2409,12 +2409,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[] { }; @@ -2502,11 +2502,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); @@ -2533,7 +2533,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); } @@ -2584,11 +2584,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[] { }; @@ -2616,7 +2616,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); } @@ -2659,12 +2659,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); @@ -2716,12 +2716,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[] { }; @@ -2778,12 +2778,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); @@ -2842,12 +2842,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[] { }; @@ -2923,11 +2923,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); @@ -3007,11 +3007,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-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index efec560791e..47d80c96307 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public FakeClassnameTags123Api(String basePath) + public FakeClassnameTags123Api(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public FakeClassnameTags123Api(HttpClient client, String basePath, HttpClientHandler handler = null) + public FakeClassnameTags123Api(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -266,7 +266,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; } @@ -319,12 +319,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" }; @@ -337,7 +337,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"))); } @@ -383,12 +383,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" }; @@ -402,7 +402,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-httpclient/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs index 1f74cee9c58..f835c81b4d5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs @@ -478,7 +478,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public PetApi(String basePath) + public PetApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -540,7 +540,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public PetApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public PetApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -628,7 +628,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; } @@ -680,13 +680,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); @@ -715,7 +715,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); } @@ -760,13 +760,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[] { }; @@ -796,7 +796,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); } @@ -837,11 +837,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); @@ -858,7 +858,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); } @@ -901,11 +901,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[] { }; @@ -923,7 +923,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); } @@ -967,11 +967,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" }; @@ -1002,7 +1002,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); } @@ -1048,11 +1048,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" }; @@ -1084,7 +1084,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); } @@ -1128,11 +1128,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" }; @@ -1163,7 +1163,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); } @@ -1209,11 +1209,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" }; @@ -1245,7 +1245,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); } @@ -1285,11 +1285,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" }; @@ -1303,7 +1303,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")); } @@ -1345,11 +1345,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" }; @@ -1364,7 +1364,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")); } @@ -1407,13 +1407,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); @@ -1442,7 +1442,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); } @@ -1487,13 +1487,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[] { }; @@ -1523,7 +1523,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); } @@ -1566,12 +1566,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); @@ -1592,7 +1592,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); } @@ -1637,12 +1637,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[] { }; @@ -1664,7 +1664,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); } @@ -1708,12 +1708,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" }; @@ -1735,7 +1735,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); } @@ -1781,12 +1781,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" }; @@ -1809,7 +1809,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); } @@ -1857,12 +1857,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" }; @@ -1881,7 +1881,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); } @@ -1931,12 +1931,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" }; @@ -1956,7 +1956,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-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs index d7b0b43698a..c4775513db3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs @@ -241,7 +241,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public StoreApi(String basePath) + public StoreApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -303,7 +303,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public StoreApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public StoreApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -391,7 +391,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; } @@ -443,11 +443,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); @@ -499,11 +499,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[] { }; @@ -549,11 +549,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" }; @@ -565,7 +565,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")); } @@ -605,11 +605,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" }; @@ -622,7 +622,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")); } @@ -662,11 +662,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" }; @@ -717,11 +717,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" }; @@ -775,12 +775,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" }; @@ -835,12 +835,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-httpclient/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs index 9b4826f955e..889a90d75f2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs @@ -413,7 +413,7 @@ namespace Org.OpenAPITools.Api /// The target service's base path in URL format. /// /// - public UserApi(String basePath) + public UserApi(string basePath) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, @@ -475,7 +475,7 @@ namespace Org.OpenAPITools.Api /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public UserApi(HttpClient client, String basePath, HttpClientHandler handler = null) + public UserApi(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client"); @@ -563,7 +563,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; } @@ -615,12 +615,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); @@ -672,12 +672,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[] { }; @@ -728,12 +728,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); @@ -785,12 +785,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[] { }; @@ -841,12 +841,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); @@ -898,12 +898,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[] { }; @@ -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[] { }; var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -1010,11 +1010,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[] { }; @@ -1066,11 +1066,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" }; @@ -1125,11 +1125,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" }; @@ -1189,11 +1189,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" }; @@ -1255,11 +1255,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" }; @@ -1307,11 +1307,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); @@ -1356,11 +1356,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[] { }; @@ -1416,12 +1416,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); @@ -1480,12 +1480,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-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs index bc7d7d84785..364fe9d25aa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs @@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Client var bytes = await response.Content.ReadAsByteArrayAsync(); if (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]+)['""]?$"); @@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Client return DateTime.Parse(await response.Content.ReadAsStringAsync(), 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(await response.Content.ReadAsStringAsync(), type); } @@ -166,7 +166,7 @@ namespace Org.OpenAPITools.Client /// public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient { - private readonly String _baseUrl; + private readonly string _baseUrl; private readonly HttpClientHandler _httpClientHandler; private readonly HttpClient _httpClient; @@ -206,7 +206,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"); @@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Client /// Some configuration settings will not be applied without passing an HttpClientHandler. /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. /// - public ApiClient(HttpClient client, String basePath, HttpClientHandler handler = null) + public ApiClient(HttpClient client, string basePath, HttpClientHandler handler = null) { if (client == null) throw new ArgumentNullException("client cannot be null"); if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); @@ -300,7 +300,7 @@ namespace Org.OpenAPITools.Client /// private HttpRequestMessage NewRequest( HttpMethod method, - String path, + string path, RequestOptions options, IReadableConfiguration configuration) { diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiResponse.cs index 1b7d787c84b..ca2de833a5a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ClientUtils.cs index 2b6e52d6065..3d038d5ce69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs index bca7db624cd..06154ad382c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 1b9f9b7a99f..1d2d0019cae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IApiAccessor.cs index 59465ae8e90..2bd76416004 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 8a6f726678a..601e86d561c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ISynchronousClient.cs index d27f01a588b..0e0a7fedacf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/RequestOptions.cs index 9c0a9a9f968..91a5fbf28f3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/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-httpclient/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Fruit.cs index 40a654afced..6c0b8d06cfa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Fruit.cs @@ -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 Apple: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString())); } try @@ -183,7 +183,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) @@ -258,7 +258,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-httpclient/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FruitReq.cs index 170960035f4..207a851e23f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/FruitReq.cs @@ -172,7 +172,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 @@ -192,7 +192,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) @@ -267,7 +267,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-httpclient/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/GmFruit.cs index 4aef7618a37..49a39c4747e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/GmFruit.cs @@ -152,7 +152,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 @@ -164,7 +164,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 @@ -230,7 +230,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-httpclient/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs index 55f278a25ac..fb62820cbd2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Mammal.cs @@ -184,7 +184,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; } @@ -208,7 +208,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 @@ -228,7 +228,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 @@ -248,7 +248,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) @@ -323,7 +323,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-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs index b2be225d54c..bb16eee3501 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NullableShape.cs @@ -164,7 +164,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; } @@ -188,7 +188,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 @@ -208,7 +208,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) @@ -283,7 +283,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-httpclient/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Pig.cs index b1c57219d9f..715aeb7327f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Pig.cs @@ -155,7 +155,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; } @@ -179,7 +179,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 @@ -199,7 +199,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) @@ -274,7 +274,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-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs index 028b84f0752..7a2c6e8c98e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -155,7 +155,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; } @@ -179,7 +179,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 @@ -199,7 +199,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) @@ -274,7 +274,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-httpclient/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs index 7186154a961..9afe7ae6564 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Shape.cs @@ -155,7 +155,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; } @@ -179,7 +179,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 @@ -199,7 +199,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) @@ -274,7 +274,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-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs index eb9191dbc4d..b39f95e0be1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -164,7 +164,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; } @@ -188,7 +188,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 @@ -208,7 +208,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) @@ -283,7 +283,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-httpclient/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Triangle.cs index ba1fd6d00ec..df5cae1e14f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/Triangle.cs @@ -184,7 +184,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; } @@ -208,7 +208,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 @@ -228,7 +228,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 @@ -248,7 +248,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) @@ -323,7 +323,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))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/FILES index d258eb64b2f..28766b88f12 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/FILES @@ -1,187 +1,187 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/Apple.md -docs/AppleReq.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Banana.md -docs/BananaReq.md -docs/BasquePig.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ChildCat.md -docs/ChildCatAllOf.md -docs/ClassModel.md -docs/ComplexQuadrilateral.md -docs/DanishPig.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/Drawing.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/EquilateralTriangle.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/Fruit.md -docs/FruitReq.md -docs/GmFruit.md -docs/GrandparentAnimal.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/IsoscelesTriangle.md -docs/List.md -docs/Mammal.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelClient.md -docs/Name.md -docs/NullableClass.md -docs/NullableShape.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/ParentPet.md -docs/Pet.md -docs/PetApi.md -docs/Pig.md -docs/Quadrilateral.md -docs/QuadrilateralInterface.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/ScaleneTriangle.md -docs/Shape.md -docs/ShapeInterface.md -docs/ShapeOrNull.md -docs/SimpleQuadrilateral.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/Triangle.md -docs/TriangleInterface.md -docs/User.md -docs/UserApi.md -docs/Whale.md -docs/Zebra.md -git_push.sh -src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj -src/Org.OpenAPITools/Api/AnotherFakeApi.cs -src/Org.OpenAPITools/Api/DefaultApi.cs -src/Org.OpenAPITools/Api/FakeApi.cs -src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpMethod.cs -src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Animal.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Apple.cs -src/Org.OpenAPITools/Model/AppleReq.cs -src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayTest.cs -src/Org.OpenAPITools/Model/Banana.cs -src/Org.OpenAPITools/Model/BananaReq.cs -src/Org.OpenAPITools/Model/BasquePig.cs -src/Org.OpenAPITools/Model/Capitalization.cs -src/Org.OpenAPITools/Model/Cat.cs -src/Org.OpenAPITools/Model/CatAllOf.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/ChildCat.cs -src/Org.OpenAPITools/Model/ChildCatAllOf.cs -src/Org.OpenAPITools/Model/ClassModel.cs -src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs -src/Org.OpenAPITools/Model/DanishPig.cs -src/Org.OpenAPITools/Model/Dog.cs -src/Org.OpenAPITools/Model/DogAllOf.cs -src/Org.OpenAPITools/Model/Drawing.cs -src/Org.OpenAPITools/Model/EnumArrays.cs -src/Org.OpenAPITools/Model/EnumClass.cs -src/Org.OpenAPITools/Model/EnumTest.cs -src/Org.OpenAPITools/Model/EquilateralTriangle.cs -src/Org.OpenAPITools/Model/File.cs -src/Org.OpenAPITools/Model/FileSchemaTestClass.cs -src/Org.OpenAPITools/Model/Foo.cs -src/Org.OpenAPITools/Model/FormatTest.cs -src/Org.OpenAPITools/Model/Fruit.cs -src/Org.OpenAPITools/Model/FruitReq.cs -src/Org.OpenAPITools/Model/GmFruit.cs -src/Org.OpenAPITools/Model/GrandparentAnimal.cs -src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs -src/Org.OpenAPITools/Model/HealthCheckResult.cs -src/Org.OpenAPITools/Model/InlineResponseDefault.cs -src/Org.OpenAPITools/Model/IsoscelesTriangle.cs -src/Org.OpenAPITools/Model/List.cs -src/Org.OpenAPITools/Model/Mammal.cs -src/Org.OpenAPITools/Model/MapTest.cs -src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Model200Response.cs -src/Org.OpenAPITools/Model/ModelClient.cs -src/Org.OpenAPITools/Model/Name.cs -src/Org.OpenAPITools/Model/NullableClass.cs -src/Org.OpenAPITools/Model/NullableShape.cs -src/Org.OpenAPITools/Model/NumberOnly.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/OuterComposite.cs -src/Org.OpenAPITools/Model/OuterEnum.cs -src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs -src/Org.OpenAPITools/Model/OuterEnumInteger.cs -src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs -src/Org.OpenAPITools/Model/ParentPet.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Pig.cs -src/Org.OpenAPITools/Model/Quadrilateral.cs -src/Org.OpenAPITools/Model/QuadrilateralInterface.cs -src/Org.OpenAPITools/Model/ReadOnlyFirst.cs -src/Org.OpenAPITools/Model/Return.cs -src/Org.OpenAPITools/Model/ScaleneTriangle.cs -src/Org.OpenAPITools/Model/Shape.cs -src/Org.OpenAPITools/Model/ShapeInterface.cs -src/Org.OpenAPITools/Model/ShapeOrNull.cs -src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs -src/Org.OpenAPITools/Model/SpecialModelName.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/Triangle.cs -src/Org.OpenAPITools/Model/TriangleInterface.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Model/Whale.cs -src/Org.OpenAPITools/Model/Zebra.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/Apple.md +docs/AppleReq.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Banana.md +docs/BananaReq.md +docs/BasquePig.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ChildCat.md +docs/ChildCatAllOf.md +docs/ClassModel.md +docs/ComplexQuadrilateral.md +docs/DanishPig.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/Drawing.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/EquilateralTriangle.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/Fruit.md +docs/FruitReq.md +docs/GmFruit.md +docs/GrandparentAnimal.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineResponseDefault.md +docs/IsoscelesTriangle.md +docs/List.md +docs/Mammal.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelClient.md +docs/Name.md +docs/NullableClass.md +docs/NullableShape.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/ParentPet.md +docs/Pet.md +docs/PetApi.md +docs/Pig.md +docs/Quadrilateral.md +docs/QuadrilateralInterface.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/ScaleneTriangle.md +docs/Shape.md +docs/ShapeInterface.md +docs/ShapeOrNull.md +docs/SimpleQuadrilateral.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/Triangle.md +docs/TriangleInterface.md +docs/User.md +docs/UserApi.md +docs/Whale.md +docs/Zebra.md +git_push.sh +src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +src/Org.OpenAPITools/Api/AnotherFakeApi.cs +src/Org.OpenAPITools/Api/DefaultApi.cs +src/Org.OpenAPITools/Api/FakeApi.cs +src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpMethod.cs +src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Animal.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Apple.cs +src/Org.OpenAPITools/Model/AppleReq.cs +src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayTest.cs +src/Org.OpenAPITools/Model/Banana.cs +src/Org.OpenAPITools/Model/BananaReq.cs +src/Org.OpenAPITools/Model/BasquePig.cs +src/Org.OpenAPITools/Model/Capitalization.cs +src/Org.OpenAPITools/Model/Cat.cs +src/Org.OpenAPITools/Model/CatAllOf.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/ChildCat.cs +src/Org.OpenAPITools/Model/ChildCatAllOf.cs +src/Org.OpenAPITools/Model/ClassModel.cs +src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +src/Org.OpenAPITools/Model/DanishPig.cs +src/Org.OpenAPITools/Model/Dog.cs +src/Org.OpenAPITools/Model/DogAllOf.cs +src/Org.OpenAPITools/Model/Drawing.cs +src/Org.OpenAPITools/Model/EnumArrays.cs +src/Org.OpenAPITools/Model/EnumClass.cs +src/Org.OpenAPITools/Model/EnumTest.cs +src/Org.OpenAPITools/Model/EquilateralTriangle.cs +src/Org.OpenAPITools/Model/File.cs +src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +src/Org.OpenAPITools/Model/Foo.cs +src/Org.OpenAPITools/Model/FormatTest.cs +src/Org.OpenAPITools/Model/Fruit.cs +src/Org.OpenAPITools/Model/FruitReq.cs +src/Org.OpenAPITools/Model/GmFruit.cs +src/Org.OpenAPITools/Model/GrandparentAnimal.cs +src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +src/Org.OpenAPITools/Model/HealthCheckResult.cs +src/Org.OpenAPITools/Model/InlineResponseDefault.cs +src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +src/Org.OpenAPITools/Model/List.cs +src/Org.OpenAPITools/Model/Mammal.cs +src/Org.OpenAPITools/Model/MapTest.cs +src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Model200Response.cs +src/Org.OpenAPITools/Model/ModelClient.cs +src/Org.OpenAPITools/Model/Name.cs +src/Org.OpenAPITools/Model/NullableClass.cs +src/Org.OpenAPITools/Model/NullableShape.cs +src/Org.OpenAPITools/Model/NumberOnly.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/OuterComposite.cs +src/Org.OpenAPITools/Model/OuterEnum.cs +src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +src/Org.OpenAPITools/Model/OuterEnumInteger.cs +src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +src/Org.OpenAPITools/Model/ParentPet.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Pig.cs +src/Org.OpenAPITools/Model/Quadrilateral.cs +src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +src/Org.OpenAPITools/Model/Return.cs +src/Org.OpenAPITools/Model/ScaleneTriangle.cs +src/Org.OpenAPITools/Model/Shape.cs +src/Org.OpenAPITools/Model/ShapeInterface.cs +src/Org.OpenAPITools/Model/ShapeOrNull.cs +src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +src/Org.OpenAPITools/Model/SpecialModelName.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/Triangle.cs +src/Org.OpenAPITools/Model/TriangleInterface.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Model/Whale.cs +src/Org.OpenAPITools/Model/Zebra.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 94d8b854b0d..ad48306e00c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs index 27789c4533a..8844aca4ab7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs index d7749151314..fe862283f1e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 56ebdf5fd10..d4fbb5868ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs index 61759145f12..2bf19af1b1a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs index 6ab56c9e9bf..ad7387db705 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs index 80436c9b433..a2f2598c8ac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs index db5a263b639..dd44f97a907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiClient.cs @@ -107,7 +107,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]+)['""]?$"); @@ -131,7 +131,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); } @@ -163,7 +163,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. @@ -208,7 +208,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"); @@ -269,7 +269,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-net47/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiResponse.cs index 1b7d787c84b..ca2de833a5a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ClientUtils.cs index 2b6e52d6065..3d038d5ce69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs index 154091fc731..1b80ca62fad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs @@ -72,7 +72,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. @@ -516,9 +516,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-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 1b9f9b7a99f..1d2d0019cae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IApiAccessor.cs index 59465ae8e90..2bd76416004 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 8a6f726678a..601e86d561c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ISynchronousClient.cs index d27f01a588b..0e0a7fedacf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/RequestOptions.cs index d8da585db9c..7a1d5b97a88 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Fruit.cs index 132be5b4d3b..66de6a1c6f1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FruitReq.cs index 380896933df..488c489d73a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/GmFruit.cs index c168aa41d4c..1aaa59d3f8b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs index 2e847a10eb6..ed940d7ab6f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs index 80339ebf79b..20be30e5b89 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Pig.cs index d8605861e63..967d2139a0a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs index 17463ca09a4..19bc98ed2ec 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs index e75e0e8b167..f17c4d9a8f5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 7471bafb379..df321dc9e81 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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-net47/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Triangle.cs index cccaa79a8ff..6f33859a898 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/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))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES index d258eb64b2f..28766b88f12 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/FILES @@ -1,187 +1,187 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/Apple.md -docs/AppleReq.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Banana.md -docs/BananaReq.md -docs/BasquePig.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ChildCat.md -docs/ChildCatAllOf.md -docs/ClassModel.md -docs/ComplexQuadrilateral.md -docs/DanishPig.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/Drawing.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/EquilateralTriangle.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/Fruit.md -docs/FruitReq.md -docs/GmFruit.md -docs/GrandparentAnimal.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/IsoscelesTriangle.md -docs/List.md -docs/Mammal.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelClient.md -docs/Name.md -docs/NullableClass.md -docs/NullableShape.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/ParentPet.md -docs/Pet.md -docs/PetApi.md -docs/Pig.md -docs/Quadrilateral.md -docs/QuadrilateralInterface.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/ScaleneTriangle.md -docs/Shape.md -docs/ShapeInterface.md -docs/ShapeOrNull.md -docs/SimpleQuadrilateral.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/Triangle.md -docs/TriangleInterface.md -docs/User.md -docs/UserApi.md -docs/Whale.md -docs/Zebra.md -git_push.sh -src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj -src/Org.OpenAPITools/Api/AnotherFakeApi.cs -src/Org.OpenAPITools/Api/DefaultApi.cs -src/Org.OpenAPITools/Api/FakeApi.cs -src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpMethod.cs -src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Animal.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Apple.cs -src/Org.OpenAPITools/Model/AppleReq.cs -src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayTest.cs -src/Org.OpenAPITools/Model/Banana.cs -src/Org.OpenAPITools/Model/BananaReq.cs -src/Org.OpenAPITools/Model/BasquePig.cs -src/Org.OpenAPITools/Model/Capitalization.cs -src/Org.OpenAPITools/Model/Cat.cs -src/Org.OpenAPITools/Model/CatAllOf.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/ChildCat.cs -src/Org.OpenAPITools/Model/ChildCatAllOf.cs -src/Org.OpenAPITools/Model/ClassModel.cs -src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs -src/Org.OpenAPITools/Model/DanishPig.cs -src/Org.OpenAPITools/Model/Dog.cs -src/Org.OpenAPITools/Model/DogAllOf.cs -src/Org.OpenAPITools/Model/Drawing.cs -src/Org.OpenAPITools/Model/EnumArrays.cs -src/Org.OpenAPITools/Model/EnumClass.cs -src/Org.OpenAPITools/Model/EnumTest.cs -src/Org.OpenAPITools/Model/EquilateralTriangle.cs -src/Org.OpenAPITools/Model/File.cs -src/Org.OpenAPITools/Model/FileSchemaTestClass.cs -src/Org.OpenAPITools/Model/Foo.cs -src/Org.OpenAPITools/Model/FormatTest.cs -src/Org.OpenAPITools/Model/Fruit.cs -src/Org.OpenAPITools/Model/FruitReq.cs -src/Org.OpenAPITools/Model/GmFruit.cs -src/Org.OpenAPITools/Model/GrandparentAnimal.cs -src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs -src/Org.OpenAPITools/Model/HealthCheckResult.cs -src/Org.OpenAPITools/Model/InlineResponseDefault.cs -src/Org.OpenAPITools/Model/IsoscelesTriangle.cs -src/Org.OpenAPITools/Model/List.cs -src/Org.OpenAPITools/Model/Mammal.cs -src/Org.OpenAPITools/Model/MapTest.cs -src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Model200Response.cs -src/Org.OpenAPITools/Model/ModelClient.cs -src/Org.OpenAPITools/Model/Name.cs -src/Org.OpenAPITools/Model/NullableClass.cs -src/Org.OpenAPITools/Model/NullableShape.cs -src/Org.OpenAPITools/Model/NumberOnly.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/OuterComposite.cs -src/Org.OpenAPITools/Model/OuterEnum.cs -src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs -src/Org.OpenAPITools/Model/OuterEnumInteger.cs -src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs -src/Org.OpenAPITools/Model/ParentPet.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Pig.cs -src/Org.OpenAPITools/Model/Quadrilateral.cs -src/Org.OpenAPITools/Model/QuadrilateralInterface.cs -src/Org.OpenAPITools/Model/ReadOnlyFirst.cs -src/Org.OpenAPITools/Model/Return.cs -src/Org.OpenAPITools/Model/ScaleneTriangle.cs -src/Org.OpenAPITools/Model/Shape.cs -src/Org.OpenAPITools/Model/ShapeInterface.cs -src/Org.OpenAPITools/Model/ShapeOrNull.cs -src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs -src/Org.OpenAPITools/Model/SpecialModelName.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/Triangle.cs -src/Org.OpenAPITools/Model/TriangleInterface.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Model/Whale.cs -src/Org.OpenAPITools/Model/Zebra.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/Apple.md +docs/AppleReq.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Banana.md +docs/BananaReq.md +docs/BasquePig.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ChildCat.md +docs/ChildCatAllOf.md +docs/ClassModel.md +docs/ComplexQuadrilateral.md +docs/DanishPig.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/Drawing.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/EquilateralTriangle.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/Fruit.md +docs/FruitReq.md +docs/GmFruit.md +docs/GrandparentAnimal.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineResponseDefault.md +docs/IsoscelesTriangle.md +docs/List.md +docs/Mammal.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelClient.md +docs/Name.md +docs/NullableClass.md +docs/NullableShape.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/ParentPet.md +docs/Pet.md +docs/PetApi.md +docs/Pig.md +docs/Quadrilateral.md +docs/QuadrilateralInterface.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/ScaleneTriangle.md +docs/Shape.md +docs/ShapeInterface.md +docs/ShapeOrNull.md +docs/SimpleQuadrilateral.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/Triangle.md +docs/TriangleInterface.md +docs/User.md +docs/UserApi.md +docs/Whale.md +docs/Zebra.md +git_push.sh +src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +src/Org.OpenAPITools/Api/AnotherFakeApi.cs +src/Org.OpenAPITools/Api/DefaultApi.cs +src/Org.OpenAPITools/Api/FakeApi.cs +src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpMethod.cs +src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Animal.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Apple.cs +src/Org.OpenAPITools/Model/AppleReq.cs +src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayTest.cs +src/Org.OpenAPITools/Model/Banana.cs +src/Org.OpenAPITools/Model/BananaReq.cs +src/Org.OpenAPITools/Model/BasquePig.cs +src/Org.OpenAPITools/Model/Capitalization.cs +src/Org.OpenAPITools/Model/Cat.cs +src/Org.OpenAPITools/Model/CatAllOf.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/ChildCat.cs +src/Org.OpenAPITools/Model/ChildCatAllOf.cs +src/Org.OpenAPITools/Model/ClassModel.cs +src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +src/Org.OpenAPITools/Model/DanishPig.cs +src/Org.OpenAPITools/Model/Dog.cs +src/Org.OpenAPITools/Model/DogAllOf.cs +src/Org.OpenAPITools/Model/Drawing.cs +src/Org.OpenAPITools/Model/EnumArrays.cs +src/Org.OpenAPITools/Model/EnumClass.cs +src/Org.OpenAPITools/Model/EnumTest.cs +src/Org.OpenAPITools/Model/EquilateralTriangle.cs +src/Org.OpenAPITools/Model/File.cs +src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +src/Org.OpenAPITools/Model/Foo.cs +src/Org.OpenAPITools/Model/FormatTest.cs +src/Org.OpenAPITools/Model/Fruit.cs +src/Org.OpenAPITools/Model/FruitReq.cs +src/Org.OpenAPITools/Model/GmFruit.cs +src/Org.OpenAPITools/Model/GrandparentAnimal.cs +src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +src/Org.OpenAPITools/Model/HealthCheckResult.cs +src/Org.OpenAPITools/Model/InlineResponseDefault.cs +src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +src/Org.OpenAPITools/Model/List.cs +src/Org.OpenAPITools/Model/Mammal.cs +src/Org.OpenAPITools/Model/MapTest.cs +src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Model200Response.cs +src/Org.OpenAPITools/Model/ModelClient.cs +src/Org.OpenAPITools/Model/Name.cs +src/Org.OpenAPITools/Model/NullableClass.cs +src/Org.OpenAPITools/Model/NullableShape.cs +src/Org.OpenAPITools/Model/NumberOnly.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/OuterComposite.cs +src/Org.OpenAPITools/Model/OuterEnum.cs +src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +src/Org.OpenAPITools/Model/OuterEnumInteger.cs +src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +src/Org.OpenAPITools/Model/ParentPet.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Pig.cs +src/Org.OpenAPITools/Model/Quadrilateral.cs +src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +src/Org.OpenAPITools/Model/Return.cs +src/Org.OpenAPITools/Model/ScaleneTriangle.cs +src/Org.OpenAPITools/Model/Shape.cs +src/Org.OpenAPITools/Model/ShapeInterface.cs +src/Org.OpenAPITools/Model/ShapeOrNull.cs +src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +src/Org.OpenAPITools/Model/SpecialModelName.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/Triangle.cs +src/Org.OpenAPITools/Model/TriangleInterface.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Model/Whale.cs +src/Org.OpenAPITools/Model/Zebra.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 94d8b854b0d..ad48306e00c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs index 27789c4533a..8844aca4ab7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs index d7749151314..fe862283f1e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 56ebdf5fd10..d4fbb5868ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs index 61759145f12..2bf19af1b1a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs index 6ab56c9e9bf..ad7387db705 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs index 80436c9b433..a2f2598c8ac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ApiClient.cs index db5a263b639..dd44f97a907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ApiClient.cs @@ -107,7 +107,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]+)['""]?$"); @@ -131,7 +131,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); } @@ -163,7 +163,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. @@ -208,7 +208,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"); @@ -269,7 +269,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-net5.0/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ApiResponse.cs index 1b7d787c84b..ca2de833a5a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ClientUtils.cs index 2b6e52d6065..3d038d5ce69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs index 154091fc731..1b80ca62fad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs @@ -72,7 +72,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. @@ -516,9 +516,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-net5.0/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 1b9f9b7a99f..1d2d0019cae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IApiAccessor.cs index 59465ae8e90..2bd76416004 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 8a6f726678a..601e86d561c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ISynchronousClient.cs index d27f01a588b..0e0a7fedacf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/RequestOptions.cs index d8da585db9c..7a1d5b97a88 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Fruit.cs index 132be5b4d3b..66de6a1c6f1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FruitReq.cs index 380896933df..488c489d73a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/GmFruit.cs index c168aa41d4c..1aaa59d3f8b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs index 2e847a10eb6..ed940d7ab6f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs index 80339ebf79b..20be30e5b89 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Pig.cs index d8605861e63..967d2139a0a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs index 17463ca09a4..19bc98ed2ec 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs index e75e0e8b167..f17c4d9a8f5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 7471bafb379..df321dc9e81 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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-net5.0/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Triangle.cs index cccaa79a8ff..6f33859a898 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/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))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES index 37763cd49bc..09de5cdb39c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES @@ -1,186 +1,186 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/Apple.md -docs/AppleReq.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Banana.md -docs/BananaReq.md -docs/BasquePig.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ChildCat.md -docs/ChildCatAllOf.md -docs/ClassModel.md -docs/ComplexQuadrilateral.md -docs/DanishPig.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/Drawing.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/EquilateralTriangle.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/Fruit.md -docs/FruitReq.md -docs/GmFruit.md -docs/GrandparentAnimal.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/IsoscelesTriangle.md -docs/List.md -docs/Mammal.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelClient.md -docs/Name.md -docs/NullableClass.md -docs/NullableShape.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/ParentPet.md -docs/Pet.md -docs/PetApi.md -docs/Pig.md -docs/Quadrilateral.md -docs/QuadrilateralInterface.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/ScaleneTriangle.md -docs/Shape.md -docs/ShapeInterface.md -docs/ShapeOrNull.md -docs/SimpleQuadrilateral.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/Triangle.md -docs/TriangleInterface.md -docs/User.md -docs/UserApi.md -docs/Whale.md -docs/Zebra.md -git_push.sh -src/Org.OpenAPITools/Api/AnotherFakeApi.cs -src/Org.OpenAPITools/Api/DefaultApi.cs -src/Org.OpenAPITools/Api/FakeApi.cs -src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpMethod.cs -src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Animal.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Apple.cs -src/Org.OpenAPITools/Model/AppleReq.cs -src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayTest.cs -src/Org.OpenAPITools/Model/Banana.cs -src/Org.OpenAPITools/Model/BananaReq.cs -src/Org.OpenAPITools/Model/BasquePig.cs -src/Org.OpenAPITools/Model/Capitalization.cs -src/Org.OpenAPITools/Model/Cat.cs -src/Org.OpenAPITools/Model/CatAllOf.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/ChildCat.cs -src/Org.OpenAPITools/Model/ChildCatAllOf.cs -src/Org.OpenAPITools/Model/ClassModel.cs -src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs -src/Org.OpenAPITools/Model/DanishPig.cs -src/Org.OpenAPITools/Model/Dog.cs -src/Org.OpenAPITools/Model/DogAllOf.cs -src/Org.OpenAPITools/Model/Drawing.cs -src/Org.OpenAPITools/Model/EnumArrays.cs -src/Org.OpenAPITools/Model/EnumClass.cs -src/Org.OpenAPITools/Model/EnumTest.cs -src/Org.OpenAPITools/Model/EquilateralTriangle.cs -src/Org.OpenAPITools/Model/File.cs -src/Org.OpenAPITools/Model/FileSchemaTestClass.cs -src/Org.OpenAPITools/Model/Foo.cs -src/Org.OpenAPITools/Model/FormatTest.cs -src/Org.OpenAPITools/Model/Fruit.cs -src/Org.OpenAPITools/Model/FruitReq.cs -src/Org.OpenAPITools/Model/GmFruit.cs -src/Org.OpenAPITools/Model/GrandparentAnimal.cs -src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs -src/Org.OpenAPITools/Model/HealthCheckResult.cs -src/Org.OpenAPITools/Model/InlineResponseDefault.cs -src/Org.OpenAPITools/Model/IsoscelesTriangle.cs -src/Org.OpenAPITools/Model/List.cs -src/Org.OpenAPITools/Model/Mammal.cs -src/Org.OpenAPITools/Model/MapTest.cs -src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Model200Response.cs -src/Org.OpenAPITools/Model/ModelClient.cs -src/Org.OpenAPITools/Model/Name.cs -src/Org.OpenAPITools/Model/NullableClass.cs -src/Org.OpenAPITools/Model/NullableShape.cs -src/Org.OpenAPITools/Model/NumberOnly.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/OuterComposite.cs -src/Org.OpenAPITools/Model/OuterEnum.cs -src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs -src/Org.OpenAPITools/Model/OuterEnumInteger.cs -src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs -src/Org.OpenAPITools/Model/ParentPet.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Pig.cs -src/Org.OpenAPITools/Model/Quadrilateral.cs -src/Org.OpenAPITools/Model/QuadrilateralInterface.cs -src/Org.OpenAPITools/Model/ReadOnlyFirst.cs -src/Org.OpenAPITools/Model/Return.cs -src/Org.OpenAPITools/Model/ScaleneTriangle.cs -src/Org.OpenAPITools/Model/Shape.cs -src/Org.OpenAPITools/Model/ShapeInterface.cs -src/Org.OpenAPITools/Model/ShapeOrNull.cs -src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs -src/Org.OpenAPITools/Model/SpecialModelName.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/Triangle.cs -src/Org.OpenAPITools/Model/TriangleInterface.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Model/Whale.cs -src/Org.OpenAPITools/Model/Zebra.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/Apple.md +docs/AppleReq.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Banana.md +docs/BananaReq.md +docs/BasquePig.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ChildCat.md +docs/ChildCatAllOf.md +docs/ClassModel.md +docs/ComplexQuadrilateral.md +docs/DanishPig.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/Drawing.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/EquilateralTriangle.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/Fruit.md +docs/FruitReq.md +docs/GmFruit.md +docs/GrandparentAnimal.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineResponseDefault.md +docs/IsoscelesTriangle.md +docs/List.md +docs/Mammal.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelClient.md +docs/Name.md +docs/NullableClass.md +docs/NullableShape.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/ParentPet.md +docs/Pet.md +docs/PetApi.md +docs/Pig.md +docs/Quadrilateral.md +docs/QuadrilateralInterface.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/ScaleneTriangle.md +docs/Shape.md +docs/ShapeInterface.md +docs/ShapeOrNull.md +docs/SimpleQuadrilateral.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/Triangle.md +docs/TriangleInterface.md +docs/User.md +docs/UserApi.md +docs/Whale.md +docs/Zebra.md +git_push.sh +src/Org.OpenAPITools/Api/AnotherFakeApi.cs +src/Org.OpenAPITools/Api/DefaultApi.cs +src/Org.OpenAPITools/Api/FakeApi.cs +src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpMethod.cs +src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Animal.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Apple.cs +src/Org.OpenAPITools/Model/AppleReq.cs +src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayTest.cs +src/Org.OpenAPITools/Model/Banana.cs +src/Org.OpenAPITools/Model/BananaReq.cs +src/Org.OpenAPITools/Model/BasquePig.cs +src/Org.OpenAPITools/Model/Capitalization.cs +src/Org.OpenAPITools/Model/Cat.cs +src/Org.OpenAPITools/Model/CatAllOf.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/ChildCat.cs +src/Org.OpenAPITools/Model/ChildCatAllOf.cs +src/Org.OpenAPITools/Model/ClassModel.cs +src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +src/Org.OpenAPITools/Model/DanishPig.cs +src/Org.OpenAPITools/Model/Dog.cs +src/Org.OpenAPITools/Model/DogAllOf.cs +src/Org.OpenAPITools/Model/Drawing.cs +src/Org.OpenAPITools/Model/EnumArrays.cs +src/Org.OpenAPITools/Model/EnumClass.cs +src/Org.OpenAPITools/Model/EnumTest.cs +src/Org.OpenAPITools/Model/EquilateralTriangle.cs +src/Org.OpenAPITools/Model/File.cs +src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +src/Org.OpenAPITools/Model/Foo.cs +src/Org.OpenAPITools/Model/FormatTest.cs +src/Org.OpenAPITools/Model/Fruit.cs +src/Org.OpenAPITools/Model/FruitReq.cs +src/Org.OpenAPITools/Model/GmFruit.cs +src/Org.OpenAPITools/Model/GrandparentAnimal.cs +src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +src/Org.OpenAPITools/Model/HealthCheckResult.cs +src/Org.OpenAPITools/Model/InlineResponseDefault.cs +src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +src/Org.OpenAPITools/Model/List.cs +src/Org.OpenAPITools/Model/Mammal.cs +src/Org.OpenAPITools/Model/MapTest.cs +src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Model200Response.cs +src/Org.OpenAPITools/Model/ModelClient.cs +src/Org.OpenAPITools/Model/Name.cs +src/Org.OpenAPITools/Model/NullableClass.cs +src/Org.OpenAPITools/Model/NullableShape.cs +src/Org.OpenAPITools/Model/NumberOnly.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/OuterComposite.cs +src/Org.OpenAPITools/Model/OuterEnum.cs +src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +src/Org.OpenAPITools/Model/OuterEnumInteger.cs +src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +src/Org.OpenAPITools/Model/ParentPet.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Pig.cs +src/Org.OpenAPITools/Model/Quadrilateral.cs +src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +src/Org.OpenAPITools/Model/Return.cs +src/Org.OpenAPITools/Model/ScaleneTriangle.cs +src/Org.OpenAPITools/Model/Shape.cs +src/Org.OpenAPITools/Model/ShapeInterface.cs +src/Org.OpenAPITools/Model/ShapeOrNull.cs +src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +src/Org.OpenAPITools/Model/SpecialModelName.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/Triangle.cs +src/Org.OpenAPITools/Model/TriangleInterface.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Model/Whale.cs +src/Org.OpenAPITools/Model/Zebra.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 94d8b854b0d..ad48306e00c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs index 27789c4533a..8844aca4ab7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs index d7749151314..fe862283f1e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 56ebdf5fd10..d4fbb5868ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs index 61759145f12..2bf19af1b1a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs index 6ab56c9e9bf..ad7387db705 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs index 80436c9b433..a2f2598c8ac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ApiClient.cs index c3d43b29bb4..68cf1fd135b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ApiResponse.cs index 1b7d787c84b..ca2de833a5a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ClientUtils.cs index 2b6e52d6065..3d038d5ce69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs index bca7db624cd..06154ad382c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 1b9f9b7a99f..1d2d0019cae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IApiAccessor.cs index 59465ae8e90..2bd76416004 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 8a6f726678a..601e86d561c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ISynchronousClient.cs index d27f01a588b..0e0a7fedacf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/RequestOptions.cs index d8da585db9c..7a1d5b97a88 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Fruit.cs index 132be5b4d3b..66de6a1c6f1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FruitReq.cs index 380896933df..488c489d73a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/GmFruit.cs index c168aa41d4c..1aaa59d3f8b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs index 2e847a10eb6..ed940d7ab6f 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs index 80339ebf79b..20be30e5b89 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Pig.cs index d8605861e63..967d2139a0a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs index 17463ca09a4..19bc98ed2ec 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs index e75e0e8b167..f17c4d9a8f5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 7471bafb379..df321dc9e81 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Triangle.cs index cccaa79a8ff..6f33859a898 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/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))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/FILES index 37763cd49bc..09de5cdb39c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/FILES @@ -1,186 +1,186 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/Apple.md -docs/AppleReq.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Banana.md -docs/BananaReq.md -docs/BasquePig.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ChildCat.md -docs/ChildCatAllOf.md -docs/ClassModel.md -docs/ComplexQuadrilateral.md -docs/DanishPig.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/Drawing.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/EquilateralTriangle.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/Fruit.md -docs/FruitReq.md -docs/GmFruit.md -docs/GrandparentAnimal.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineResponseDefault.md -docs/IsoscelesTriangle.md -docs/List.md -docs/Mammal.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelClient.md -docs/Name.md -docs/NullableClass.md -docs/NullableShape.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/ParentPet.md -docs/Pet.md -docs/PetApi.md -docs/Pig.md -docs/Quadrilateral.md -docs/QuadrilateralInterface.md -docs/ReadOnlyFirst.md -docs/Return.md -docs/ScaleneTriangle.md -docs/Shape.md -docs/ShapeInterface.md -docs/ShapeOrNull.md -docs/SimpleQuadrilateral.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/Triangle.md -docs/TriangleInterface.md -docs/User.md -docs/UserApi.md -docs/Whale.md -docs/Zebra.md -git_push.sh -src/Org.OpenAPITools/Api/AnotherFakeApi.cs -src/Org.OpenAPITools/Api/DefaultApi.cs -src/Org.OpenAPITools/Api/FakeApi.cs -src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpMethod.cs -src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Animal.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Apple.cs -src/Org.OpenAPITools/Model/AppleReq.cs -src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs -src/Org.OpenAPITools/Model/ArrayTest.cs -src/Org.OpenAPITools/Model/Banana.cs -src/Org.OpenAPITools/Model/BananaReq.cs -src/Org.OpenAPITools/Model/BasquePig.cs -src/Org.OpenAPITools/Model/Capitalization.cs -src/Org.OpenAPITools/Model/Cat.cs -src/Org.OpenAPITools/Model/CatAllOf.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/ChildCat.cs -src/Org.OpenAPITools/Model/ChildCatAllOf.cs -src/Org.OpenAPITools/Model/ClassModel.cs -src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs -src/Org.OpenAPITools/Model/DanishPig.cs -src/Org.OpenAPITools/Model/Dog.cs -src/Org.OpenAPITools/Model/DogAllOf.cs -src/Org.OpenAPITools/Model/Drawing.cs -src/Org.OpenAPITools/Model/EnumArrays.cs -src/Org.OpenAPITools/Model/EnumClass.cs -src/Org.OpenAPITools/Model/EnumTest.cs -src/Org.OpenAPITools/Model/EquilateralTriangle.cs -src/Org.OpenAPITools/Model/File.cs -src/Org.OpenAPITools/Model/FileSchemaTestClass.cs -src/Org.OpenAPITools/Model/Foo.cs -src/Org.OpenAPITools/Model/FormatTest.cs -src/Org.OpenAPITools/Model/Fruit.cs -src/Org.OpenAPITools/Model/FruitReq.cs -src/Org.OpenAPITools/Model/GmFruit.cs -src/Org.OpenAPITools/Model/GrandparentAnimal.cs -src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs -src/Org.OpenAPITools/Model/HealthCheckResult.cs -src/Org.OpenAPITools/Model/InlineResponseDefault.cs -src/Org.OpenAPITools/Model/IsoscelesTriangle.cs -src/Org.OpenAPITools/Model/List.cs -src/Org.OpenAPITools/Model/Mammal.cs -src/Org.OpenAPITools/Model/MapTest.cs -src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs -src/Org.OpenAPITools/Model/Model200Response.cs -src/Org.OpenAPITools/Model/ModelClient.cs -src/Org.OpenAPITools/Model/Name.cs -src/Org.OpenAPITools/Model/NullableClass.cs -src/Org.OpenAPITools/Model/NullableShape.cs -src/Org.OpenAPITools/Model/NumberOnly.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/OuterComposite.cs -src/Org.OpenAPITools/Model/OuterEnum.cs -src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs -src/Org.OpenAPITools/Model/OuterEnumInteger.cs -src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs -src/Org.OpenAPITools/Model/ParentPet.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Pig.cs -src/Org.OpenAPITools/Model/Quadrilateral.cs -src/Org.OpenAPITools/Model/QuadrilateralInterface.cs -src/Org.OpenAPITools/Model/ReadOnlyFirst.cs -src/Org.OpenAPITools/Model/Return.cs -src/Org.OpenAPITools/Model/ScaleneTriangle.cs -src/Org.OpenAPITools/Model/Shape.cs -src/Org.OpenAPITools/Model/ShapeInterface.cs -src/Org.OpenAPITools/Model/ShapeOrNull.cs -src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs -src/Org.OpenAPITools/Model/SpecialModelName.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/Triangle.cs -src/Org.OpenAPITools/Model/TriangleInterface.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Model/Whale.cs -src/Org.OpenAPITools/Model/Zebra.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/Apple.md +docs/AppleReq.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Banana.md +docs/BananaReq.md +docs/BasquePig.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ChildCat.md +docs/ChildCatAllOf.md +docs/ClassModel.md +docs/ComplexQuadrilateral.md +docs/DanishPig.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/Drawing.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/EquilateralTriangle.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/Fruit.md +docs/FruitReq.md +docs/GmFruit.md +docs/GrandparentAnimal.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineResponseDefault.md +docs/IsoscelesTriangle.md +docs/List.md +docs/Mammal.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelClient.md +docs/Name.md +docs/NullableClass.md +docs/NullableShape.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/ParentPet.md +docs/Pet.md +docs/PetApi.md +docs/Pig.md +docs/Quadrilateral.md +docs/QuadrilateralInterface.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/ScaleneTriangle.md +docs/Shape.md +docs/ShapeInterface.md +docs/ShapeOrNull.md +docs/SimpleQuadrilateral.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/Triangle.md +docs/TriangleInterface.md +docs/User.md +docs/UserApi.md +docs/Whale.md +docs/Zebra.md +git_push.sh +src/Org.OpenAPITools/Api/AnotherFakeApi.cs +src/Org.OpenAPITools/Api/DefaultApi.cs +src/Org.OpenAPITools/Api/FakeApi.cs +src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpMethod.cs +src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Animal.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Apple.cs +src/Org.OpenAPITools/Model/AppleReq.cs +src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +src/Org.OpenAPITools/Model/ArrayTest.cs +src/Org.OpenAPITools/Model/Banana.cs +src/Org.OpenAPITools/Model/BananaReq.cs +src/Org.OpenAPITools/Model/BasquePig.cs +src/Org.OpenAPITools/Model/Capitalization.cs +src/Org.OpenAPITools/Model/Cat.cs +src/Org.OpenAPITools/Model/CatAllOf.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/ChildCat.cs +src/Org.OpenAPITools/Model/ChildCatAllOf.cs +src/Org.OpenAPITools/Model/ClassModel.cs +src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +src/Org.OpenAPITools/Model/DanishPig.cs +src/Org.OpenAPITools/Model/Dog.cs +src/Org.OpenAPITools/Model/DogAllOf.cs +src/Org.OpenAPITools/Model/Drawing.cs +src/Org.OpenAPITools/Model/EnumArrays.cs +src/Org.OpenAPITools/Model/EnumClass.cs +src/Org.OpenAPITools/Model/EnumTest.cs +src/Org.OpenAPITools/Model/EquilateralTriangle.cs +src/Org.OpenAPITools/Model/File.cs +src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +src/Org.OpenAPITools/Model/Foo.cs +src/Org.OpenAPITools/Model/FormatTest.cs +src/Org.OpenAPITools/Model/Fruit.cs +src/Org.OpenAPITools/Model/FruitReq.cs +src/Org.OpenAPITools/Model/GmFruit.cs +src/Org.OpenAPITools/Model/GrandparentAnimal.cs +src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +src/Org.OpenAPITools/Model/HealthCheckResult.cs +src/Org.OpenAPITools/Model/InlineResponseDefault.cs +src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +src/Org.OpenAPITools/Model/List.cs +src/Org.OpenAPITools/Model/Mammal.cs +src/Org.OpenAPITools/Model/MapTest.cs +src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +src/Org.OpenAPITools/Model/Model200Response.cs +src/Org.OpenAPITools/Model/ModelClient.cs +src/Org.OpenAPITools/Model/Name.cs +src/Org.OpenAPITools/Model/NullableClass.cs +src/Org.OpenAPITools/Model/NullableShape.cs +src/Org.OpenAPITools/Model/NumberOnly.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/OuterComposite.cs +src/Org.OpenAPITools/Model/OuterEnum.cs +src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +src/Org.OpenAPITools/Model/OuterEnumInteger.cs +src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +src/Org.OpenAPITools/Model/ParentPet.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Pig.cs +src/Org.OpenAPITools/Model/Quadrilateral.cs +src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +src/Org.OpenAPITools/Model/Return.cs +src/Org.OpenAPITools/Model/ScaleneTriangle.cs +src/Org.OpenAPITools/Model/Shape.cs +src/Org.OpenAPITools/Model/ShapeInterface.cs +src/Org.OpenAPITools/Model/ShapeOrNull.cs +src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +src/Org.OpenAPITools/Model/SpecialModelName.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/Triangle.cs +src/Org.OpenAPITools/Model/TriangleInterface.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Model/Whale.cs +src/Org.OpenAPITools/Model/Zebra.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 94d8b854b0d..ad48306e00c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs index 27789c4533a..8844aca4ab7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs index d7749151314..fe862283f1e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 56ebdf5fd10..d4fbb5868ad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs index 61759145f12..2bf19af1b1a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs index 6ab56c9e9bf..ad7387db705 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs index 80436c9b433..a2f2598c8ac 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiClient.cs index db5a263b639..dd44f97a907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -107,7 +107,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]+)['""]?$"); @@ -131,7 +131,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); } @@ -163,7 +163,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. @@ -208,7 +208,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"); @@ -269,7 +269,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/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiResponse.cs index 1b7d787c84b..ca2de833a5a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ClientUtils.cs index 2b6e52d6065..3d038d5ce69 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs index 154091fc731..1b80ca62fad 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs @@ -72,7 +72,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. @@ -516,9 +516,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/OpenAPIClientCore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 1b9f9b7a99f..1d2d0019cae 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IApiAccessor.cs index 59465ae8e90..2bd76416004 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 8a6f726678a..601e86d561c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ISynchronousClient.cs index d27f01a588b..0e0a7fedacf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/RequestOptions.cs index d8da585db9c..7a1d5b97a88 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Fruit.cs index 132be5b4d3b..66de6a1c6f1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FruitReq.cs index 380896933df..488c489d73a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/GmFruit.cs index c168aa41d4c..1aaa59d3f8b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs index 93652cebd2d..845bc54a3cb 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Mammal.cs @@ -189,7 +189,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 @@ -209,7 +209,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 @@ -229,7 +229,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) @@ -304,7 +304,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs index e3b59f31af6..5f454dee6d3 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -172,7 +172,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 @@ -192,7 +192,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) @@ -267,7 +267,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Pig.cs index 9ae61e76668..34e2e4de83c 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Pig.cs @@ -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 BasquePig: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString())); } try @@ -183,7 +183,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) @@ -258,7 +258,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f35df8fc7a1..1e00244d163 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -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 ComplexQuadrilateral: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString())); } try @@ -183,7 +183,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) @@ -258,7 +258,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs index 6fd2c2fba81..a71a14456e6 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Shape.cs @@ -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 Quadrilateral: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString())); } try @@ -183,7 +183,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) @@ -258,7 +258,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 8adfde1b067..f7c4541f236 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -172,7 +172,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 @@ -192,7 +192,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) @@ -267,7 +267,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/OpenAPIClientCore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Triangle.cs index 5979a1ea74c..0b1b3902702 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/Triangle.cs @@ -189,7 +189,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 @@ -209,7 +209,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 @@ -229,7 +229,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) @@ -304,7 +304,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))); } /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/FILES index 60d0f82fefd..92c394a9315 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/FILES @@ -1,42 +1,42 @@ -.gitignore -Org.OpenAPITools.sln -README.md -appveyor.yml -docs/ApiResponse.md -docs/Category.md -docs/Order.md -docs/Pet.md -docs/PetApi.md -docs/StoreApi.md -docs/Tag.md -docs/User.md -docs/UserApi.md -git_push.sh -src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj -src/Org.OpenAPITools/Api/PetApi.cs -src/Org.OpenAPITools/Api/StoreApi.cs -src/Org.OpenAPITools/Api/UserApi.cs -src/Org.OpenAPITools/Client/ApiClient.cs -src/Org.OpenAPITools/Client/ApiException.cs -src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/ClientUtils.cs -src/Org.OpenAPITools/Client/Configuration.cs -src/Org.OpenAPITools/Client/ExceptionFactory.cs -src/Org.OpenAPITools/Client/GlobalConfiguration.cs -src/Org.OpenAPITools/Client/HttpMethod.cs -src/Org.OpenAPITools/Client/IApiAccessor.cs -src/Org.OpenAPITools/Client/IAsynchronousClient.cs -src/Org.OpenAPITools/Client/IReadableConfiguration.cs -src/Org.OpenAPITools/Client/ISynchronousClient.cs -src/Org.OpenAPITools/Client/Multimap.cs -src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs -src/Org.OpenAPITools/Client/RequestOptions.cs -src/Org.OpenAPITools/Client/RetryConfiguration.cs -src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs -src/Org.OpenAPITools/Model/ApiResponse.cs -src/Org.OpenAPITools/Model/Category.cs -src/Org.OpenAPITools/Model/Order.cs -src/Org.OpenAPITools/Model/Pet.cs -src/Org.OpenAPITools/Model/Tag.cs -src/Org.OpenAPITools/Model/User.cs -src/Org.OpenAPITools/Org.OpenAPITools.csproj +.gitignore +Org.OpenAPITools.sln +README.md +appveyor.yml +docs/ApiResponse.md +docs/Category.md +docs/Order.md +docs/Pet.md +docs/PetApi.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +git_push.sh +src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +src/Org.OpenAPITools/Api/PetApi.cs +src/Org.OpenAPITools/Api/StoreApi.cs +src/Org.OpenAPITools/Api/UserApi.cs +src/Org.OpenAPITools/Client/ApiClient.cs +src/Org.OpenAPITools/Client/ApiException.cs +src/Org.OpenAPITools/Client/ApiResponse.cs +src/Org.OpenAPITools/Client/ClientUtils.cs +src/Org.OpenAPITools/Client/Configuration.cs +src/Org.OpenAPITools/Client/ExceptionFactory.cs +src/Org.OpenAPITools/Client/GlobalConfiguration.cs +src/Org.OpenAPITools/Client/HttpMethod.cs +src/Org.OpenAPITools/Client/IApiAccessor.cs +src/Org.OpenAPITools/Client/IAsynchronousClient.cs +src/Org.OpenAPITools/Client/IReadableConfiguration.cs +src/Org.OpenAPITools/Client/ISynchronousClient.cs +src/Org.OpenAPITools/Client/Multimap.cs +src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +src/Org.OpenAPITools/Client/RequestOptions.cs +src/Org.OpenAPITools/Client/RetryConfiguration.cs +src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +src/Org.OpenAPITools/Model/ApiResponse.cs +src/Org.OpenAPITools/Model/Category.cs +src/Org.OpenAPITools/Model/Order.cs +src/Org.OpenAPITools/Model/Pet.cs +src/Org.OpenAPITools/Model/Tag.cs +src/Org.OpenAPITools/Model/User.cs +src/Org.OpenAPITools/Org.OpenAPITools.csproj diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs index 34913501ea0..82f8266d4a1 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs @@ -422,7 +422,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, @@ -485,7 +485,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; } @@ -538,13 +538,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[] { "application/xml", "application/json" }; @@ -559,7 +559,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); } @@ -605,13 +605,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[] { "application/xml", "application/json" }; @@ -627,7 +627,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); } @@ -668,11 +668,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); @@ -689,7 +689,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); } @@ -732,11 +732,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[] { }; @@ -754,7 +754,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); } @@ -798,11 +798,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" }; @@ -817,7 +817,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); } @@ -863,11 +863,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" }; @@ -883,7 +883,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); } @@ -927,11 +927,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" }; @@ -946,7 +946,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); } @@ -992,11 +992,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" }; @@ -1012,7 +1012,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); } @@ -1052,11 +1052,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" }; @@ -1070,7 +1070,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")); } @@ -1112,11 +1112,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" }; @@ -1131,7 +1131,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")); } @@ -1175,13 +1175,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[] { "application/xml", "application/json" }; @@ -1196,7 +1196,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); } @@ -1242,13 +1242,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[] { "application/xml", "application/json" }; @@ -1264,7 +1264,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); } @@ -1307,12 +1307,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); @@ -1333,7 +1333,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); } @@ -1378,12 +1378,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[] { }; @@ -1405,7 +1405,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); } @@ -1449,12 +1449,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" }; @@ -1476,7 +1476,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); } @@ -1522,12 +1522,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" }; @@ -1550,7 +1550,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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs index d4d37dc9d4d..67f8c23d6ca 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs index 8e6455d1b99..ac62b62f067 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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); @@ -538,7 +538,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -583,12 +583,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[] { }; @@ -601,7 +601,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -644,12 +644,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); @@ -661,7 +661,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -706,12 +706,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[] { }; @@ -724,7 +724,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -767,12 +767,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); @@ -784,7 +784,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -829,12 +829,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[] { }; @@ -847,7 +847,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -890,11 +890,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); @@ -906,7 +906,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // 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")); } @@ -951,11 +951,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[] { }; @@ -968,7 +968,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // 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")); } @@ -1012,11 +1012,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" }; @@ -1071,11 +1071,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" }; @@ -1135,11 +1135,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" }; @@ -1201,11 +1201,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" }; @@ -1253,11 +1253,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); @@ -1268,7 +1268,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")); } @@ -1307,11 +1307,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[] { }; @@ -1323,7 +1323,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")); } @@ -1372,12 +1372,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); @@ -1390,7 +1390,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } @@ -1441,12 +1441,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[] { }; @@ -1460,7 +1460,7 @@ namespace Org.OpenAPITools.Api localVarRequestOptions.Data = user; // 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")); } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiClient.cs index 2626b1c2f6f..a515d30c958 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiResponse.cs index 57a13978ecb..6d91a6f7a47 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ClientUtils.cs index e1d9a6e0abc..3676a500c04 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs index 92fbefd0e34..896bd754ea5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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. @@ -440,9 +440,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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IApiAccessor.cs index edcf9827ebb..c8a78e995ce 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 6b62316325d..066d9b39482 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ISynchronousClient.cs index 22bb7a560f7..3910f6d68ce 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/RequestOptions.cs index e5facdfdaf8..c6b3ccc38f2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/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 +}