diff --git a/Directory.Packages.props b/Directory.Packages.props index 30561ba282..4b50cad8ec 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -23,7 +23,7 @@ - + diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/CodeGenerationTests.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/CodeGenerationTests.cs index 54c7f0be6f..f800251bda 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/CodeGenerationTests.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/CodeGenerationTests.cs @@ -3,6 +3,7 @@ using System.Reflection; using System.Security.Cryptography; using System.Text; +using System.Text.RegularExpressions; using Microsoft.OpenApi; namespace Swashbuckle.AspNetCore.IntegrationTests; @@ -10,7 +11,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests; /// /// Tests that validate that OpenAPI documents produce valid C# code when used with code generation tools. /// -public class CodeGenerationTests(ITestOutputHelper outputHelper) +public partial class CodeGenerationTests(ITestOutputHelper outputHelper) { private const string SnapshotsDirectory = "snapshots/code"; @@ -87,6 +88,8 @@ await VerifyDirectory( options: new() { RecurseSubdirectories = true }) .UseDirectory(SnapshotsDirectory) .UseFileName($"{nameof(GeneratesValidClient)}_{hashString}") + .ScrubLinesWithReplace(line => GeneratedCodeRegex().Replace(line, "[GeneratedCode]")) + .ScrubLinesWithReplace(line => NSwagGenerationComment().Replace(line, "// Generated using the NSwag toolchain")) .AddScrubber((builder) => { var content = builder.ToString(); @@ -124,6 +127,12 @@ private static string GetProjectRoot() => .GetCustomAttributes() .First((p) => p.Key is "ProjectRoot") .Value!; + + [GeneratedRegex(@"\[System\.CodeDom\.Compiler\.GeneratedCode\(\"".*\""\)]")] + private static partial Regex GeneratedCodeRegex(); + + [GeneratedRegex(@"^// Generated using the NSwag toolchain.*$")] + private static partial Regex NSwagGenerationComment(); } #endif diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_03bafa8999325463/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_03bafa8999325463/NSwagOpenApiClient.verified.cs index ce0ceb5f4d..bc27a486fa 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_03bafa8999325463/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_03bafa8999325463/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -1016,7 +1016,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu /// /// Represents the model for creating a new Todo item. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class CreateTodoItemModel { @@ -1031,7 +1031,7 @@ public partial class CreateTodoItemModel /// /// Represents the model for a created Todo item. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class CreatedTodoItemModel { @@ -1043,7 +1043,7 @@ public partial class CreatedTodoItemModel } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ProblemDetails { @@ -1076,7 +1076,7 @@ public System.Collections.Generic.IDictionary AdditionalProperti /// /// Represents a Todo item. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class TodoItemModel { @@ -1122,7 +1122,7 @@ public partial class TodoItemModel /// /// Represents a collection of Todo items. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class TodoListViewModel { @@ -1137,7 +1137,7 @@ public partial class TodoListViewModel /// /// The priority levels for a Todo item. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum TodoPriority { @@ -1155,7 +1155,7 @@ public enum TodoPriority /// /// Represents the model for updating the priority of a Todo item. /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class UpdateTodoItemPriorityModel { @@ -1170,7 +1170,7 @@ public partial class UpdateTodoItemPriorityModel - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -1193,7 +1193,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f40865eabf6c897/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f40865eabf6c897/NSwagOpenApiClient.verified.cs index 795937b1e2..a167ef80ce 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f40865eabf6c897/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f40865eabf6c897/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -2048,7 +2048,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Address { @@ -2066,7 +2066,7 @@ public partial class Address } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class AddressAnnotated { @@ -2087,7 +2087,7 @@ public partial class AddressAnnotated } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class AsParametersRecord { @@ -2131,7 +2131,7 @@ public partial class AsParametersRecord } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class CurrenciesRate { @@ -2149,7 +2149,7 @@ public partial class CurrenciesRate } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum DateTimeKind { @@ -2164,7 +2164,7 @@ public enum DateTimeKind /// /// Description for Schema /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Fruit { @@ -2173,7 +2173,7 @@ public partial class Fruit } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class OrganizationCustomExchangeRatesDto { @@ -2185,7 +2185,7 @@ public partial class OrganizationCustomExchangeRatesDto } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Person { @@ -2197,7 +2197,7 @@ public partial class Person } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class PersonAnnotated { @@ -2218,7 +2218,7 @@ public partial class PersonAnnotated /// /// Represents a product /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -2236,7 +2236,7 @@ public partial class Product } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class WeatherForecast { @@ -2255,7 +2255,7 @@ public partial class WeatherForecast } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] internal class DateFormatConverter : Newtonsoft.Json.Converters.IsoDateTimeConverter { public DateFormatConverter() @@ -2264,7 +2264,7 @@ public DateFormatConverter() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class FileParameter { public FileParameter(System.IO.Stream data) @@ -2293,7 +2293,7 @@ public FileParameter(System.IO.Stream data, string fileName, string contentType) - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -2316,7 +2316,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f9cab6ccf3bfed8/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f9cab6ccf3bfed8/NSwagOpenApiClient.verified.cs index 86defb12b5..11633ff2a5 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f9cab6ccf3bfed8/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_0f9cab6ccf3bfed8/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -358,7 +358,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Todo { @@ -377,7 +377,7 @@ public partial class Todo } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] internal class DateFormatConverter : Newtonsoft.Json.Converters.IsoDateTimeConverter { public DateFormatConverter() @@ -388,7 +388,7 @@ public DateFormatConverter() - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -411,7 +411,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_1cc2852e2d07f7a9/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_1cc2852e2d07f7a9/NSwagOpenApiClient.verified.cs index bcf2b1b61e..03f089b4fd 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_1cc2852e2d07f7a9/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_1cc2852e2d07f7a9/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -360,7 +360,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum LogLevel { @@ -382,7 +382,7 @@ public enum LogLevel - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -405,7 +405,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_26cad9664eb2cfd7/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_26cad9664eb2cfd7/NSwagOpenApiClient.verified.cs index 795937b1e2..a167ef80ce 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_26cad9664eb2cfd7/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_26cad9664eb2cfd7/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -2048,7 +2048,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Address { @@ -2066,7 +2066,7 @@ public partial class Address } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class AddressAnnotated { @@ -2087,7 +2087,7 @@ public partial class AddressAnnotated } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class AsParametersRecord { @@ -2131,7 +2131,7 @@ public partial class AsParametersRecord } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class CurrenciesRate { @@ -2149,7 +2149,7 @@ public partial class CurrenciesRate } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum DateTimeKind { @@ -2164,7 +2164,7 @@ public enum DateTimeKind /// /// Description for Schema /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Fruit { @@ -2173,7 +2173,7 @@ public partial class Fruit } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class OrganizationCustomExchangeRatesDto { @@ -2185,7 +2185,7 @@ public partial class OrganizationCustomExchangeRatesDto } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Person { @@ -2197,7 +2197,7 @@ public partial class Person } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class PersonAnnotated { @@ -2218,7 +2218,7 @@ public partial class PersonAnnotated /// /// Represents a product /// - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -2236,7 +2236,7 @@ public partial class Product } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class WeatherForecast { @@ -2255,7 +2255,7 @@ public partial class WeatherForecast } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] internal class DateFormatConverter : Newtonsoft.Json.Converters.IsoDateTimeConverter { public DateFormatConverter() @@ -2264,7 +2264,7 @@ public DateFormatConverter() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class FileParameter { public FileParameter(System.IO.Stream data) @@ -2293,7 +2293,7 @@ public FileParameter(System.IO.Stream data, string fileName, string contentType) - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -2316,7 +2316,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_38cbff2031b19a47/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_38cbff2031b19a47/NSwagOpenApiClient.verified.cs index 7c5581de11..b20581a5be 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_38cbff2031b19a47/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_38cbff2031b19a47/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -296,7 +296,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -319,7 +319,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_530dcf03216d7280/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_530dcf03216d7280/NSwagOpenApiClient.verified.cs index fd39c6bc34..5cbdd04508 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_530dcf03216d7280/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_530dcf03216d7280/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -564,7 +564,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -579,7 +579,7 @@ public partial class Product } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum ProductStatus { @@ -591,7 +591,7 @@ public enum ProductStatus - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -614,7 +614,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_57760456ece913b9/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_57760456ece913b9/NSwagOpenApiClient.verified.cs index 25719b19df..067afe8c7d 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_57760456ece913b9/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_57760456ece913b9/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class WeatherForecast { @@ -302,7 +302,7 @@ public partial class WeatherForecast - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -325,7 +325,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_58374503d767f09e/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_58374503d767f09e/NSwagOpenApiClient.verified.cs index a4ff686c47..beb6e252b1 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_58374503d767f09e/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_58374503d767f09e/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_709b8a091553aade/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_709b8a091553aade/NSwagOpenApiClient.verified.cs index 5cecb9b037..9775e742a5 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_709b8a091553aade/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_709b8a091553aade/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -550,7 +550,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -564,7 +564,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -587,7 +587,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8032c779929ecfff/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8032c779929ecfff/NSwagOpenApiClient.verified.cs index 6a3e890499..fc537da8c0 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8032c779929ecfff/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8032c779929ecfff/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -691,7 +691,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -705,7 +705,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -728,7 +728,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8fc5cd39a6a39d78/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8fc5cd39a6a39d78/NSwagOpenApiClient.verified.cs index c38e859de8..37a6a03c66 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8fc5cd39a6a39d78/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_8fc5cd39a6a39d78/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -296,7 +296,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -319,7 +319,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_90c6c3af644216be/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_90c6c3af644216be/NSwagOpenApiClient.verified.cs index 1ad2c9ba51..b08f5e01e7 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_90c6c3af644216be/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_90c6c3af644216be/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -526,13 +526,13 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu [Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "animalType")] [JsonInheritanceAttribute("Cat", typeof(Cat))] [JsonInheritanceAttribute("Dog", typeof(Dog))] - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Animal { } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public enum AnimalType { @@ -546,7 +546,7 @@ public enum AnimalType [Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "discriminator")] [JsonInheritanceAttribute("SubSubType", typeof(SubSubType))] - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class BaseType { @@ -555,7 +555,7 @@ public partial class BaseType } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Cat : Animal { @@ -564,7 +564,7 @@ public partial class Cat : Animal } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Dog : Animal { @@ -573,7 +573,7 @@ public partial class Dog : Animal } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SubSubType : BaseType { @@ -585,13 +585,13 @@ public partial class SubSubType : BaseType [Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "animalType")] [JsonInheritanceAttribute("Cat", typeof(SystemTextJsonCat))] [JsonInheritanceAttribute("Dog", typeof(SystemTextJsonDog))] - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonAnimal { } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonCat : SystemTextJsonAnimal { @@ -603,7 +603,7 @@ public partial class SystemTextJsonCat : SystemTextJsonAnimal [Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "$type")] [JsonInheritanceAttribute("Cat", typeof(SystemTextJsonDefaultDiscriminatorCat))] [JsonInheritanceAttribute("Dog", typeof(SystemTextJsonDefaultDiscriminatorDog))] - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonDefaultDiscriminatorAnimal { @@ -612,7 +612,7 @@ public partial class SystemTextJsonDefaultDiscriminatorAnimal } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonDefaultDiscriminatorCat : SystemTextJsonDefaultDiscriminatorAnimal { @@ -621,7 +621,7 @@ public partial class SystemTextJsonDefaultDiscriminatorCat : SystemTextJsonDefau } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonDefaultDiscriminatorDog : SystemTextJsonDefaultDiscriminatorAnimal { @@ -630,7 +630,7 @@ public partial class SystemTextJsonDefaultDiscriminatorDog : SystemTextJsonDefau } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class SystemTextJsonDog : SystemTextJsonAnimal { @@ -639,7 +639,7 @@ public partial class SystemTextJsonDog : SystemTextJsonAnimal } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] [System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple = true)] internal class JsonInheritanceAttribute : System.Attribute { @@ -654,7 +654,7 @@ public JsonInheritanceAttribute(string key, System.Type type) public System.Type Type { get; } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public class JsonInheritanceConverter : Newtonsoft.Json.JsonConverter { internal static readonly string DefaultDiscriminatorName = "discriminator"; @@ -778,7 +778,7 @@ private string GetSubtypeDiscriminator(System.Type objectType) - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -801,7 +801,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_a2c5946d4dfb86bb/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_a2c5946d4dfb86bb/NSwagOpenApiClient.verified.cs index 6a4a90b043..08ebdbaa10 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_a2c5946d4dfb86bb/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_a2c5946d4dfb86bb/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -1016,7 +1016,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Order { @@ -1028,7 +1028,7 @@ public partial class Order } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -1042,7 +1042,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -1065,7 +1065,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_e1206cfa5e4dd03f/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_e1206cfa5e4dd03f/NSwagOpenApiClient.verified.cs index 1363660a45..b6e9697838 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_e1206cfa5e4dd03f/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_e1206cfa5e4dd03f/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -293,7 +293,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -316,7 +316,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_eb165f962a7e90cc/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_eb165f962a7e90cc/NSwagOpenApiClient.verified.cs index 49b8b9ccc3..9060693954 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_eb165f962a7e90cc/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_eb165f962a7e90cc/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -288,7 +288,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -302,7 +302,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -325,7 +325,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f3e7a6da5d8392c8/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f3e7a6da5d8392c8/NSwagOpenApiClient.verified.cs index 25296f73c5..447ec3c849 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f3e7a6da5d8392c8/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f3e7a6da5d8392c8/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -296,7 +296,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -319,7 +319,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f6cacc2274e00f62/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f6cacc2274e00f62/NSwagOpenApiClient.verified.cs index 5036e7874a..8424703743 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f6cacc2274e00f62/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_f6cacc2274e00f62/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -289,7 +289,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Body { @@ -314,7 +314,7 @@ public System.Collections.Generic.IDictionary AdditionalProperti - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -337,7 +337,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_fec5e4f315ec4c59/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_fec5e4f315ec4c59/NSwagOpenApiClient.verified.cs index 25296f73c5..447ec3c849 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_fec5e4f315ec4c59/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_fec5e4f315ec4c59/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Product { @@ -296,7 +296,7 @@ public partial class Product - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -319,7 +319,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; } diff --git a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_ff945e0bca843529/NSwagOpenApiClient.verified.cs b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_ff945e0bca843529/NSwagOpenApiClient.verified.cs index 206aad4b49..30d7ea9be8 100644 --- a/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_ff945e0bca843529/NSwagOpenApiClient.verified.cs +++ b/test/Swashbuckle.AspNetCore.IntegrationTests/snapshots/code/GeneratesValidClient_ff945e0bca843529/NSwagOpenApiClient.verified.cs @@ -1,6 +1,6 @@ //---------------------- // -// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// Generated using the NSwag toolchain // //---------------------- @@ -24,7 +24,7 @@ namespace Swashbuckle.AspNetCore.IntegrationTests.NSwagTests { using System = global::System; - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class NSwagOpenApiClient { #pragma warning disable 8618 @@ -282,7 +282,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class Forecast { @@ -299,7 +299,7 @@ public partial class Forecast - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } @@ -322,7 +322,7 @@ public override string ToString() } } - [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")] + [GeneratedCode] public partial class ApiException : ApiException { public TResult Result { get; private set; }