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
Hi!
Can you tell me if this is wrong behavior or not?
When I use _validate(obj,schema,{coerce:someFunction}) then I get an (TypeError: Cannot use 'in' operator to search for 'someField' in 1212 at checkObj (.../node_modules/json-schema/lib/validate.js:208:32)).
The schema has:
But in obj instead of 'object' I receive 'string'.
I expect in this situation correct work of validation, but got a broken node.
It seems to me that at line 196 of validate.js we should use else statement as previous route if pass true test. And it is essentially to avoid any checks after errors are taken.
Can you please check my info and take appropriate actions?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hi!
Can you tell me if this is wrong behavior or not?
When I use _validate(obj,schema,{coerce:someFunction}) then I get an
(TypeError: Cannot use 'in' operator to search for 'someField' in 1212 at checkObj (.../node_modules/json-schema/lib/validate.js:208:32))
.The schema has:
But in obj instead of 'object' I receive 'string'.
I expect in this situation correct work of validation, but got a broken node.
It seems to me that at line 196 of validate.js we should use
else
statement as previous routeif
pass true test. And it is essentially to avoid any checks after errors are taken.Can you please check my info and take appropriate actions?
Thank you in advance.
The text was updated successfully, but these errors were encountered: