From b27629a67063b295ae8d85849fc0d5ee3377e99f Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 28 Jul 2024 01:35:30 +0200 Subject: [PATCH 1/4] Adds unit test to CSharpClientCodegenTest to reproduce issue 12431 --- .../csharp/CSharpClientCodegenTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/swagger-codegen/src/test/java/io/swagger/codegen/csharp/CSharpClientCodegenTest.java b/modules/swagger-codegen/src/test/java/io/swagger/codegen/csharp/CSharpClientCodegenTest.java index 467850581ce..3bfaa837faf 100644 --- a/modules/swagger-codegen/src/test/java/io/swagger/codegen/csharp/CSharpClientCodegenTest.java +++ b/modules/swagger-codegen/src/test/java/io/swagger/codegen/csharp/CSharpClientCodegenTest.java @@ -6,6 +6,8 @@ import io.swagger.codegen.CodegenConstants; import io.swagger.codegen.languages.CSharpClientCodegen; +import java.io.File; + public class CSharpClientCodegenTest { @Test @@ -37,4 +39,20 @@ public void testAdditionalPropertiesPutForConfigValues() throws Exception { Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); } + @Test(description = "TEST_FOLDER should be updated with SOURCE_FOLDER when SOURCE_FOLDER is set") + public void testAdditionalPropertiesPutForSourceFolder() throws Exception { + final CSharpClientCodegen codegen = new CSharpClientCodegen(); + + final String expectedSourceFolder = "CustomSourceFolder"; + + codegen.additionalProperties().put(CodegenConstants.SOURCE_FOLDER, expectedSourceFolder); + codegen.processOpts(); + + final String expectedTestFolder = codegen.outputFolder() + File.separator + expectedSourceFolder; + + Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.SOURCE_FOLDER), expectedSourceFolder); + Assert.assertTrue(codegen.apiTestFileFolder().startsWith(expectedTestFolder)); + Assert.assertTrue(codegen.modelTestFileFolder().startsWith(expectedTestFolder)); + } + } From 8c5dfdaac328e68118d498df9781e01bd8b60feb Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 28 Jul 2024 01:34:01 +0200 Subject: [PATCH 2/4] Sets testFolder when setting sourceFolder --- .../swagger/codegen/languages/AbstractCSharpCodegen.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java index 1d15ac4fb1a..93efd50f6bb 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java @@ -210,6 +210,9 @@ public void processOpts() { // {{sourceFolder}} if (additionalProperties.containsKey(CodegenConstants.SOURCE_FOLDER)) { setSourceFolder((String) additionalProperties.get(CodegenConstants.SOURCE_FOLDER)); + // By default, the test folder shares the same path as the source folder. + // Therefore, both are updated when setting the source folder. + setTestFolder((String) additionalProperties.get(CodegenConstants.SOURCE_FOLDER)); } else { additionalProperties.put(CodegenConstants.SOURCE_FOLDER, this.sourceFolder); } @@ -925,6 +928,10 @@ public void setSourceFolder(String sourceFolder) { this.sourceFolder = sourceFolder; } + public void setTestFolder(String testFolder) { + this.testFolder = testFolder; + } + public String getInterfacePrefix() { return interfacePrefix; } From d74be58158e670e9b9773314e92879d6605fb589 Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 28 Jul 2024 08:54:23 +0200 Subject: [PATCH 3/4] Ran ./bin/csharp-petstore-all.sh --- .../SwaggerClient/.swagger-codegen/VERSION | 2 +- .../.swagger-codegen/VERSION | 2 +- .../.swagger-codegen/VERSION | 2 +- .../.swagger-codegen/VERSION | 2 +- .../csharp/SwaggerClientNetStandard/README.md | 10 +- .../SwaggerClientNetStandard/docs/Boolean.md | 8 ++ .../SwaggerClientNetStandard/docs/FakeApi.md | 30 ++-- .../SwaggerClientNetStandard/docs/Ints.md | 8 ++ .../SwaggerClientNetStandard/docs/Numbers.md | 8 ++ .../docs/OuterComposite.md | 6 +- .../SwaggerClientNetStandard/docs/PetApi.md | 8 +- .../src/IO.Swagger/Api/FakeApi.cs | 132 +++++++++--------- .../src/IO.Swagger/Api/PetApi.cs | 40 +++--- .../src/IO.Swagger/Model/Boolean.cs | 48 +++++++ .../src/IO.Swagger/Model/Ints.cs | 78 +++++++++++ .../src/IO.Swagger/Model/Numbers.cs | 60 ++++++++ .../src/IO.Swagger/Model/OuterComposite.cs | 8 +- .../.swagger-codegen/VERSION | 2 +- 18 files changed, 332 insertions(+), 122 deletions(-) create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Boolean.md create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Ints.md create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Numbers.md create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Boolean.cs create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Ints.cs create mode 100644 samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Numbers.cs diff --git a/samples/client/petstore/csharp/SwaggerClient/.swagger-codegen/VERSION b/samples/client/petstore/csharp/SwaggerClient/.swagger-codegen/VERSION index 8c7754221a4..5d1e420af01 100644 --- a/samples/client/petstore/csharp/SwaggerClient/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp/SwaggerClient/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.19-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/.swagger-codegen/VERSION b/samples/client/petstore/csharp/SwaggerClientNet35/.swagger-codegen/VERSION index 8c7754221a4..5d1e420af01 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp/SwaggerClientNet35/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.19-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/.swagger-codegen/VERSION b/samples/client/petstore/csharp/SwaggerClientNet40/.swagger-codegen/VERSION index 8c7754221a4..5d1e420af01 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp/SwaggerClientNet40/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.19-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/.swagger-codegen/VERSION b/samples/client/petstore/csharp/SwaggerClientNetStandard/.swagger-codegen/VERSION index 017674fb59d..5d1e420af01 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.3-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md index a66ad10025e..69fc7849ebe 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md @@ -118,14 +118,18 @@ Class | Method | HTTP request | Description - [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - [Model.ArrayTest](docs/ArrayTest.md) + - [Model.Boolean](docs/Boolean.md) - [Model.Capitalization](docs/Capitalization.md) + - [Model.Cat](docs/Cat.md) - [Model.Category](docs/Category.md) - [Model.ClassModel](docs/ClassModel.md) + - [Model.Dog](docs/Dog.md) - [Model.EnumArrays](docs/EnumArrays.md) - [Model.EnumClass](docs/EnumClass.md) - [Model.EnumTest](docs/EnumTest.md) - [Model.FormatTest](docs/FormatTest.md) - [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) + - [Model.Ints](docs/Ints.md) - [Model.List](docs/List.md) - [Model.MapTest](docs/MapTest.md) - [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) @@ -133,20 +137,16 @@ Class | Method | HTTP request | Description - [Model.ModelClient](docs/ModelClient.md) - [Model.Name](docs/Name.md) - [Model.NumberOnly](docs/NumberOnly.md) + - [Model.Numbers](docs/Numbers.md) - [Model.Order](docs/Order.md) - - [Model.OuterBoolean](docs/OuterBoolean.md) - [Model.OuterComposite](docs/OuterComposite.md) - [Model.OuterEnum](docs/OuterEnum.md) - - [Model.OuterNumber](docs/OuterNumber.md) - - [Model.OuterString](docs/OuterString.md) - [Model.Pet](docs/Pet.md) - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [Model.Return](docs/Return.md) - [Model.SpecialModelName](docs/SpecialModelName.md) - [Model.Tag](docs/Tag.md) - [Model.User](docs/User.md) - - [Model.Cat](docs/Cat.md) - - [Model.Dog](docs/Dog.md) diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Boolean.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Boolean.md new file mode 100644 index 00000000000..4e908f3d6d9 --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Boolean.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.Boolean +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md index d5929dcd9c3..0f09e490647 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **FakeOuterBooleanSerialize** -> OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -39,11 +39,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var body = new OuterBoolean(); // OuterBoolean | Input boolean as post body (optional) + var body = new bool?(); // bool? | Input boolean as post body (optional) try { - OuterBoolean result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -59,11 +59,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional] + **body** | [**bool?**](bool?.md)| Input boolean as post body | [optional] ### Return type -[**OuterBoolean**](OuterBoolean.md) +**bool?** ### Authorization @@ -138,7 +138,7 @@ No authorization required # **FakeOuterNumberSerialize** -> OuterNumber FakeOuterNumberSerialize (OuterNumber body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -159,11 +159,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var body = new OuterNumber(); // OuterNumber | Input number as post body (optional) + var body = new decimal?(); // decimal? | Input number as post body (optional) try { - OuterNumber result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -179,11 +179,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional] + **body** | [**decimal?**](decimal?.md)| Input number as post body | [optional] ### Return type -[**OuterNumber**](OuterNumber.md) +**decimal?** ### Authorization @@ -198,7 +198,7 @@ No authorization required # **FakeOuterStringSerialize** -> OuterString FakeOuterStringSerialize (OuterString body = null) +> string FakeOuterStringSerialize (string body = null) @@ -219,11 +219,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var body = new OuterString(); // OuterString | Input string as post body (optional) + var body = new string(); // string | Input string as post body (optional) try { - OuterString result = apiInstance.FakeOuterStringSerialize(body); + string result = apiInstance.FakeOuterStringSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -239,11 +239,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] + **body** | [**string**](string.md)| Input string as post body | [optional] ### Return type -[**OuterString**](OuterString.md) +**string** ### Authorization diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Ints.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Ints.md new file mode 100644 index 00000000000..25607fe8916 --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Ints.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.Ints +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Numbers.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Numbers.md new file mode 100644 index 00000000000..a522e078902 --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/Numbers.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.Numbers +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md index 41fae66f136..84714b7759e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md @@ -3,9 +3,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | [**OuterNumber**](OuterNumber.md) | | [optional] -**MyString** | [**OuterString**](OuterString.md) | | [optional] -**MyBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional] +**MyNumber** | **decimal?** | | [optional] +**MyString** | **string** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md index 44f7fad8326..4ba479f81d1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md @@ -460,7 +460,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream _file = null) uploads an image @@ -484,12 +484,12 @@ namespace Example var apiInstance = new PetApi(); var petId = 789; // long? | ID of pet to update var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) - var file = new System.IO.Stream(); // System.IO.Stream | file to upload (optional) + var _file = new System.IO.Stream(); // System.IO.Stream | file to upload (optional) try { // uploads an image - ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file); + ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, _file); Debug.WriteLine(result); } catch (Exception e) @@ -507,7 +507,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **long?**| ID of pet to update | **additionalMetadata** | **string**| Additional data to pass to server | [optional] - **file** | **System.IO.Stream**| file to upload | [optional] + **_file** | **System.IO.Stream**| file to upload | [optional] ### Return type diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs index 83ef292ca55..2bad595bec7 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs @@ -32,8 +32,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// OuterBoolean - OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null); + /// bool? + bool? FakeOuterBooleanSerialize (bool? body = null); /// /// @@ -43,8 +43,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of OuterBoolean - ApiResponse FakeOuterBooleanSerializeWithHttpInfo (OuterBoolean body = null); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo (bool? body = null); /// /// /// @@ -74,8 +74,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// OuterNumber - OuterNumber FakeOuterNumberSerialize (OuterNumber body = null); + /// decimal? + decimal? FakeOuterNumberSerialize (decimal? body = null); /// /// @@ -85,8 +85,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of OuterNumber - ApiResponse FakeOuterNumberSerializeWithHttpInfo (OuterNumber body = null); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo (decimal? body = null); /// /// /// @@ -95,8 +95,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// OuterString - OuterString FakeOuterStringSerialize (OuterString body = null); + /// string + string FakeOuterStringSerialize (string body = null); /// /// @@ -106,8 +106,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// ApiResponse of OuterString - ApiResponse FakeOuterStringSerializeWithHttpInfo (OuterString body = null); + /// ApiResponse of string + ApiResponse FakeOuterStringSerializeWithHttpInfo (string body = null); /// /// /// @@ -288,8 +288,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// Task of OuterBoolean - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync (OuterBoolean body = null); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync (bool? body = null); /// /// @@ -299,8 +299,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// Task of ApiResponse (OuterBoolean) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeAsyncWithHttpInfo (OuterBoolean body = null); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null); /// /// /// @@ -330,8 +330,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// Task of OuterNumber - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync (OuterNumber body = null); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync (decimal? body = null); /// /// @@ -341,8 +341,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// Task of ApiResponse (OuterNumber) - System.Threading.Tasks.Task> FakeOuterNumberSerializeAsyncWithHttpInfo (OuterNumber body = null); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null); /// /// /// @@ -351,8 +351,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// Task of OuterString - System.Threading.Tasks.Task FakeOuterStringSerializeAsync (OuterString body = null); + /// Task of string + System.Threading.Tasks.Task FakeOuterStringSerializeAsync (string body = null); /// /// @@ -362,8 +362,8 @@ public interface IFakeApi : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// Task of ApiResponse (OuterString) - System.Threading.Tasks.Task> FakeOuterStringSerializeAsyncWithHttpInfo (OuterString body = null); + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null); /// /// /// @@ -639,10 +639,10 @@ public void AddDefaultHeader(string key, string value) /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// OuterBoolean - public OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null) + /// bool? + public bool? FakeOuterBooleanSerialize (bool? body = null) { - ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -651,8 +651,8 @@ public OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null) /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of OuterBoolean - public ApiResponse< OuterBoolean > FakeOuterBooleanSerializeWithHttpInfo (OuterBoolean body = null) + /// ApiResponse of bool? + public ApiResponse< bool? > FakeOuterBooleanSerializeWithHttpInfo (bool? body = null) { var localVarPath = "./fake/outer/boolean"; @@ -698,9 +698,9 @@ public ApiResponse< OuterBoolean > FakeOuterBooleanSerializeWithHttpInfo (OuterB if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterBoolean) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterBoolean))); + (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); } /// @@ -708,10 +708,10 @@ public ApiResponse< OuterBoolean > FakeOuterBooleanSerializeWithHttpInfo (OuterB /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// Task of OuterBoolean - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync (OuterBoolean body = null) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync (bool? body = null) { - ApiResponse localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body); + ApiResponse localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -721,8 +721,8 @@ public async System.Threading.Tasks.Task FakeOuterBooleanSerialize /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// Task of ApiResponse (OuterBoolean) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeAsyncWithHttpInfo (OuterBoolean body = null) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null) { var localVarPath = "./fake/outer/boolean"; @@ -768,9 +768,9 @@ public async System.Threading.Tasks.Task> FakeOuterBoo if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterBoolean) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterBoolean))); + (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); } /// @@ -917,10 +917,10 @@ public async System.Threading.Tasks.Task> FakeOuterC /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// OuterNumber - public OuterNumber FakeOuterNumberSerialize (OuterNumber body = null) + /// decimal? + public decimal? FakeOuterNumberSerialize (decimal? body = null) { - ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -929,8 +929,8 @@ public OuterNumber FakeOuterNumberSerialize (OuterNumber body = null) /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of OuterNumber - public ApiResponse< OuterNumber > FakeOuterNumberSerializeWithHttpInfo (OuterNumber body = null) + /// ApiResponse of decimal? + public ApiResponse< decimal? > FakeOuterNumberSerializeWithHttpInfo (decimal? body = null) { var localVarPath = "./fake/outer/number"; @@ -976,9 +976,9 @@ public ApiResponse< OuterNumber > FakeOuterNumberSerializeWithHttpInfo (OuterNum if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterNumber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterNumber))); + (decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?))); } /// @@ -986,10 +986,10 @@ public ApiResponse< OuterNumber > FakeOuterNumberSerializeWithHttpInfo (OuterNum /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// Task of OuterNumber - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync (OuterNumber body = null) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync (decimal? body = null) { - ApiResponse localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body); + ApiResponse localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -999,8 +999,8 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAs /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// Task of ApiResponse (OuterNumber) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeAsyncWithHttpInfo (OuterNumber body = null) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null) { var localVarPath = "./fake/outer/number"; @@ -1046,9 +1046,9 @@ public async System.Threading.Tasks.Task> FakeOuterNumb if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterNumber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterNumber))); + (decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?))); } /// @@ -1056,10 +1056,10 @@ public async System.Threading.Tasks.Task> FakeOuterNumb /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// OuterString - public OuterString FakeOuterStringSerialize (OuterString body = null) + /// string + public string FakeOuterStringSerialize (string body = null) { - ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1068,8 +1068,8 @@ public OuterString FakeOuterStringSerialize (OuterString body = null) /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// ApiResponse of OuterString - public ApiResponse< OuterString > FakeOuterStringSerializeWithHttpInfo (OuterString body = null) + /// ApiResponse of string + public ApiResponse< string > FakeOuterStringSerializeWithHttpInfo (string body = null) { var localVarPath = "./fake/outer/string"; @@ -1115,9 +1115,9 @@ public ApiResponse< OuterString > FakeOuterStringSerializeWithHttpInfo (OuterStr if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterString) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterString))); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// @@ -1125,10 +1125,10 @@ public ApiResponse< OuterString > FakeOuterStringSerializeWithHttpInfo (OuterStr /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// Task of OuterString - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync (OuterString body = null) + /// Task of string + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync (string body = null) { - ApiResponse localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body); + ApiResponse localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -1138,8 +1138,8 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAs /// /// Thrown when fails to make API call /// Input string as post body (optional) - /// Task of ApiResponse (OuterString) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeAsyncWithHttpInfo (OuterString body = null) + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null) { var localVarPath = "./fake/outer/string"; @@ -1185,9 +1185,9 @@ public async System.Threading.Tasks.Task> FakeOuterStri if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (OuterString) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OuterString))); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs index 6ca3bbf8ff2..38fdf0ba871 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs @@ -186,9 +186,9 @@ public interface IPetApi : IApiAccessor /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// ApiResponse - ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null); + ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream _file = null); /// /// uploads an image @@ -199,9 +199,9 @@ public interface IPetApi : IApiAccessor /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null); + ApiResponse UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream _file = null); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -366,9 +366,9 @@ public interface IPetApi : IApiAccessor /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null); + System.Threading.Tasks.Task UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream _file = null); /// /// uploads an image @@ -379,9 +379,9 @@ public interface IPetApi : IApiAccessor /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null); + System.Threading.Tasks.Task> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream _file = null); #endregion Asynchronous Operations } @@ -1563,11 +1563,11 @@ public async System.Threading.Tasks.Task> UpdatePetWithFormA /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// ApiResponse - public ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) + public ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream _file = null) { - ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResponse.Data; } @@ -1577,9 +1577,9 @@ public ApiResponse UploadFile (long? petId, string additionalMetadata = null, Sy /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// ApiResponse of ApiResponse - public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null) + public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream _file = null) { // verify the required parameter 'petId' is set if (petId == null) @@ -1609,7 +1609,7 @@ public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string ad if (petId != null) localVarPathParams.Add("petId", this.Configuration.ApiClient.ParameterToString(petId)); // path parameter if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", this.Configuration.ApiClient.ParameterToString(additionalMetadata)); // form parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); + if (_file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", _file)); // authentication (petstore_auth) required // oauth required @@ -1642,11 +1642,11 @@ public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string ad /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null) + public async System.Threading.Tasks.Task UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream _file = null) { - ApiResponse localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file); + ApiResponse localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, _file); return localVarResponse.Data; } @@ -1657,9 +1657,9 @@ public async System.Threading.Tasks.Task UploadFileAsync (long? pet /// Thrown when fails to make API call /// ID of pet to update /// Additional data to pass to server (optional) - /// file to upload (optional) + /// file to upload (optional) /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null) + public async System.Threading.Tasks.Task> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream _file = null) { // verify the required parameter 'petId' is set if (petId == null) @@ -1689,7 +1689,7 @@ public async System.Threading.Tasks.Task> UploadFileAsy if (petId != null) localVarPathParams.Add("petId", this.Configuration.ApiClient.ParameterToString(petId)); // path parameter if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", this.Configuration.ApiClient.ParameterToString(additionalMetadata)); // form parameter - if (file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", file)); + if (_file != null) localVarFileParams.Add("file", this.Configuration.ApiClient.ParameterToFile("file", _file)); // authentication (petstore_auth) required // oauth required diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Boolean.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Boolean.cs new file mode 100644 index 00000000000..d404aa0365d --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Boolean.cs @@ -0,0 +1,48 @@ +/* + * Swagger Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; + +namespace IO.Swagger.Model +{ + /// + /// True or False indicator + /// + /// True or False indicator + + [JsonConverter(typeof(StringEnumConverter))] + + public enum Boolean + { + + /// + /// Enum True for value: true + /// + [EnumMember(Value = "true")] + True = 1, + + /// + /// Enum False for value: false + /// + [EnumMember(Value = "false")] + False = 2 + } + +} diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Ints.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Ints.cs new file mode 100644 index 00000000000..701fd9030b2 --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Ints.cs @@ -0,0 +1,78 @@ +/* + * Swagger Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; + +namespace IO.Swagger.Model +{ + /// + /// True or False indicator + /// + /// True or False indicator + + [JsonConverter(typeof(StringEnumConverter))] + + public enum Ints + { + + /// + /// Enum NUMBER_0 for value: 0 + /// + [EnumMember(Value = "0")] + NUMBER_0 = 1, + + /// + /// Enum NUMBER_1 for value: 1 + /// + [EnumMember(Value = "1")] + NUMBER_1 = 2, + + /// + /// Enum NUMBER_2 for value: 2 + /// + [EnumMember(Value = "2")] + NUMBER_2 = 3, + + /// + /// Enum NUMBER_3 for value: 3 + /// + [EnumMember(Value = "3")] + NUMBER_3 = 4, + + /// + /// Enum NUMBER_4 for value: 4 + /// + [EnumMember(Value = "4")] + NUMBER_4 = 5, + + /// + /// Enum NUMBER_5 for value: 5 + /// + [EnumMember(Value = "5")] + NUMBER_5 = 6, + + /// + /// Enum NUMBER_6 for value: 6 + /// + [EnumMember(Value = "6")] + NUMBER_6 = 7 + } + +} diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Numbers.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Numbers.cs new file mode 100644 index 00000000000..b5167fbd27e --- /dev/null +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Numbers.cs @@ -0,0 +1,60 @@ +/* + * Swagger Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * OpenAPI spec version: 1.0.0 + * Contact: apiteam@swagger.io + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; + +namespace IO.Swagger.Model +{ + /// + /// some number + /// + /// some number + + [JsonConverter(typeof(StringEnumConverter))] + + public enum Numbers + { + + /// + /// Enum _7 for value: 7 + /// + [EnumMember(Value = "7")] + _7 = 1, + + /// + /// Enum _8 for value: 8 + /// + [EnumMember(Value = "8")] + _8 = 2, + + /// + /// Enum _9 for value: 9 + /// + [EnumMember(Value = "9")] + _9 = 3, + + /// + /// Enum _10 for value: 10 + /// + [EnumMember(Value = "10")] + _10 = 4 + } + +} diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs index 0bf2d9e57cc..824de8cf988 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs @@ -34,7 +34,7 @@ public partial class OuterComposite : IEquatable /// myNumber. /// myString. /// myBoolean. - public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -45,19 +45,19 @@ public partial class OuterComposite : IEquatable /// Gets or Sets MyNumber /// [DataMember(Name="my_number", EmitDefaultValue=false)] - public OuterNumber MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString /// [DataMember(Name="my_string", EmitDefaultValue=false)] - public OuterString MyString { get; set; } + public string MyString { get; set; } /// /// Gets or Sets MyBoolean /// [DataMember(Name="my_boolean", EmitDefaultValue=false)] - public OuterBoolean MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/.swagger-codegen/VERSION b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/.swagger-codegen/VERSION index 8c7754221a4..5d1e420af01 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.19-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file From b93e0682a62aebd2996497affcc172c0b0e37c27 Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 28 Jul 2024 08:54:58 +0200 Subject: [PATCH 4/4] Ran ./bin/security/csharp-petstore.sh --- .../csharp/SwaggerClient/.swagger-codegen/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore-security-test/csharp/SwaggerClient/.swagger-codegen/VERSION b/samples/client/petstore-security-test/csharp/SwaggerClient/.swagger-codegen/VERSION index 855ff9501eb..5d1e420af01 100644 --- a/samples/client/petstore-security-test/csharp/SwaggerClient/.swagger-codegen/VERSION +++ b/samples/client/petstore-security-test/csharp/SwaggerClient/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.0-SNAPSHOT \ No newline at end of file +2.4.42-SNAPSHOT \ No newline at end of file