From 97cf542f98d26d00b210cddf26e15a3bb9be7a26 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:30:46 +0200 Subject: [PATCH 1/6] Update comment for 'addAcceptHeaders' property In 'RefitGeneratorSettings.cs', the comment for the 'addAcceptHeaders' property was updated to better reflect its purpose. Previously, the comment was a duplicate of the 'AddAutoGeneratedHeader' property's comment. Now it correctly describes its function to add accept headers. --- src/Refitter.Core/RefitGeneratorSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Refitter.Core/RefitGeneratorSettings.cs b/src/Refitter.Core/RefitGeneratorSettings.cs index 4e992600..dfe260ab 100644 --- a/src/Refitter.Core/RefitGeneratorSettings.cs +++ b/src/Refitter.Core/RefitGeneratorSettings.cs @@ -56,7 +56,7 @@ public class RefitGeneratorSettings public bool AddAutoGeneratedHeader { get; set; } = true; /// - /// Gets or sets a value indicating whether to add auto-generated header. + /// Gets or sets a value indicating whether to add accept headers [Headers("Accept: xxx")]. /// [JsonPropertyName("addAcceptHeaders")] [JsonProperty("addAcceptHeaders")] From 5a2cc5ff0feeb8b7d76046901852b5ebe569e51e Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:31:12 +0200 Subject: [PATCH 2/6] Add 'addAcceptHeaders' option to main README.md A new option 'addAcceptHeaders' was added to README.md that allows adding accept headers to the generated code. This enhances flexibility and customization. Default is `true`. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b9a3afd2..f79047e0 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ The following is an example `.refitter` file "generateContracts": true, // Optional. Default=true "generateXmlDocCodeComments": true, // Optional. Default=true "addAutoGeneratedHeader": true, // Optional. Default=true + "addAcceptHeaders": true, // Optional. Default=true "returnIApiResponse": false, // Optional. Default=false "generateOperationHeaders": true, // Optional. Default=true "typeAccessibility": "Public", // Optional. Values=Public|Internal. Default=Public @@ -134,6 +135,7 @@ The following is an example `.refitter` file - `generateContracts` - a boolean indicating whether contracts should be generated. A use case for this is several API clients use the same contracts. Default is `true` - `generateXmlDocCodeComments` - a boolean indicating whether XML doc comments should be generated. Default is `true` - `addAutoGeneratedHeader` - a boolean indicating whether XML doc comments should be generated. Default is `true` +- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: xxx")]. Default is `true` - `returnIApiResponse` - a boolean indicating whether to return `IApiResponse` objects. Default is `false` - `generateOperationHeaders` - a boolean indicating whether to use operation headers in the generated methods. Default is `true` - `typeAccessibility` - the generated type accessibility. Possible values are `Public` and `Internal`. Default is `Public` From 57d05ab8328469af21e9e2f3db82fff475321dd4 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:32:22 +0200 Subject: [PATCH 3/6] Update README.md in Refitter.SourceGenerator Extended the explanation of Refitter.SourceGenerator in README.md to provide more context about the product and how it operates. Small changes were also made to improve reading flow, section headings were organized for a more hierarchical view and the ".refitter" file format description was augmented with a new field 'addAcceptHeaders'. These changes provide a more complete and understandable description for first-time users reviewing the documentation. --- src/Refitter.SourceGenerator/README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Refitter.SourceGenerator/README.md b/src/Refitter.SourceGenerator/README.md index 6e0cc9a8..8b123a14 100644 --- a/src/Refitter.SourceGenerator/README.md +++ b/src/Refitter.SourceGenerator/README.md @@ -1,8 +1,12 @@ -# Refitter Source Generator +## Source Generator -A C# Source Generator that uses [Refitter](https://github.com/christianhelle/refitter) for generating a REST API Client using the [Refit](https://github.com/reactiveui/refit) library. Refitter can generate the Refit interface from OpenAPI specifications +Refitter is available as a C# Source Generator that uses the [Refitter.Core](https://github.com/christianhelle/refitter.core) library for generating a REST API Client using the [Refit](https://github.com/reactiveui/refit) library. Refitter can generate the Refit interface from OpenAPI specifications -## Installation +The Refitter source generator is a bit untraditional in a sense that it creates a folder called `Generated` in the same location as the `.refitter` file and generates files to disk under the `Generated` folder. The source generator output should be included in the project and committed to source control. This is done because there is no other way to trigger the Refit source generator to pickup the Refitter generated code + +***(Translation: I couldn't for the life of me figure how to get that to work, sorry)*** + +### Installation The source generator is distributed as a NuGet package and should be installed to the project that will contain the generated code @@ -10,13 +14,15 @@ The source generator is distributed as a NuGet package and should be installed t dotnet add package Refitter.SourceGenerator ``` -## Usage +### Usage This source generator generates code based on any `.refitter` file included to the project as `AdditionalFiles`. The generator can automatically detect all `.refitter` files inside the project that referenced the `Refitter.SourceGenerator` package and there is no need to include them manually as `AdditionalFiles` -## File format +### .Refitter File format + +The following is an example `.refitter` file ```js { @@ -29,12 +35,13 @@ The generator can automatically detect all `.refitter` files inside the project "generateContracts": true, // Optional. Default=true "generateXmlDocCodeComments": true, // Optional. Default=true "addAutoGeneratedHeader": true, // Optional. Default=true + "addAcceptHeaders": true, // Optional. Default=true "returnIApiResponse": false, // Optional. Default=false "generateOperationHeaders": true, // Optional. Default=true "typeAccessibility": "Public", // Optional. Values=Public|Internal. Default=Public "useCancellationTokens": false, // Optional. Default=false "useIsoDateFormat": false, // Optional. Default=false - "multipleInterfaces": "ByEndpoint", // Optional. Values=Unset|ByEndpoint|ByTag. Default=Unset + "multipleInterfaces": "ByEndpoint", // Optional. May be one of "ByEndpoint" or "ByTag" "additionalNamespaces": [ // Optional "Namespace1", "Namespace2" @@ -49,6 +56,7 @@ The generator can automatically detect all `.refitter` files inside the project - `generateContracts` - a boolean indicating whether contracts should be generated. A use case for this is several API clients use the same contracts. Default is `true` - `generateXmlDocCodeComments` - a boolean indicating whether XML doc comments should be generated. Default is `true` - `addAutoGeneratedHeader` - a boolean indicating whether XML doc comments should be generated. Default is `true` +- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: xxx")]. Default is `true` - `returnIApiResponse` - a boolean indicating whether to return `IApiResponse` objects. Default is `false` - `generateOperationHeaders` - a boolean indicating whether to use operation headers in the generated methods. Default is `true` - `typeAccessibility` - the generated type accessibility. Possible values are `Public` and `Internal`. Default is `Public` From 39662cbcbb8b9f62771a19d7eb956d8592fd1d6b Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:33:59 +0200 Subject: [PATCH 4/6] Update default value for Accept headers in RefitGeneratorSettings This commit changes the default value for Accept headers setting in RefitGeneratorSettings class from 'xxx' to 'application/json'. The reason for this change is to make it more descriptive and accurate, as 'application/json' is a standard media type used frequently. --- src/Refitter.Core/RefitGeneratorSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Refitter.Core/RefitGeneratorSettings.cs b/src/Refitter.Core/RefitGeneratorSettings.cs index dfe260ab..39741391 100644 --- a/src/Refitter.Core/RefitGeneratorSettings.cs +++ b/src/Refitter.Core/RefitGeneratorSettings.cs @@ -56,7 +56,7 @@ public class RefitGeneratorSettings public bool AddAutoGeneratedHeader { get; set; } = true; /// - /// Gets or sets a value indicating whether to add accept headers [Headers("Accept: xxx")]. + /// Gets or sets a value indicating whether to add accept headers [Headers("Accept: application/json")]. /// [JsonPropertyName("addAcceptHeaders")] [JsonProperty("addAcceptHeaders")] From cdf27ed77e57993051a1d5aa5c9c76f6b56e9ec1 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:34:10 +0200 Subject: [PATCH 5/6] Update default `addAcceptHeaders` in README The `addAcceptHeaders` default value in the README was updated from a placeholder [Headers("Accept: xxx")] to a specific instance [Headers("Accept: application/json")]. This change provides accurate and direct information to the users about the default behavior of `addAcceptHeaders`, enhancing readability and comprehension. --- README.md | 2 +- src/Refitter.SourceGenerator/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f79047e0..caa3eb6a 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ The following is an example `.refitter` file - `generateContracts` - a boolean indicating whether contracts should be generated. A use case for this is several API clients use the same contracts. Default is `true` - `generateXmlDocCodeComments` - a boolean indicating whether XML doc comments should be generated. Default is `true` - `addAutoGeneratedHeader` - a boolean indicating whether XML doc comments should be generated. Default is `true` -- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: xxx")]. Default is `true` +- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: application/json")]. Default is `true` - `returnIApiResponse` - a boolean indicating whether to return `IApiResponse` objects. Default is `false` - `generateOperationHeaders` - a boolean indicating whether to use operation headers in the generated methods. Default is `true` - `typeAccessibility` - the generated type accessibility. Possible values are `Public` and `Internal`. Default is `Public` diff --git a/src/Refitter.SourceGenerator/README.md b/src/Refitter.SourceGenerator/README.md index 8b123a14..be226e95 100644 --- a/src/Refitter.SourceGenerator/README.md +++ b/src/Refitter.SourceGenerator/README.md @@ -56,7 +56,7 @@ The following is an example `.refitter` file - `generateContracts` - a boolean indicating whether contracts should be generated. A use case for this is several API clients use the same contracts. Default is `true` - `generateXmlDocCodeComments` - a boolean indicating whether XML doc comments should be generated. Default is `true` - `addAutoGeneratedHeader` - a boolean indicating whether XML doc comments should be generated. Default is `true` -- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: xxx")]. Default is `true` +- `addAcceptHeaders` - a boolean indicating whether to add accept headers [Headers("Accept: application/json")]. Default is `true` - `returnIApiResponse` - a boolean indicating whether to return `IApiResponse` objects. Default is `false` - `generateOperationHeaders` - a boolean indicating whether to use operation headers in the generated methods. Default is `true` - `typeAccessibility` - the generated type accessibility. Possible values are `Public` and `Internal`. Default is `Public` From bb5058cad7ba28b441b158114529f5f5e43418db Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 20 Aug 2023 17:35:32 +0200 Subject: [PATCH 6/6] Re-generate source generator output files in test project --- .../AdditionalFiles/Generated/Refitter.g.cs | 28 ++++++++++--------- .../SwaggerPetstoreSingleInterface.g.cs | 28 ++++++++++--------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/Refitter.g.cs b/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/Refitter.g.cs index 060de556..a6e43c79 100644 --- a/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/Refitter.g.cs +++ b/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/Refitter.g.cs @@ -127,7 +127,7 @@ public interface ISwaggerPetstore //---------------------- // -// Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain v13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0)) (http://NSwag.org) // //---------------------- @@ -140,6 +140,7 @@ public interface ISwaggerPetstore #pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'" #pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant" #pragma warning disable 8603 // Disable "CS8603 Possible null reference return" +#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter" namespace Refitter.Tests.AdditionalFiles.NoFilename { @@ -147,7 +148,7 @@ namespace Refitter.Tests.AdditionalFiles.NoFilename - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Order { @@ -197,7 +198,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Customer { @@ -227,7 +228,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Address { @@ -262,7 +263,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Category { @@ -287,7 +288,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class User { @@ -346,7 +347,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Tag { @@ -371,7 +372,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Pet { @@ -423,7 +424,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class ApiResponse { @@ -453,7 +454,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum Status { @@ -468,7 +469,7 @@ public enum Status } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum OrderStatus { @@ -483,7 +484,7 @@ public enum OrderStatus } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum PetStatus { @@ -498,7 +499,7 @@ public enum PetStatus } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class FileParameter { public FileParameter(System.IO.Stream data) @@ -537,3 +538,4 @@ public FileParameter(System.IO.Stream data, string fileName, string contentType) #pragma warning restore 8073 #pragma warning restore 3016 #pragma warning restore 8603 +#pragma warning restore 8604 diff --git a/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/SwaggerPetstoreSingleInterface.g.cs b/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/SwaggerPetstoreSingleInterface.g.cs index 56d75619..0b980b48 100644 --- a/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/SwaggerPetstoreSingleInterface.g.cs +++ b/src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/SwaggerPetstoreSingleInterface.g.cs @@ -127,7 +127,7 @@ public interface ISwaggerPetstore //---------------------- // -// Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain v13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0)) (http://NSwag.org) // //---------------------- @@ -140,6 +140,7 @@ public interface ISwaggerPetstore #pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'" #pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant" #pragma warning disable 8603 // Disable "CS8603 Possible null reference return" +#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter" namespace Refitter.Tests.AdditionalFiles.SingeInterface { @@ -147,7 +148,7 @@ namespace Refitter.Tests.AdditionalFiles.SingeInterface - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Order { @@ -197,7 +198,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Customer { @@ -227,7 +228,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Address { @@ -262,7 +263,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Category { @@ -287,7 +288,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class User { @@ -346,7 +347,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Tag { @@ -371,7 +372,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class Pet { @@ -423,7 +424,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class ApiResponse { @@ -453,7 +454,7 @@ public IDictionary AdditionalProperties } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum Status { @@ -468,7 +469,7 @@ public enum Status } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum OrderStatus { @@ -483,7 +484,7 @@ public enum OrderStatus } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public enum PetStatus { @@ -498,7 +499,7 @@ public enum PetStatus } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] + [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")] public partial class FileParameter { public FileParameter(System.IO.Stream data) @@ -537,3 +538,4 @@ public FileParameter(System.IO.Stream data, string fileName, string contentType) #pragma warning restore 8073 #pragma warning restore 3016 #pragma warning restore 8603 +#pragma warning restore 8604