Values of additionalProperties not transformed #59616
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-openapi
Is there an existing issue for this?
Describe the bug
When an endpoint returns a type containing a
Dictionary
containing another type, the schema of this last type is not processed by schema transformers (see the missing"a": "b"
inBar2
below, causing a new schema to be created).My guess is that
additionalProperties
should be processed somewhere here:aspnetcore/src/OpenApi/src/Services/Schemas/OpenApiSchemaService.cs
Lines 172 to 215 in a6ce940
Expected Behavior
I expected to see
Steps To Reproduce
Add a schema transformer like so:
And add an endpoint that returns a type (
Foo
) which contains a dictionary with another type (Bar
).Exceptions (if any)
No response
.NET Version
9.0.200-preview.0.24575.35
Anything else?
No response
The text was updated successfully, but these errors were encountered: