Skip to content

Conversation

@RomanHotsiy
Copy link
Member

What/Why/How?

When specific child schema is mentioned in anyOf or oneOf most likely it is meant to be the specific instance and not be discriminated.

Reference

Fixes #2133

Testing

Added a test.

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@RomanHotsiy RomanHotsiy requested a review from a team as a code owner September 6, 2022 03:45
@RomanHotsiy RomanHotsiy requested review from AlexVarchuk and removed request for a team September 6, 2022 03:45
@RomanHotsiy RomanHotsiy force-pushed the fix-direct-disriminator-in-anyof branch from 6b1c56b to d0c110e Compare September 6, 2022 03:48
@RomanHotsiy RomanHotsiy force-pushed the fix-direct-disriminator-in-anyof branch from d0c110e to 6c10de6 Compare September 6, 2022 03:49
@AlexVarchuk AlexVarchuk merged commit 6ac1e1e into master Sep 6, 2022
@AlexVarchuk AlexVarchuk deleted the fix-direct-disriminator-in-anyof branch September 6, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Another circular crash caused by discriminatos

3 participants