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
[ 'test', 'test1' ]
{ test: [ 'test', 'test2' ], test2: [ 'test', 'test3' ] }
{ [DataTypeError: object value is not allowed for test2]
name: 'DataTypeError',
message: 'object value is not allowed for test2',
extra:
{ schema: { types: [Object] },
baseSchema: { types: [Object] },
newData: { test: [Object], test2: 'dsfds' },
data: undefined } }
{ [DataTypeError: object value is not allowed for test2]
name: 'DataTypeError',
message: 'object value is not allowed for test2',
extra:
{ schema: { types: [Object] },
baseSchema: { types: [Object] },
newData: { test: [Object], test2: [Object] },
data: undefined } }
The error message should something like the value given for ____ does not match any of the specified types and should include as extra data the errors that were thrown by each type failure.
The text was updated successfully, but these errors were encountered:
The
DataTypeError
thrown when the data is found not to match any of the allowed types doesn't make any sense. Given the test filethe output is
The error message should something like
the value given for ____ does not match any of the specified types
and should include as extra data the errors that were thrown by each type failure.The text was updated successfully, but these errors were encountered: