IOpenApiSchemaTransformer.TransformAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transforms the specified OpenAPI schema.
public System.Threading.Tasks.Task TransformAsync (Microsoft.OpenApi.Models.OpenApiSchema schema, Microsoft.AspNetCore.OpenApi.OpenApiSchemaTransformerContext context, System.Threading.CancellationToken cancellationToken);
abstract member TransformAsync : Microsoft.OpenApi.Models.OpenApiSchema * Microsoft.AspNetCore.OpenApi.OpenApiSchemaTransformerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TransformAsync (schema As OpenApiSchema, context As OpenApiSchemaTransformerContext, cancellationToken As CancellationToken) As Task
Parameters
- schema
- OpenApiSchema
The OpenApiSchema to modify.
- context
- OpenApiSchemaTransformerContext
The OpenApiSchemaTransformerContext associated with the .
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
The task object representing the asynchronous operation.