dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.42k stars 4.76k forks source link

[release/9.0-staging] Fix transformer handling of boolean schemas in JsonSchemaExporter. #109975

Open github-actions[bot] opened 2 days ago

github-actions[bot] commented 2 days ago

Backport of #109954 to release/9.0-staging

/cc @eiriktsarpalis

Customer Impact

Reported by an external customer in #109868. Fixes a bug in JsonSchemaExporter that occurs when users apply schema transformers on types with custom converters. It has the potential to produce incorrect schemas under certain circumstances.

Regression

Testing

Added unit testing for the impacted scenario.

Risk

Low. Makes a small and targeted change to product code.

dotnet-policy-service[bot] commented 2 days ago

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis See info in area-owners.md if you want to be subscribed.