[release/9.0] Harden schema reference transformer for relative references by captainsafia · Pull Request #59779 · dotnet/aspnetcore (original) (raw)

Description

This PR resolves a set of issues that have been reported with schema reference resolution in the OpenAPI implementation. The crux of the issue deals with the way the underlying System.Text.Json generates relative references for schemas that include recursion or duplication.

Fixes #59677
Fixes #58968
Fixes #59427

Customer Impact

Resolves an issue with re-entrant schemas where no workarounds currently exist.

Regression?

Risk

Low risk because:

Verification

Packaging changes reviewed?