Skip to content

fix: discriminator property validation fails any/allOf cases when it …

7def73d
Select commit
Loading
Failed to load commit list.
Merged

fix: discriminator property validation fails any/allOf cases when it shouldn't #2687

fix: discriminator property validation fails any/allOf cases when it …
7def73d
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Jan 19, 2026 in 3s

1 new alert

New alerts in code changed by this pull request

  • 1 note

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 94 in src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs

See this annotation in the file changed.

Code scanning / CodeQL

Missed ternary opportunity Note

Both branches of this 'if' statement return - consider using '?' to express intent better.