Share via


OpenApiDocumentTransformerContext Class

Definition

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

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

Constructors

OpenApiDocumentTransformerContext()

Properties

ApplicationServices

Gets the application services associated with current document.

DescriptionGroups

Gets the API description groups associated with current document.

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