IOpenApiDocumentTransformer cannot modify components.Schemas since it's null #58406
Open
1 task done
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-openapi
Needs: Attention 👋
This issue needs the attention of a contributor, typically because the OP has provided an update.
Is there an existing issue for this?
Describe the bug
When running
IOpenApiDocumentTransformer
, it would be logical to have the ability to modify theOpenApiDocument.Components.Schemas
to make any adjustments. TheOpenApiDocument.Components
is null.aspnetcore/src/OpenApi/src/Services/OpenApiDocumentService.cs
Lines 100 to 106 in 049814c
The
await _schemaReferenceTransformer.TransformAsync(document, documentTransformerContext, cancellationToken)
populates theComponents.Schemas
, but that happens after the document transformers are run.Expected Behavior
It should be possible to modify Components.Schemas in the
IOpenApiDocumentTransformer
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
.NET 9 RC2
Anything else?
No response
The text was updated successfully, but these errors were encountered: