-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Type[] | Null" produces incorrect rules #118
Comments
It looks like the fix is to remove
But it was smart enough to discard the |
Another test case:
produces:
|
I experienced this today. Commenting to follow the issue. |
Also having this issue, any progress on allowing Map | Null? |
I got the same issue today. Is there any work around for this? |
Fix types for Array, Map, and Null (and their unions) - issue #118.
The following Bolt rules:
produce the following rules json:
Notice the rules for
B
. It correctly produces the map rule ensuring that all wildcarded children are numbers, but it also produces a rule forB
itself, validation thatnewData.val() == null
. This precludes me from being able to write anything at/path/B
!I think the desired behavior would be, when encountered with an
Type[] | Null
, it would not produce any validation at the level ofType
.The text was updated successfully, but these errors were encountered: