OpenAPI schema transformers not working correctly for types #56899
Labels
area-web-frameworks
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
feature-openapi
Milestone
There seems to be an issue with the new OpenAPI schema transformers with regards to top-level schemas for object types using the latest bits from main for preview 7.
I've pushed the code up here if you want to take a look: martincostello/api@12237af
It seems like when I get the first call into my transformer, which is the schema for a the full containing type
TimeResponse
, instead of getting the type info for that, I instead get the property info for the first propertyuniversalFull
which is astring
. This is then returned 5 calls later as the schema for that property itself.This then leads me to incorrectly assign the summary for the last property in the schema for the object as the summary for the schema object itself.
Feels like there's a bug and the context for the top-level schema objects is incorrect.
This is the
TimeResponse
schema I get from that commit:Originally posted by @martincostello in #56318 (comment)
The text was updated successfully, but these errors were encountered: