You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v2: Handle relative references in OpenApiSchemaReference type #2062
The OpenApiSchemaReference type included in this package provides support for resolving schema references to the top-level components.schemas object. The object doesn't play nice if the reference is a relative reference to a property in a recursive schema.
The serializer seems to detect these relative references correctly and serialize the correct references. It would be great if these resolutions also worked in the object model, particularly for users taking advantage of consuming APIs' in ASP.NET Core like OpenAPI schema transformers.
While working on the proxy design pattern fix, I came to the same conclusion! #2111 (comment)
The good news is that with the work I've done, it should now be a single place fix + providing a recursion method to resolve the actual schema when necessary.
@darrelmiller will follow up with @baywet to see if we can backport these fixes to 1.6.x
To answer that part: not without major rework and breaking changes. Which makes the cost prohibitive. So customers who want a great support for all reference scenarios will have to upgrade to 2.X.
As an update, we have the spec mostly built (I need to review it to see if some gaps are still present), and we should be able to proceed with implementation soonish.
Activity
baywet commentedon Jan 31, 2025
While working on the proxy design pattern fix, I came to the same conclusion!
#2111 (comment)
The good news is that with the work I've done, it should now be a single place fix + providing a recursion method to resolve the actual schema when necessary.
RachitMalik12 commentedon Feb 26, 2025
Spec is being worked on. Waiting on this before beginning implementation.
RachitMalik12 commentedon Mar 17, 2025
Darrel (@darrelmiller) will follow up with Vincent Biret (@baywet) to see if we can backport these fixes to 1.6.x
RachitMalik12 commentedon May 7, 2025
https://github.com/MicrosoftDocs/openapi-docs/pull/145/files
baywet commentedon May 13, 2025
To answer that part: not without major rework and breaking changes. Which makes the cost prohibitive. So customers who want a great support for all reference scenarios will have to upgrade to 2.X.
As an update, we have the spec mostly built (I need to review it to see if some gaps are still present), and we should be able to proceed with implementation soonish.