Skip to content

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

a8fb81c
Select commit
Loading
Failed to load commit list.
Merged

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

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

1 configuration not found

Warning: Code scanning may not have found all the alerts introduced by this pull request, because 1 configuration present on refs/heads/main was not found:

API upload

  • ❓  <default>

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.