Replies: 1 comment 2 replies
-
We actually base ourselves a lot on this rule, that a property can only have one type (besides the Optional, Lazy and null types). For example in the case of empty, a type like this would provide breaking values:
We also depend on the one type rule to build up our validation rules, so again:
That's why we're not going to allow more than one type in the future. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Method
getValueForProperty()
ofEmptyDataResolver
class is thrown Exception in the scenario where property has more than 1 type:I wonder why we don't just remove that Exception and let make the first type as default when calling
empty()
? as I have multiple properties with 2 types so whenever callingempty()
, I have to manually specify the default type for each which is somewhat inconvenient.Beta Was this translation helpful? Give feedback.
All reactions