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
OpenApiDocumentThe document.
operationDescription
OpenApiOperationDescriptionThe operation description.
controllerType
TypeType of the controller.
methodInfo
MethodInfoThe method information.
documentGenerator
OpenApiDocumentGeneratorThe OpenAPI generator.
schemaResolver
JsonSchemaResolverThe schema resolver.
settings
OpenApiDocumentGeneratorSettingsThe 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
MethodInfo
Gets or sets the method information.
public MethodInfo MethodInfo { get; }
Property Value
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; }