Share via


OpenApiOperationTransformerContext Class

Definition

Represents the context in which an OpenAPI operation transformer is executed.

public sealed class OpenApiOperationTransformerContext
type OpenApiOperationTransformerContext = class
Public NotInheritable Class OpenApiOperationTransformerContext
Inheritance
OpenApiOperationTransformerContext

Constructors

OpenApiOperationTransformerContext()

Properties

ApplicationServices

Gets the application services associated with the current document the target operation is in.

Description

Gets the API description associated with target operation.

Document

Gets the OpenAPI document the current endpoint belongs to.

DocumentName

Gets the name of the associated OpenAPI document.

Methods

GetOrCreateSchemaAsync(Type, ApiParameterDescription, CancellationToken)

Gets or creates an OpenApiSchema for the specified type. Augments the schema with any IOpenApiSchemaTransformers that are registered on the document. If parameterDescription is not null, the schema will be augmented with the ApiParameterDescription information.

Applies to