From 1278e0bc76bcfa43dfeb1626e3a59f9346b178da Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Fri, 22 Nov 2024 19:08:38 +0200 Subject: [PATCH] Enable implicit usings and remove unused (#5040) --- Directory.Build.props | 1 + src/NSwag.Annotations/OpenApiBodyParameterAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiControllerAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiFileAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiIgnoreAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiOperationAttribute.cs | 2 -- .../OpenApiOperationProcessorAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiTagAttribute.cs | 2 -- src/NSwag.Annotations/OpenApiTagsAttribute.cs | 2 -- src/NSwag.Annotations/ResponseTypeAttribute.cs | 1 - .../SwaggerDefaultResponseAttribute.cs | 2 -- src/NSwag.Annotations/SwaggerResponseAttribute.cs | 1 - src/NSwag.Annotations/WillReadBodyAttribute.cs | 2 -- .../Middlewares/OpenApiDocumentMiddleware.cs | 3 --- .../Middlewares/RedirectToIndexMiddleware.cs | 2 -- .../Middlewares/SwaggerUiIndexMiddleware.cs | 4 ---- src/NSwag.AspNet.Owin/SwaggerExtensions.cs | 3 --- .../JsonExceptionFilterAttribute.cs | 3 --- src/NSwag.AspNetCore/ApiverseUiSettings.cs | 2 -- .../Extensions/NSwagApplicationBuilderExtensions.cs | 3 --- .../Extensions/NSwagServiceCollectionExtensions.cs | 3 --- .../NSwagSwaggerGeneratorSettingsExtensions.cs | 1 - src/NSwag.AspNetCore/HttpRequestExtension.cs | 2 -- src/NSwag.AspNetCore/IDocumentProvider.cs | 4 ---- src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs | 4 ---- .../Middlewares/OpenApiDocumentMiddleware.cs | 4 ---- .../Middlewares/RedirectToIndexMiddleware.cs | 2 -- .../Middlewares/SwaggerUiIndexMiddleware.cs | 3 --- src/NSwag.AspNetCore/OAuth2ClientSettings.cs | 2 -- .../OpenApiDocumentMiddlewareSettings.cs | 1 - src/NSwag.AspNetCore/OpenApiDocumentProvider.cs | 5 ----- src/NSwag.AspNetCore/ReDocSettings.cs | 6 +++--- src/NSwag.AspNetCore/SwaggerSettings.cs | 7 ++----- src/NSwag.AspNetCore/SwaggerUiSettings.cs | 8 ++------ src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs | 10 +++------- .../CSharpClientGenerator.cs | 2 -- .../CSharpControllerGenerator.cs | 3 --- src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs | 2 -- .../Models/CSharpClientTemplateModel.cs | 2 -- .../Models/CSharpControllerTemplateModel.cs | 3 --- .../Models/CSharpFileTemplateModel.cs | 2 -- .../Models/CSharpOperationModel.cs | 2 -- .../Models/CSharpParameterModel.cs | 3 --- .../Models/TypeScriptClientTemplateModel.cs | 2 -- .../Models/TypeScriptFileTemplateModel.cs | 2 -- .../Models/TypeScriptOperationModel.cs | 1 - .../Models/TypeScriptParameterModel.cs | 2 -- .../TypeScriptClientGenerator.cs | 3 --- src/NSwag.CodeGeneration/ClientGeneratorBase.cs | 2 -- .../DefaultParameterNameGenerator.cs | 2 -- src/NSwag.CodeGeneration/DefaultTemplateFactory.cs | 2 -- src/NSwag.CodeGeneration/IParameterNameGenerator.cs | 2 -- src/NSwag.CodeGeneration/JsonSchemaExtensions.cs | 2 -- src/NSwag.CodeGeneration/Models/IOperationModel.cs | 2 -- src/NSwag.CodeGeneration/Models/OperationModelBase.cs | 3 --- src/NSwag.CodeGeneration/Models/ParameterModelBase.cs | 3 --- src/NSwag.CodeGeneration/Models/ResponseModelBase.cs | 2 -- ...ltipleClientsFromFirstTagAndOperationIdGenerator.cs | 1 - ...ipleClientsFromFirstTagAndOperationNameGenerator.cs | 1 - ...romFirstTagAndPathSegmentsOperationNameGenerator.cs | 1 - ...ipleClientsFromOperationIdOperationNameGenerator.cs | 3 --- ...pleClientsFromPathSegmentsOperationNameGenerator.cs | 2 -- ...ngleClientFromPathSegmentsOperationNameGenerator.cs | 1 - src/NSwag.Commands/CodeGeneratorCollection.cs | 4 +--- .../CodeGeneration/JsonSchemaToCSharpCommand.cs | 1 - .../CodeGeneration/JsonSchemaToOpenApiCommand.cs | 1 - .../CodeGeneration/JsonSchemaToTypeScriptCommand.cs | 2 -- .../CodeGeneration/OpenApiToCSharpClientCommand.cs | 4 ---- .../CodeGeneration/OpenApiToCSharpControllerCommand.cs | 2 -- .../CodeGeneration/OpenApiToTypeScriptClientCommand.cs | 4 ---- .../Commands/Document/CreateDocumentCommand.cs | 2 -- .../Commands/Document/ExecuteDocumentCommand.cs | 4 ---- .../AspNetCore/AspNetCoreToOpenApiCommand.cs | 5 +---- .../AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs | 1 - .../Commands/Generation/AspNetCore/Exe.cs | 3 --- .../Commands/Generation/AspNetCore/ProjectMetadata.cs | 5 ----- .../Commands/Generation/FromDocumentCommand.cs | 1 - src/NSwag.Commands/Commands/InputOutputCommandBase.cs | 5 ----- src/NSwag.Commands/Commands/OutputCommandBase.cs | 2 -- src/NSwag.Commands/Commands/OutputCommandExtensions.cs | 4 ---- src/NSwag.Commands/Commands/Tooling/VersionCommand.cs | 1 - src/NSwag.Commands/HostApplication.cs | 6 ++---- src/NSwag.Commands/HostFactoryResolver.cs | 4 ---- src/NSwag.Commands/NSwagCommandProcessor.cs | 4 ---- src/NSwag.Commands/NSwagDocument.cs | 8 ++------ src/NSwag.Commands/NSwagDocumentBase.cs | 6 ------ src/NSwag.Commands/OpenApiDocumentExecutionResult.cs | 3 --- src/NSwag.Commands/OpenApiGeneratorCollection.cs | 3 +-- src/NSwag.Commands/PathUtilities.cs | 4 ---- src/NSwag.Commands/RuntimeUtilities.cs | 1 - src/NSwag.Core/Collections/ObservableDictionary.cs | 3 --- src/NSwag.Core/OpenApiCallback.cs | 1 - src/NSwag.Core/OpenApiComponents.cs | 2 -- src/NSwag.Core/OpenApiDocument.Serialization.cs | 3 --- src/NSwag.Core/OpenApiDocument.cs | 6 ------ src/NSwag.Core/OpenApiLink.cs | 1 - src/NSwag.Core/OpenApiMediaType.cs | 1 - src/NSwag.Core/OpenApiOAuthFlow.cs | 1 - src/NSwag.Core/OpenApiOperation.cs | 2 -- src/NSwag.Core/OpenApiParameter.cs | 3 --- src/NSwag.Core/OpenApiPathItem.cs | 3 --- src/NSwag.Core/OpenApiRequestBody.cs | 1 - src/NSwag.Core/OpenApiResponse.cs | 2 -- src/NSwag.Core/OpenApiSchemaResolver.cs | 1 - src/NSwag.Core/OpenApiSecurityRequirement.cs | 2 -- src/NSwag.Core/OpenApiSecurityScheme.cs | 1 - src/NSwag.Core/OpenApiServer.cs | 1 - src/NSwag.Core/OpenApiServerVariable.cs | 1 - .../Controllers/LanguagesController.cs | 4 +--- .../Controllers/Parameters/EmptyPathController.cs | 1 - .../Controllers/Parameters/FileUploadController.cs | 4 +--- .../PathParameterWithModelBinderController.cs | 3 +-- .../Requests/MultipartConsumesController.cs | 3 +-- .../Responses/NullableResponseController.cs | 3 +-- .../Controllers/Responses/WrappedResponseController.cs | 5 +---- .../Controllers/ResponsesController.cs | 4 +--- .../Controllers/VersionedV3ValuesController.cs | 1 - .../Controllers/VersionedValuesController.cs | 3 +-- .../CustomTextInputFormatter.cs | 1 - .../CustomTextOutputFormatter.cs | 1 - src/NSwag.Generation.AspNetCore.Tests.Web/Program.cs | 1 - src/NSwag.Generation.AspNetCore.Tests.Web/Startup.cs | 7 ++----- .../AspNetCoreOpenApiDocumentGenerator.cs | 9 ++------- .../AspNetCoreOpenApiDocumentGeneratorSettings.cs | 1 - .../AspNetCoreOperationProcessorContext.cs | 3 --- .../AspNetCoreOperationSecurityScopeProcessor.cs | 4 ---- .../Processors/AspNetCoreOperationTagsProcessor.cs | 3 ++- .../Processors/OperationParameterProcessor.cs | 3 --- .../Processors/OperationResponseProcessor.cs | 2 -- .../OpenApiDocumentGeneratorTests.cs | 3 +-- .../OperationSummaryAndDescriptionProcessorTests.cs | 4 +--- .../Processors/OperationTagsProcessorTests.cs | 4 +--- .../Infrastructure/RouteAttributeFacade.cs | 2 -- .../Infrastructure/RoutePrefixAttributeFacade.cs | 2 -- .../Processors/OperationConsumesProcessor.cs | 3 --- .../Processors/OperationParameterProcessor.cs | 4 ---- .../Processors/OperationResponseProcessor.cs | 1 - .../WebApiOpenApiDocumentGenerator.cs | 4 ---- .../WebApiOpenApiDocumentGeneratorSettings.cs | 1 - .../Collections/CollectionExtensions.cs | 6 +----- src/NSwag.Generation/GenericResultWrapperTypes.cs | 3 +-- src/NSwag.Generation/IOpenApiDocumentGenerator.cs | 2 -- .../OpenApiDocumentGeneratorSettings.cs | 1 - src/NSwag.Generation/OpenApiSchemaGenerator.cs | 1 - .../Processors/ActionDocumentProcessor.cs | 1 - src/NSwag.Generation/Processors/ApiVersionProcessor.cs | 2 -- .../Collections/DocumentProcessorCollection.cs | 1 - .../Collections/OperationProcessorCollection.cs | 1 - .../Processors/Contexts/DocumentProcessorContext.cs | 2 -- .../Processors/Contexts/OperationProcessorContext.cs | 2 -- .../Processors/DocumentExtensionDataProcessor.cs | 2 -- .../Processors/DocumentTagsProcessor.cs | 3 --- src/NSwag.Generation/Processors/IDocumentProcessor.cs | 1 - .../Processors/OperationExtensionDataProcessor.cs | 3 --- src/NSwag.Generation/Processors/OperationProcessor.cs | 2 -- .../Processors/OperationResponseDescription.cs | 2 -- .../Processors/OperationResponseProcessorBase.cs | 4 ---- .../OperationSummaryAndDescriptionProcessor.cs | 3 --- .../Processors/OperationTagsProcessor.cs | 2 -- .../Security/OperationSecurityScopeProcessor.cs | 2 -- .../Processors/Security/SecurityDefinitionAppender.cs | 2 -- 162 files changed, 37 insertions(+), 395 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 260dfa0d63..9c482ed6fc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -19,6 +19,7 @@ https://github.com/RicoSuter/NSwag.git latest + enable true diff --git a/src/NSwag.Annotations/OpenApiBodyParameterAttribute.cs b/src/NSwag.Annotations/OpenApiBodyParameterAttribute.cs index 60fd9d91fb..a2029136aa 100644 --- a/src/NSwag.Annotations/OpenApiBodyParameterAttribute.cs +++ b/src/NSwag.Annotations/OpenApiBodyParameterAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies that the operation consumes the POST body. diff --git a/src/NSwag.Annotations/OpenApiControllerAttribute.cs b/src/NSwag.Annotations/OpenApiControllerAttribute.cs index b59760c26e..cf572ddef1 100644 --- a/src/NSwag.Annotations/OpenApiControllerAttribute.cs +++ b/src/NSwag.Annotations/OpenApiControllerAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Describes the controller. diff --git a/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs b/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs index ee40a48958..56fde78339 100644 --- a/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs +++ b/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Indicates extension data to be added to the Swagger definition. diff --git a/src/NSwag.Annotations/OpenApiFileAttribute.cs b/src/NSwag.Annotations/OpenApiFileAttribute.cs index ec169cafa1..e328564647 100644 --- a/src/NSwag.Annotations/OpenApiFileAttribute.cs +++ b/src/NSwag.Annotations/OpenApiFileAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies a parameter or class to be handled as file. diff --git a/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs b/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs index a981885c6d..1096a56ccf 100644 --- a/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs +++ b/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Excludes an action method from the generated Swagger specification. diff --git a/src/NSwag.Annotations/OpenApiOperationAttribute.cs b/src/NSwag.Annotations/OpenApiOperationAttribute.cs index d93c89d361..5e57880bf6 100644 --- a/src/NSwag.Annotations/OpenApiOperationAttribute.cs +++ b/src/NSwag.Annotations/OpenApiOperationAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies the operation id, summary and description diff --git a/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs b/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs index 71276b3b3c..1d238bd710 100644 --- a/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs +++ b/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Registers an operation processor for the given method or class. diff --git a/src/NSwag.Annotations/OpenApiTagAttribute.cs b/src/NSwag.Annotations/OpenApiTagAttribute.cs index ab2e12ac44..926aae385d 100644 --- a/src/NSwag.Annotations/OpenApiTagAttribute.cs +++ b/src/NSwag.Annotations/OpenApiTagAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies the tags for an operation. diff --git a/src/NSwag.Annotations/OpenApiTagsAttribute.cs b/src/NSwag.Annotations/OpenApiTagsAttribute.cs index 7fda9434f7..2b385f71e4 100644 --- a/src/NSwag.Annotations/OpenApiTagsAttribute.cs +++ b/src/NSwag.Annotations/OpenApiTagsAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies the tags for an operation or a document. diff --git a/src/NSwag.Annotations/ResponseTypeAttribute.cs b/src/NSwag.Annotations/ResponseTypeAttribute.cs index 8e5b0abb70..a585fb2320 100644 --- a/src/NSwag.Annotations/ResponseTypeAttribute.cs +++ b/src/NSwag.Annotations/ResponseTypeAttribute.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Net; namespace NSwag.Annotations diff --git a/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs b/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs index b6d82bb875..49c5709532 100644 --- a/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs +++ b/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies that a default response (HTTP 200/204) should be generated from the return type of the operation method diff --git a/src/NSwag.Annotations/SwaggerResponseAttribute.cs b/src/NSwag.Annotations/SwaggerResponseAttribute.cs index 6be1bafb89..a85a04981c 100644 --- a/src/NSwag.Annotations/SwaggerResponseAttribute.cs +++ b/src/NSwag.Annotations/SwaggerResponseAttribute.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Net; namespace NSwag.Annotations diff --git a/src/NSwag.Annotations/WillReadBodyAttribute.cs b/src/NSwag.Annotations/WillReadBodyAttribute.cs index 07ac08eae9..15c02d4938 100644 --- a/src/NSwag.Annotations/WillReadBodyAttribute.cs +++ b/src/NSwag.Annotations/WillReadBodyAttribute.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Annotations { /// Specifies whether the parameter or class reads the body. diff --git a/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs b/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs index 9a69a9d5bf..a0d50780e0 100644 --- a/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs +++ b/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs @@ -6,10 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Runtime.ExceptionServices; -using System.Threading.Tasks; using Microsoft.Owin; using NSwag.Generation.WebApi; diff --git a/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs b/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs index 7be088137a..e2d2ef8490 100644 --- a/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs +++ b/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Threading.Tasks; using Microsoft.Owin; namespace NSwag.AspNet.Owin.Middlewares diff --git a/src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs b/src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs index c324b404cd..bd21430d62 100644 --- a/src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs +++ b/src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs @@ -1,7 +1,3 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Owin; using NSwag.Generation; diff --git a/src/NSwag.AspNet.Owin/SwaggerExtensions.cs b/src/NSwag.AspNet.Owin/SwaggerExtensions.cs index da4551b11e..6bdf6a95ba 100644 --- a/src/NSwag.AspNet.Owin/SwaggerExtensions.cs +++ b/src/NSwag.AspNet.Owin/SwaggerExtensions.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Microsoft.Owin; using Microsoft.Owin.Extensions; diff --git a/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs b/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs index 142f493c9b..f60c2fc54a 100644 --- a/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs +++ b/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Net; using System.Net.Http; using System.Reflection; diff --git a/src/NSwag.AspNetCore/ApiverseUiSettings.cs b/src/NSwag.AspNetCore/ApiverseUiSettings.cs index 548efafbeb..99b730f1b7 100644 --- a/src/NSwag.AspNetCore/ApiverseUiSettings.cs +++ b/src/NSwag.AspNetCore/ApiverseUiSettings.cs @@ -7,8 +7,6 @@ //----------------------------------------------------------------------- using Microsoft.AspNetCore.Http; -using System.Threading; -using System.Threading.Tasks; namespace NSwag.AspNetCore { diff --git a/src/NSwag.AspNetCore/Extensions/NSwagApplicationBuilderExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagApplicationBuilderExtensions.cs index 83d503bb53..51c4df58a7 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagApplicationBuilderExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagApplicationBuilderExtensions.cs @@ -4,9 +4,6 @@ using Microsoft.Extensions.Options; using NSwag.AspNetCore; using NSwag.AspNetCore.Middlewares; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; namespace Microsoft.AspNetCore.Builder diff --git a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs index f827cff744..8f17aad2ed 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.ApiDescriptions; using Microsoft.Extensions.Options; diff --git a/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs index 1d0f66717d..415be0f656 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs @@ -9,7 +9,6 @@ using NSwag; using NSwag.Generation; using NSwag.Generation.Processors.Security; -using System.Collections.Generic; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/NSwag.AspNetCore/HttpRequestExtension.cs b/src/NSwag.AspNetCore/HttpRequestExtension.cs index 684a3bc40c..7099430f5c 100644 --- a/src/NSwag.AspNetCore/HttpRequestExtension.cs +++ b/src/NSwag.AspNetCore/HttpRequestExtension.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Linq; #if AspNetOwin using Microsoft.Owin; diff --git a/src/NSwag.AspNetCore/IDocumentProvider.cs b/src/NSwag.AspNetCore/IDocumentProvider.cs index 145b807b5d..07bf6ff02c 100644 --- a/src/NSwag.AspNetCore/IDocumentProvider.cs +++ b/src/NSwag.AspNetCore/IDocumentProvider.cs @@ -6,10 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; - namespace Microsoft.Extensions.ApiDescriptions { // This service will be looked up by name from the service collection when using diff --git a/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs b/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs index e40febea16..02289ca769 100644 --- a/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs +++ b/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs @@ -6,15 +6,11 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters; using Newtonsoft.Json; -using NJsonSchema.Converters; using NJsonSchema.NewtonsoftJson.Converters; using NSwag.Annotations; using NSwag.Generation.AspNetCore; diff --git a/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs b/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs index 4f1f837f75..d68e137500 100644 --- a/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs +++ b/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs @@ -10,11 +10,7 @@ using Microsoft.AspNetCore.Mvc.ApiExplorer; using Microsoft.Extensions.DependencyInjection; using Namotion.Reflection; -using System; -using System.Collections.Generic; using System.Runtime.ExceptionServices; -using System.Threading; -using System.Threading.Tasks; namespace NSwag.AspNetCore.Middlewares { diff --git a/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs b/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs index 0b0b706bbc..182c9b6e40 100644 --- a/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs +++ b/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace NSwag.AspNetCore.Middlewares diff --git a/src/NSwag.AspNetCore/Middlewares/SwaggerUiIndexMiddleware.cs b/src/NSwag.AspNetCore/Middlewares/SwaggerUiIndexMiddleware.cs index 05efdc10e3..dd00e31771 100644 --- a/src/NSwag.AspNetCore/Middlewares/SwaggerUiIndexMiddleware.cs +++ b/src/NSwag.AspNetCore/Middlewares/SwaggerUiIndexMiddleware.cs @@ -1,7 +1,4 @@ -using System; -using System.IO; using System.Reflection; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace NSwag.AspNetCore.Middlewares diff --git a/src/NSwag.AspNetCore/OAuth2ClientSettings.cs b/src/NSwag.AspNetCore/OAuth2ClientSettings.cs index 9057534757..791409220e 100644 --- a/src/NSwag.AspNetCore/OAuth2ClientSettings.cs +++ b/src/NSwag.AspNetCore/OAuth2ClientSettings.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; - #if AspNetOwin namespace NSwag.AspNet.Owin #else diff --git a/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs b/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs index 024774fc06..0a79ab593c 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using Microsoft.AspNetCore.Http; -using System; namespace NSwag.AspNetCore { diff --git a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs index 7848fcdfc9..07465a28a2 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs @@ -6,11 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.Extensions.ApiDescriptions; using Microsoft.Extensions.DependencyInjection; using NSwag.Generation; diff --git a/src/NSwag.AspNetCore/ReDocSettings.cs b/src/NSwag.AspNetCore/ReDocSettings.cs index 78d541c162..cf3da91d8d 100644 --- a/src/NSwag.AspNetCore/ReDocSettings.cs +++ b/src/NSwag.AspNetCore/ReDocSettings.cs @@ -6,10 +6,10 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- +#pragma warning disable IDE0005 + using NSwag.Generation; -using System.Collections.Generic; -using System.Threading.Tasks; -using System.Threading; + #if AspNetOwin using Microsoft.Owin; diff --git a/src/NSwag.AspNetCore/SwaggerSettings.cs b/src/NSwag.AspNetCore/SwaggerSettings.cs index f3d41a7b2e..a21513ee3e 100644 --- a/src/NSwag.AspNetCore/SwaggerSettings.cs +++ b/src/NSwag.AspNetCore/SwaggerSettings.cs @@ -6,14 +6,11 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using Newtonsoft.Json; +#pragma warning disable IDE0005 + using NSwag.Generation; #if AspNetOwin -using NSwag.Generation.WebApi; -using Microsoft.Owin; - namespace NSwag.AspNet.Owin #else namespace NSwag.AspNetCore diff --git a/src/NSwag.AspNetCore/SwaggerUiSettings.cs b/src/NSwag.AspNetCore/SwaggerUiSettings.cs index eed7d02176..33c9fe20ec 100644 --- a/src/NSwag.AspNetCore/SwaggerUiSettings.cs +++ b/src/NSwag.AspNetCore/SwaggerUiSettings.cs @@ -6,17 +6,13 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; +#pragma warning disable IDE0005 + using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text; using Newtonsoft.Json; using NSwag.Generation; -using NJsonSchema; -using System.Threading; -using System.Threading.Tasks; #if AspNetOwin using Microsoft.Owin; diff --git a/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs b/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs index 52d9f300ca..71fe133810 100644 --- a/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs +++ b/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs @@ -6,16 +6,12 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- +#pragma warning disable IDE0005 + using NSwag.Generation; -using System; -using System.Collections.Generic; -using NJsonSchema; -using System.Globalization; using Newtonsoft.Json; -using System.Linq; using System.Text; -using System.Threading.Tasks; -using System.Threading; + #if AspNetOwin using Microsoft.Owin; diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs b/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs index 0c505dc79e..58f421018c 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.CSharp; using NSwag.CodeGeneration.CSharp.Models; diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs index 7074ba084a..d41a7d9fd7 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.CSharp; using NSwag.CodeGeneration.CSharp.Models; diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs index ce0936007a..6fe56d6a5a 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.CSharp; diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs index e73787d160..04bdaf706b 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration.CSharp; diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs index 7390cd4a37..8a578ee002 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; - namespace NSwag.CodeGeneration.CSharp.Models { /// The CSharp controller template model. diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs index 42f25e4878..25ab67f69a 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.CSharp; diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs index 2ab1bd37d9..a49866c86c 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.CSharp; diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs index 1d584ecf4c..b71ca9c4aa 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs @@ -6,10 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using NJsonSchema.CodeGeneration; -using NJsonSchema.CodeGeneration.CSharp; using NSwag.CodeGeneration.Models; namespace NSwag.CodeGeneration.CSharp.Models diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs index 97b795332d..c8ba381c52 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema.CodeGeneration.TypeScript; namespace NSwag.CodeGeneration.TypeScript.Models diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs index 7d077ef3eb..06927a870e 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.TypeScript; diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs index bf9e0f7929..4469e4cc09 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; using NSwag.CodeGeneration.Models; diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs index 4df9edd217..1a4cb44ed5 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using NJsonSchema; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.TypeScript; diff --git a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs index 86c1c5bde9..73ecc8be90 100644 --- a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs +++ b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; using NJsonSchema.CodeGeneration.TypeScript; diff --git a/src/NSwag.CodeGeneration/ClientGeneratorBase.cs b/src/NSwag.CodeGeneration/ClientGeneratorBase.cs index bca6c349d4..3118a16416 100644 --- a/src/NSwag.CodeGeneration/ClientGeneratorBase.cs +++ b/src/NSwag.CodeGeneration/ClientGeneratorBase.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; using NSwag.CodeGeneration.Models; diff --git a/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs b/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs index ff5e1cf633..dc8f81394f 100644 --- a/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs +++ b/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; namespace NSwag.CodeGeneration diff --git a/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs b/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs index 342f891c84..3b66ae7625 100644 --- a/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs +++ b/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs @@ -6,10 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Reflection; using NJsonSchema.CodeGeneration; -using System.IO; namespace NSwag.CodeGeneration { diff --git a/src/NSwag.CodeGeneration/IParameterNameGenerator.cs b/src/NSwag.CodeGeneration/IParameterNameGenerator.cs index becd8839f8..97838504a4 100644 --- a/src/NSwag.CodeGeneration/IParameterNameGenerator.cs +++ b/src/NSwag.CodeGeneration/IParameterNameGenerator.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; - namespace NSwag.CodeGeneration { /// The parameter name generator interface. diff --git a/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs b/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs index aa7c5d6d30..653aae50f8 100644 --- a/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs +++ b/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; namespace NSwag.CodeGeneration diff --git a/src/NSwag.CodeGeneration/Models/IOperationModel.cs b/src/NSwag.CodeGeneration/Models/IOperationModel.cs index ddcd4942cb..44694bef59 100644 --- a/src/NSwag.CodeGeneration/Models/IOperationModel.cs +++ b/src/NSwag.CodeGeneration/Models/IOperationModel.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; - namespace NSwag.CodeGeneration.Models { /// The operation model interface. diff --git a/src/NSwag.CodeGeneration/Models/OperationModelBase.cs b/src/NSwag.CodeGeneration/Models/OperationModelBase.cs index 9af99efa68..a24cce70cd 100644 --- a/src/NSwag.CodeGeneration/Models/OperationModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/OperationModelBase.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; diff --git a/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs b/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs index 8a9a26c84c..ffc7ab39be 100644 --- a/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; diff --git a/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs b/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs index fbe848806b..c984620b19 100644 --- a/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NJsonSchema.CodeGeneration; diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs index f9df12a5e0..6bad98a59c 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using NJsonSchema; -using System.Linq; namespace NSwag.CodeGeneration.OperationNameGenerators { diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationNameGenerator.cs index f25ab37b22..e7445b92ce 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationNameGenerator.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using NJsonSchema; -using System.Linq; namespace NSwag.CodeGeneration.OperationNameGenerators { diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs index 0a74d51426..5b38537538 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using NJsonSchema; -using System.Linq; namespace NSwag.CodeGeneration.OperationNameGenerators { diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs index 10e29f7a8b..92a814892a 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Diagnostics; -using System.Linq; using NJsonSchema; namespace NSwag.CodeGeneration.OperationNameGenerators diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs index a5817ad7c2..2b8e199f22 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Linq; - namespace NSwag.CodeGeneration.OperationNameGenerators { /// Generates the client and operation name based on the path segments (operation name = last segment, client name = second to last segment). diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs index 760fccbcd3..0a7bfde57f 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Linq; using System.Text.RegularExpressions; namespace NSwag.CodeGeneration.OperationNameGenerators diff --git a/src/NSwag.Commands/CodeGeneratorCollection.cs b/src/NSwag.Commands/CodeGeneratorCollection.cs index 913f66a904..280c5db82c 100644 --- a/src/NSwag.Commands/CodeGeneratorCollection.cs +++ b/src/NSwag.Commands/CodeGeneratorCollection.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using Newtonsoft.Json; +using Newtonsoft.Json; using NSwag.Commands.CodeGeneration; namespace NSwag.Commands diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs index 1d72e3ebfd..1a08ab0edd 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Threading.Tasks; using NConsole; using Newtonsoft.Json; using NJsonSchema.CodeGeneration.CSharp; diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToOpenApiCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToOpenApiCommand.cs index 44609e747c..e51106d1cb 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToOpenApiCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToOpenApiCommand.cs @@ -1,5 +1,4 @@ using System.Text.RegularExpressions; -using System.Threading.Tasks; using NConsole; using Newtonsoft.Json; using NJsonSchema; diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs index 64c8e7be54..ff3f0c1f00 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs @@ -6,9 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Threading.Tasks; using NConsole; -using NJsonSchema; using NJsonSchema.CodeGeneration.TypeScript; #pragma warning disable 1591 diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs index fcb02cd5b0..07af9188eb 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs @@ -6,10 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using NConsole; using NSwag.CodeGeneration; using NSwag.CodeGeneration.CSharp; diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs index 3fea5b27ac..1f00475fdd 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Threading.Tasks; using NConsole; using NSwag.CodeGeneration.CSharp; using NSwag.CodeGeneration.CSharp.Models; diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs index 0368d784ae..13620d433c 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs @@ -6,12 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.IO; -using System.Threading.Tasks; using NConsole; using NJsonSchema.CodeGeneration.TypeScript; -using NJsonSchema.Infrastructure; using NSwag.CodeGeneration.TypeScript; #pragma warning disable 1591 diff --git a/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs b/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs index cdaaf5b56e..8d4625d118 100644 --- a/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.IO; -using System.Threading.Tasks; using NConsole; using NSwag.Commands.CodeGeneration; diff --git a/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs b/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs index 2bfcd45aae..5bde415d9e 100644 --- a/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs @@ -6,10 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using NConsole; #pragma warning disable 1591 diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs index 041ffeecb3..f2b944b69a 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs @@ -6,12 +6,9 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member +#pragma warning disable IDE0005 -using System; -using System.Collections.Generic; -using System.IO; using System.Reflection; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using NConsole; using Newtonsoft.Json; diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs index 8c7c200c4f..7ac88ccdb3 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.IO; using System.Reflection; using Newtonsoft.Json; diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs index 20f1960639..61d16a9805 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs @@ -6,11 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Text; -using System.Threading.Tasks; using NConsole; namespace NSwag.Commands.Generation.AspNetCore diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs index 858c1c26a1..22c2262a30 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs @@ -6,15 +6,10 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; using System.Reflection; using System.Text.Json; -using System.Threading.Tasks; using NConsole; namespace NSwag.Commands.Generation.AspNetCore diff --git a/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs b/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs index c84c0b2f22..d06cbf072c 100644 --- a/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs @@ -8,7 +8,6 @@ using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Threading.Tasks; using NConsole; using Newtonsoft.Json; diff --git a/src/NSwag.Commands/Commands/InputOutputCommandBase.cs b/src/NSwag.Commands/Commands/InputOutputCommandBase.cs index c235f01760..7caba1eb1a 100644 --- a/src/NSwag.Commands/Commands/InputOutputCommandBase.cs +++ b/src/NSwag.Commands/Commands/InputOutputCommandBase.cs @@ -6,14 +6,9 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using NConsole; using Newtonsoft.Json; using NJsonSchema; -using NJsonSchema.Infrastructure; #pragma warning disable 1591 diff --git a/src/NSwag.Commands/Commands/OutputCommandBase.cs b/src/NSwag.Commands/Commands/OutputCommandBase.cs index 0f5a67419a..2c452de6c8 100644 --- a/src/NSwag.Commands/Commands/OutputCommandBase.cs +++ b/src/NSwag.Commands/Commands/OutputCommandBase.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Threading.Tasks; using NConsole; using Newtonsoft.Json; diff --git a/src/NSwag.Commands/Commands/OutputCommandExtensions.cs b/src/NSwag.Commands/Commands/OutputCommandExtensions.cs index cbf47acfb6..8b0bfbd29d 100644 --- a/src/NSwag.Commands/Commands/OutputCommandExtensions.cs +++ b/src/NSwag.Commands/Commands/OutputCommandExtensions.cs @@ -6,11 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.IO; -using System.Threading.Tasks; using NConsole; -using NJsonSchema.Infrastructure; #pragma warning disable 1591 diff --git a/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs b/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs index b486205e19..5d3e62cccb 100644 --- a/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs +++ b/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Threading.Tasks; using NConsole; using NJsonSchema; diff --git a/src/NSwag.Commands/HostApplication.cs b/src/NSwag.Commands/HostApplication.cs index 0361c92123..591ce83692 100644 --- a/src/NSwag.Commands/HostApplication.cs +++ b/src/NSwag.Commands/HostApplication.cs @@ -1,8 +1,6 @@ -using System; -using System.Linq; +#pragma warning disable IDE0005 + using System.Reflection; -using System.Threading; -using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.Server; diff --git a/src/NSwag.Commands/HostFactoryResolver.cs b/src/NSwag.Commands/HostFactoryResolver.cs index 771113d020..d186b00ced 100644 --- a/src/NSwag.Commands/HostFactoryResolver.cs +++ b/src/NSwag.Commands/HostFactoryResolver.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Reflection; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.Extensions.Hosting { diff --git a/src/NSwag.Commands/NSwagCommandProcessor.cs b/src/NSwag.Commands/NSwagCommandProcessor.cs index 731e9d80b4..066c4e9e7a 100644 --- a/src/NSwag.Commands/NSwagCommandProcessor.cs +++ b/src/NSwag.Commands/NSwagCommandProcessor.cs @@ -6,14 +6,10 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Diagnostics; -using System.IO; using System.Reflection; -using System.Threading.Tasks; using NConsole; using NJsonSchema; -using NJsonSchema.Infrastructure; using NSwag.Commands.CodeGeneration; namespace NSwag.Commands diff --git a/src/NSwag.Commands/NSwagDocument.cs b/src/NSwag.Commands/NSwagDocument.cs index f5885f9efd..5d16347c38 100644 --- a/src/NSwag.Commands/NSwagDocument.cs +++ b/src/NSwag.Commands/NSwagDocument.cs @@ -6,15 +6,11 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; +#pragma warning disable IDE0005 + using System.Diagnostics; -using System.IO; -using System.Linq; using System.Reflection; -using System.Text; using System.Text.RegularExpressions; -using System.Threading.Tasks; using NSwag.Commands.Generation.AspNetCore; namespace NSwag.Commands diff --git a/src/NSwag.Commands/NSwagDocumentBase.cs b/src/NSwag.Commands/NSwagDocumentBase.cs index b16eb66423..211765dd69 100644 --- a/src/NSwag.Commands/NSwagDocumentBase.cs +++ b/src/NSwag.Commands/NSwagDocumentBase.cs @@ -6,20 +6,14 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; -using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; -using NJsonSchema.Infrastructure; using NSwag.Commands.CodeGeneration; using NSwag.Commands.Generation; diff --git a/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs b/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs index d766bd3b0e..f8f07e3665 100644 --- a/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs +++ b/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; - namespace NSwag.Commands { /// Stores the result of a execution. diff --git a/src/NSwag.Commands/OpenApiGeneratorCollection.cs b/src/NSwag.Commands/OpenApiGeneratorCollection.cs index 4809dbd271..4e20aa026b 100644 --- a/src/NSwag.Commands/OpenApiGeneratorCollection.cs +++ b/src/NSwag.Commands/OpenApiGeneratorCollection.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using Newtonsoft.Json; +using Newtonsoft.Json; using NSwag.Commands.CodeGeneration; using NSwag.Commands.Generation; using NSwag.Commands.Generation.AspNetCore; diff --git a/src/NSwag.Commands/PathUtilities.cs b/src/NSwag.Commands/PathUtilities.cs index 0595324ada..889d647a9c 100644 --- a/src/NSwag.Commands/PathUtilities.cs +++ b/src/NSwag.Commands/PathUtilities.cs @@ -6,10 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Text; using System.Text.RegularExpressions; diff --git a/src/NSwag.Commands/RuntimeUtilities.cs b/src/NSwag.Commands/RuntimeUtilities.cs index f97ff58144..0fca74c267 100644 --- a/src/NSwag.Commands/RuntimeUtilities.cs +++ b/src/NSwag.Commands/RuntimeUtilities.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; #if !NETFRAMEWORK using Microsoft.Extensions.PlatformAbstractions; #endif diff --git a/src/NSwag.Core/Collections/ObservableDictionary.cs b/src/NSwag.Core/Collections/ObservableDictionary.cs index 561b9e239e..40b4794c96 100644 --- a/src/NSwag.Core/Collections/ObservableDictionary.cs +++ b/src/NSwag.Core/Collections/ObservableDictionary.cs @@ -6,12 +6,9 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Linq; namespace NSwag.Collections { diff --git a/src/NSwag.Core/OpenApiCallback.cs b/src/NSwag.Core/OpenApiCallback.cs index 011984b28b..dbee64881c 100644 --- a/src/NSwag.Core/OpenApiCallback.cs +++ b/src/NSwag.Core/OpenApiCallback.cs @@ -9,7 +9,6 @@ using Newtonsoft.Json; using NJsonSchema.References; using System.Collections; -using System.Collections.Generic; namespace NSwag { diff --git a/src/NSwag.Core/OpenApiComponents.cs b/src/NSwag.Core/OpenApiComponents.cs index 985c04f454..9e6fe57ca3 100644 --- a/src/NSwag.Core/OpenApiComponents.cs +++ b/src/NSwag.Core/OpenApiComponents.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using Newtonsoft.Json; using NJsonSchema; using NSwag.Collections; diff --git a/src/NSwag.Core/OpenApiDocument.Serialization.cs b/src/NSwag.Core/OpenApiDocument.Serialization.cs index 58498b2184..598373cc73 100644 --- a/src/NSwag.Core/OpenApiDocument.Serialization.cs +++ b/src/NSwag.Core/OpenApiDocument.Serialization.cs @@ -10,11 +10,8 @@ using Newtonsoft.Json.Converters; using NJsonSchema; using NJsonSchema.Infrastructure; -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Linq; namespace NSwag { diff --git a/src/NSwag.Core/OpenApiDocument.cs b/src/NSwag.Core/OpenApiDocument.cs index 21b4a35562..bca7d0f77f 100644 --- a/src/NSwag.Core/OpenApiDocument.cs +++ b/src/NSwag.Core/OpenApiDocument.cs @@ -6,15 +6,9 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; -using System.Linq; using System.Reflection; using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; using Newtonsoft.Json; using NJsonSchema; using NJsonSchema.Generation; diff --git a/src/NSwag.Core/OpenApiLink.cs b/src/NSwag.Core/OpenApiLink.cs index 919aa0e24c..6260608768 100644 --- a/src/NSwag.Core/OpenApiLink.cs +++ b/src/NSwag.Core/OpenApiLink.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using Newtonsoft.Json; using NJsonSchema.References; diff --git a/src/NSwag.Core/OpenApiMediaType.cs b/src/NSwag.Core/OpenApiMediaType.cs index 3ed4e81735..5445bb53f8 100644 --- a/src/NSwag.Core/OpenApiMediaType.cs +++ b/src/NSwag.Core/OpenApiMediaType.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using Newtonsoft.Json; using NJsonSchema; diff --git a/src/NSwag.Core/OpenApiOAuthFlow.cs b/src/NSwag.Core/OpenApiOAuthFlow.cs index 2b2ef2874b..a387f0dbef 100644 --- a/src/NSwag.Core/OpenApiOAuthFlow.cs +++ b/src/NSwag.Core/OpenApiOAuthFlow.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using Newtonsoft.Json; namespace NSwag diff --git a/src/NSwag.Core/OpenApiOperation.cs b/src/NSwag.Core/OpenApiOperation.cs index a02a600433..9cf9af6611 100644 --- a/src/NSwag.Core/OpenApiOperation.cs +++ b/src/NSwag.Core/OpenApiOperation.cs @@ -6,10 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using NJsonSchema; diff --git a/src/NSwag.Core/OpenApiParameter.cs b/src/NSwag.Core/OpenApiParameter.cs index 49f476cccc..6bd9687c7b 100644 --- a/src/NSwag.Core/OpenApiParameter.cs +++ b/src/NSwag.Core/OpenApiParameter.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Text.RegularExpressions; using Newtonsoft.Json; using NJsonSchema; diff --git a/src/NSwag.Core/OpenApiPathItem.cs b/src/NSwag.Core/OpenApiPathItem.cs index 140851058c..709016988e 100644 --- a/src/NSwag.Core/OpenApiPathItem.cs +++ b/src/NSwag.Core/OpenApiPathItem.cs @@ -6,10 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; using Newtonsoft.Json; using NJsonSchema.References; using NSwag.Collections; diff --git a/src/NSwag.Core/OpenApiRequestBody.cs b/src/NSwag.Core/OpenApiRequestBody.cs index 5663eb8f15..f76527a299 100644 --- a/src/NSwag.Core/OpenApiRequestBody.cs +++ b/src/NSwag.Core/OpenApiRequestBody.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using Newtonsoft.Json; using NJsonSchema.References; using NSwag.Collections; diff --git a/src/NSwag.Core/OpenApiResponse.cs b/src/NSwag.Core/OpenApiResponse.cs index 2c063fc019..e04a045ae5 100644 --- a/src/NSwag.Core/OpenApiResponse.cs +++ b/src/NSwag.Core/OpenApiResponse.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using System.Text.RegularExpressions; using Newtonsoft.Json; using NJsonSchema; diff --git a/src/NSwag.Core/OpenApiSchemaResolver.cs b/src/NSwag.Core/OpenApiSchemaResolver.cs index 4455fc5db8..9586874c63 100644 --- a/src/NSwag.Core/OpenApiSchemaResolver.cs +++ b/src/NSwag.Core/OpenApiSchemaResolver.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using NJsonSchema; using NJsonSchema.Generation; diff --git a/src/NSwag.Core/OpenApiSecurityRequirement.cs b/src/NSwag.Core/OpenApiSecurityRequirement.cs index 2409e64f2e..3566c545e5 100644 --- a/src/NSwag.Core/OpenApiSecurityRequirement.cs +++ b/src/NSwag.Core/OpenApiSecurityRequirement.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; - namespace NSwag { /// The operation security requirements. diff --git a/src/NSwag.Core/OpenApiSecurityScheme.cs b/src/NSwag.Core/OpenApiSecurityScheme.cs index 416d002086..50f8206fde 100644 --- a/src/NSwag.Core/OpenApiSecurityScheme.cs +++ b/src/NSwag.Core/OpenApiSecurityScheme.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using NJsonSchema; diff --git a/src/NSwag.Core/OpenApiServer.cs b/src/NSwag.Core/OpenApiServer.cs index ca29dc6bc1..c48ee87ef1 100644 --- a/src/NSwag.Core/OpenApiServer.cs +++ b/src/NSwag.Core/OpenApiServer.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using Newtonsoft.Json; -using System.Collections.Generic; namespace NSwag { diff --git a/src/NSwag.Core/OpenApiServerVariable.cs b/src/NSwag.Core/OpenApiServerVariable.cs index 0401e75483..9f0fc37a41 100644 --- a/src/NSwag.Core/OpenApiServerVariable.cs +++ b/src/NSwag.Core/OpenApiServerVariable.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using Newtonsoft.Json; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace NSwag diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/LanguagesController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/LanguagesController.cs index 51709c90c0..c9271b87a5 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/LanguagesController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/LanguagesController.cs @@ -1,6 +1,4 @@ -using System; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/EmptyPathController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/EmptyPathController.cs index bb9b66e912..1dece164e8 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/EmptyPathController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/EmptyPathController.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Parameters { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/FileUploadController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/FileUploadController.cs index d06203a66a..03c5d12bf0 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/FileUploadController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/FileUploadController.cs @@ -1,8 +1,6 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using NJsonSchema.Annotations; using System.ComponentModel.DataAnnotations; -using System.Threading.Tasks; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Parameters { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/PathParameterWithModelBinderController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/PathParameterWithModelBinderController.cs index 2c66cf60c6..032580d4f0 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/PathParameterWithModelBinderController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Parameters/PathParameterWithModelBinderController.cs @@ -1,5 +1,4 @@ -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Parameters diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Requests/MultipartConsumesController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Requests/MultipartConsumesController.cs index 525b9b67b0..eeb297357a 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Requests/MultipartConsumesController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Requests/MultipartConsumesController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Requests { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/NullableResponseController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/NullableResponseController.cs index 257361bacd..310dc01b9d 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/NullableResponseController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/NullableResponseController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Responses { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/WrappedResponseController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/WrappedResponseController.cs index 1204338e2a..fcfded2eb0 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/WrappedResponseController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/Responses/WrappedResponseController.cs @@ -1,7 +1,4 @@ -using System; -using System.Threading.Tasks; - -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers.Responses { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/ResponsesController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/ResponsesController.cs index e1294000d4..010eeea25e 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/ResponsesController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/ResponsesController.cs @@ -1,6 +1,4 @@ -using System; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using NSwag.Annotations; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedV3ValuesController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedV3ValuesController.cs index d01d2bfbef..acda39d2e0 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedV3ValuesController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedV3ValuesController.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NSwag.Annotations; diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedValuesController.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedValuesController.cs index 8d7f1d53f1..d172305e5b 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedValuesController.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Controllers/VersionedValuesController.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using NSwag.Annotations; namespace NSwag.Generation.AspNetCore.Tests.Web.Controllers diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextInputFormatter.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextInputFormatter.cs index ff5f9381eb..fbd96454a7 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextInputFormatter.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextInputFormatter.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc.Formatters; using System.Text; -using System.Threading.Tasks; using Microsoft.Net.Http.Headers; namespace NSwag.Generation.AspNetCore.Tests.Web diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextOutputFormatter.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextOutputFormatter.cs index f9d1022b8e..365f9c97c9 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextOutputFormatter.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/CustomTextOutputFormatter.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc.Formatters; using System.Text; -using System.Threading.Tasks; using Microsoft.Net.Http.Headers; namespace NSwag.Generation.AspNetCore.Tests.Web diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Program.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Program.cs index 4b0b7e3be2..b40c926c71 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Program.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Program.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; namespace NSwag.Generation.AspNetCore.Tests.Web { diff --git a/src/NSwag.Generation.AspNetCore.Tests.Web/Startup.cs b/src/NSwag.Generation.AspNetCore.Tests.Web/Startup.cs index 2308395f74..971dd9c317 100644 --- a/src/NSwag.Generation.AspNetCore.Tests.Web/Startup.cs +++ b/src/NSwag.Generation.AspNetCore.Tests.Web/Startup.cs @@ -1,8 +1,5 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.AspNetCore.Mvc.Versioning; +using Microsoft.AspNetCore.Mvc.Versioning; +using IHostingEnvironment = Microsoft.AspNetCore.Hosting.IHostingEnvironment; namespace NSwag.Generation.AspNetCore.Tests.Web { diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs index b11b8d4e38..8e28ab7bb2 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs @@ -6,15 +6,12 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; +#pragma warning disable IDE0005 + using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using System.Text; using System.Text.Json; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Abstractions; using Microsoft.AspNetCore.Mvc.ApiExplorer; @@ -25,9 +22,7 @@ using Microsoft.Extensions.Options; using Namotion.Reflection; using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; using NJsonSchema; -using NJsonSchema.Generation; using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs index 2822af25af..664480b2c7 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs @@ -8,7 +8,6 @@ using NSwag.Generation.Processors; using NSwag.Generation.AspNetCore.Processors; -using System; namespace NSwag.Generation.AspNetCore { diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs index 0049fd6540..ac4855e4dd 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs @@ -6,11 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Reflection; using Microsoft.AspNetCore.Mvc.ApiExplorer; -using NJsonSchema; using NJsonSchema.Generation; using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs index 4829f646f8..b24d8bfa86 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs @@ -6,13 +6,9 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using NSwag.Generation.Processors.Contexts; using Microsoft.AspNetCore.Authorization; using NSwag.Generation.AspNetCore; -using NJsonSchema.Infrastructure; using Namotion.Reflection; namespace NSwag.Generation.Processors.Security diff --git a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs index 82bef45442..6cae7bb802 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs @@ -6,12 +6,13 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- +#pragma warning disable IDE0005 + using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Controllers; using Namotion.Reflection; using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; -using System.Linq; using NJsonSchema.Generation; namespace NSwag.Generation.AspNetCore.Processors diff --git a/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs index 42c62ad2a8..036530951d 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text.RegularExpressions; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs index 597cadd525..258b41f65d 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs @@ -6,9 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Globalization; -using System.Linq; using System.Reflection; using Namotion.Reflection; using NJsonSchema; diff --git a/src/NSwag.Generation.Tests/OpenApiDocumentGeneratorTests.cs b/src/NSwag.Generation.Tests/OpenApiDocumentGeneratorTests.cs index 022384d349..4c83b7999d 100644 --- a/src/NSwag.Generation.Tests/OpenApiDocumentGeneratorTests.cs +++ b/src/NSwag.Generation.Tests/OpenApiDocumentGeneratorTests.cs @@ -1,5 +1,4 @@ -using System.Linq; -using Namotion.Reflection; +using Namotion.Reflection; using NJsonSchema; using NJsonSchema.Generation; using NJsonSchema.NewtonsoftJson.Generation; diff --git a/src/NSwag.Generation.Tests/Processors/OperationSummaryAndDescriptionProcessorTests.cs b/src/NSwag.Generation.Tests/Processors/OperationSummaryAndDescriptionProcessorTests.cs index 7db1f34acd..434e5fdec6 100644 --- a/src/NSwag.Generation.Tests/Processors/OperationSummaryAndDescriptionProcessorTests.cs +++ b/src/NSwag.Generation.Tests/Processors/OperationSummaryAndDescriptionProcessorTests.cs @@ -1,7 +1,5 @@ -using System; -using System.ComponentModel; +using System.ComponentModel; using System.Reflection; -using NJsonSchema.Generation; using NJsonSchema.NewtonsoftJson.Generation; using NSwag.Annotations; using NSwag.Generation.Processors; diff --git a/src/NSwag.Generation.Tests/Processors/OperationTagsProcessorTests.cs b/src/NSwag.Generation.Tests/Processors/OperationTagsProcessorTests.cs index c16ecfbf3b..d3768d493a 100644 --- a/src/NSwag.Generation.Tests/Processors/OperationTagsProcessorTests.cs +++ b/src/NSwag.Generation.Tests/Processors/OperationTagsProcessorTests.cs @@ -1,6 +1,4 @@ -using System; -using System.Reflection; -using NJsonSchema.Generation; +using System.Reflection; using NJsonSchema.NewtonsoftJson.Generation; using NSwag.Annotations; using NSwag.Generation.Processors; diff --git a/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs b/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs index d15e374ccb..50baecf788 100644 --- a/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs +++ b/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Linq; using System.Reflection; namespace NSwag.Generation.WebApi.Infrastructure diff --git a/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs b/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs index 6e7fe6b2db..c46213fdbd 100644 --- a/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs +++ b/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Linq; using System.Reflection; namespace NSwag.Generation.WebApi.Infrastructure diff --git a/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs index 10788265fc..3dbab68e06 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs @@ -6,10 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; using System.Reflection; -using System.Threading.Tasks; -using System.Linq; using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs index 7643061f29..aa8f5a0e37 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs @@ -6,12 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text.RegularExpressions; -using System.Threading; using Namotion.Reflection; using NJsonSchema; using NJsonSchema.Generation; diff --git a/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs index 17e75dca53..a1133f1218 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Linq; using System.Reflection; using Namotion.Reflection; using NSwag.Generation.Processors; diff --git a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs index d65346fa02..8a14587653 100644 --- a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs @@ -6,12 +6,8 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Threading.Tasks; using Namotion.Reflection; using NJsonSchema; using NSwag.Generation.Processors; diff --git a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs index a451b26600..725c68bc27 100644 --- a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using NJsonSchema.Generation; using NSwag.Generation.Processors; using NSwag.Generation.WebApi.Processors; diff --git a/src/NSwag.Generation/Collections/CollectionExtensions.cs b/src/NSwag.Generation/Collections/CollectionExtensions.cs index 62ae745105..27047211b6 100644 --- a/src/NSwag.Generation/Collections/CollectionExtensions.cs +++ b/src/NSwag.Generation/Collections/CollectionExtensions.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace NSwag.Generation.Collections +namespace NSwag.Generation.Collections { internal static class CollectionExtensions { diff --git a/src/NSwag.Generation/GenericResultWrapperTypes.cs b/src/NSwag.Generation/GenericResultWrapperTypes.cs index 8207e3d11e..33eaccf27b 100644 --- a/src/NSwag.Generation/GenericResultWrapperTypes.cs +++ b/src/NSwag.Generation/GenericResultWrapperTypes.cs @@ -1,5 +1,4 @@ -using System; -namespace NSwag.Generation +namespace NSwag.Generation { internal static class GenericResultWrapperTypes { diff --git a/src/NSwag.Generation/IOpenApiDocumentGenerator.cs b/src/NSwag.Generation/IOpenApiDocumentGenerator.cs index f0f75abcfc..ad17a61286 100644 --- a/src/NSwag.Generation/IOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation/IOpenApiDocumentGenerator.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Threading.Tasks; - namespace NSwag.Generation { /// The interface. diff --git a/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs index 94fabeb217..64eaee735d 100644 --- a/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs @@ -13,7 +13,6 @@ using NSwag.Generation.Processors; using NSwag.Generation.Processors.Collections; using NSwag.Generation.Processors.Contexts; -using System; namespace NSwag.Generation { diff --git a/src/NSwag.Generation/OpenApiSchemaGenerator.cs b/src/NSwag.Generation/OpenApiSchemaGenerator.cs index 0c1ab63e7f..bd97c2f18b 100644 --- a/src/NSwag.Generation/OpenApiSchemaGenerator.cs +++ b/src/NSwag.Generation/OpenApiSchemaGenerator.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using Namotion.Reflection; using NJsonSchema; using NJsonSchema.Generation; diff --git a/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs b/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs index 4c4984b14e..aed3ba439e 100644 --- a/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs +++ b/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; using NSwag.Generation.Processors.Contexts; namespace NSwag.Generation.Processors diff --git a/src/NSwag.Generation/Processors/ApiVersionProcessor.cs b/src/NSwag.Generation/Processors/ApiVersionProcessor.cs index af6af4e459..b08ca276b1 100644 --- a/src/NSwag.Generation/Processors/ApiVersionProcessor.cs +++ b/src/NSwag.Generation/Processors/ApiVersionProcessor.cs @@ -7,8 +7,6 @@ //----------------------------------------------------------------------- using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Namotion.Reflection; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs b/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs index c9a09e340b..04084712b8 100644 --- a/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs +++ b/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using System.Collections.ObjectModel; -using System.Linq; namespace NSwag.Generation.Processors.Collections { diff --git a/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs b/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs index 1eec9dc36b..877fb80713 100644 --- a/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs +++ b/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs @@ -7,7 +7,6 @@ //----------------------------------------------------------------------- using System.Collections.ObjectModel; -using System.Linq; namespace NSwag.Generation.Processors.Collections { diff --git a/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs b/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs index 5220941ca5..41dbbd8a65 100644 --- a/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs +++ b/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using NJsonSchema.Generation; namespace NSwag.Generation.Processors.Contexts diff --git a/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs b/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs index 5254d51eae..a0b81f8f08 100644 --- a/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs +++ b/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Reflection; using NJsonSchema.Generation; diff --git a/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs b/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs index 3759998086..f4248978bb 100644 --- a/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs +++ b/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Namotion.Reflection; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs b/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs index a3c57724d9..20bdf6bf85 100644 --- a/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs +++ b/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using Namotion.Reflection; using NSwag.Generation.Collections; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation/Processors/IDocumentProcessor.cs b/src/NSwag.Generation/Processors/IDocumentProcessor.cs index 7e15d9e4d8..04cd97e401 100644 --- a/src/NSwag.Generation/Processors/IDocumentProcessor.cs +++ b/src/NSwag.Generation/Processors/IDocumentProcessor.cs @@ -6,7 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Threading.Tasks; using NSwag.Generation.Processors.Contexts; namespace NSwag.Generation.Processors diff --git a/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs b/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs index 2357dcd4e7..5b3b6862c4 100644 --- a/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs @@ -6,10 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Threading.Tasks; using Namotion.Reflection; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation/Processors/OperationProcessor.cs b/src/NSwag.Generation/Processors/OperationProcessor.cs index c5d08b24e3..fe65a91190 100644 --- a/src/NSwag.Generation/Processors/OperationProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationProcessor.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Threading.Tasks; using NSwag.Generation.Processors.Contexts; namespace NSwag.Generation.Processors diff --git a/src/NSwag.Generation/Processors/OperationResponseDescription.cs b/src/NSwag.Generation/Processors/OperationResponseDescription.cs index 03acdc03ae..fca2eb31a0 100644 --- a/src/NSwag.Generation/Processors/OperationResponseDescription.cs +++ b/src/NSwag.Generation/Processors/OperationResponseDescription.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; - namespace NSwag.Generation.Processors { /// Describes an operation response. diff --git a/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs b/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs index aec0b38db9..d9d8a266e0 100644 --- a/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs +++ b/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs @@ -6,11 +6,7 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Threading.Tasks; using System.Xml.Linq; using Namotion.Reflection; using NJsonSchema; diff --git a/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs b/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs index 443ce35685..cae8f1026f 100644 --- a/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs @@ -6,9 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Namotion.Reflection; using NJsonSchema.Generation; diff --git a/src/NSwag.Generation/Processors/OperationTagsProcessor.cs b/src/NSwag.Generation/Processors/OperationTagsProcessor.cs index 314210672d..c713cb8feb 100644 --- a/src/NSwag.Generation/Processors/OperationTagsProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationTagsProcessor.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Namotion.Reflection; using NJsonSchema.Generation; diff --git a/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs b/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs index f3a15ebe4c..81d03c791a 100644 --- a/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs +++ b/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System.Collections.Generic; -using System.Linq; using System.Reflection; using NSwag.Generation.Processors.Contexts; diff --git a/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs b/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs index cbb8c36de1..a705b101be 100644 --- a/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs +++ b/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs @@ -6,8 +6,6 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using NSwag.Generation.Processors.Contexts;