Table of Contents

Class OperationProcessorContext

Namespace
NSwag.Generation.Processors.Contexts
Assembly
NSwag.Generation.dll

The IOperationProcessor context.

public class OperationProcessorContext
Inheritance
OperationProcessorContext
Inherited Members

Constructors

OperationProcessorContext(OpenApiDocument, OpenApiOperationDescription, Type, MethodInfo, OpenApiDocumentGenerator, JsonSchemaResolver, OpenApiDocumentGeneratorSettings, IList<OpenApiOperationDescription>)

Initializes a new instance of the OperationProcessorContext class.

public OperationProcessorContext(OpenApiDocument document, OpenApiOperationDescription operationDescription, Type controllerType, MethodInfo methodInfo, OpenApiDocumentGenerator documentGenerator, JsonSchemaResolver schemaResolver, OpenApiDocumentGeneratorSettings settings, IList<OpenApiOperationDescription> allOperationDescriptions)

Parameters

document OpenApiDocument

The document.

operationDescription OpenApiOperationDescription

The operation description.

controllerType Type

Type of the controller.

methodInfo MethodInfo

The method information.

documentGenerator OpenApiDocumentGenerator

The OpenAPI generator.

schemaResolver JsonSchemaResolver

The schema resolver.

settings OpenApiDocumentGeneratorSettings

The settings.

allOperationDescriptions IList<OpenApiOperationDescription>

All operation descriptions.

Properties

AllOperationDescriptions

Gets or sets all operation descriptions.

public IList<OpenApiOperationDescription> AllOperationDescriptions { get; }

Property Value

IList<OpenApiOperationDescription>

ControllerType

Gets the type of the controller.

public Type ControllerType { get; }

Property Value

Type

The type of the controller.

Document

Gets the Swagger document.

public OpenApiDocument Document { get; }

Property Value

OpenApiDocument

DocumentGenerator

Gets or sets the Swagger generator.

public OpenApiDocumentGenerator DocumentGenerator { get; }

Property Value

OpenApiDocumentGenerator

MethodInfo

Gets or sets the method information.

public MethodInfo MethodInfo { get; }

Property Value

MethodInfo

OperationDescription

Gets or sets the operation description.

public OpenApiOperationDescription OperationDescription { get; }

Property Value

OpenApiOperationDescription

Parameters

Gets the ParameterInfo to SwaggerParameter mappings.

public IReadOnlyDictionary<ParameterInfo, OpenApiParameter> Parameters { get; }

Property Value

IReadOnlyDictionary<ParameterInfo, OpenApiParameter>

SchemaGenerator

Gets the schema generator.

public JsonSchemaGenerator SchemaGenerator { get; }

Property Value

JsonSchemaGenerator

SchemaResolver

Gets the schema resolver.

public JsonSchemaResolver SchemaResolver { get; }

Property Value

JsonSchemaResolver

Settings

Gets the settings.

public OpenApiDocumentGeneratorSettings Settings { get; }

Property Value

OpenApiDocumentGeneratorSettings