You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how it would do that? The issue in Dart is not deserialising into the different known types, a code generator can do that fairly easily, it is more than a function cannot return more than one distinct type - so we couldn't have a function return Fish | CarBrake | Number | Boolean - it would simply have to return an object.
oneOf is used to support all different types of situations, could you give some YAML and indicate how these 3.0 concepts would be surfaced? Any useful ideas I am happy to fold in!
Describe the current situation
As of today
oneOf
is supported by using optional parametersExpected behavior
OneOf could be handled by the new dart 3.0 patterns or sealed class ?
Versions
7.2
Additional context
Patterns
Sealed class
The text was updated successfully, but these errors were encountered: