[release/9.0-staging] Fix transformer handling of boolean schemas in JsonSchemaExporter. by github-actions[bot] · Pull Request #109975 · dotnet/runtime
Backport of #109954 to release/9.0-staging
/cc @eiriktsarpalis
Customer Impact
- Customer reported
- Found internally
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
- Yes
- No
Testing
Added unit testing for the impacted scenario.
Risk
Low. Makes a small and targeted change to product code.