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
exportconstemployeeSchema={errorMessage: {uniqueItemProperties: 'What’s going on?',},items: {properties: {firstName: {errorMessage: {type: 'required; and must be a string'},type: 'string',},lastName: {errorMessage: {type: 'required; and must be a string'},type: 'string',},email: {format: 'email',type: 'string',},},required: ['email','firstName','lastName',],type: 'object',},type: 'array',uniqueItemProperties: ['email'],};
I have also the same problem. @epoberezkin : Is there anyway to identify the problematic duplicated: email / id / parameter? It would be great to identify the problem in stead of searching in a whole file for which one was duplicated.
When using alongside
ajv-keywords
anduniqueItemProperties
, how do I get theinstancePath
of the erroneous record?My code:
… and my schema:
And when running against the following data:
… I get the following errors reported:
The text was updated successfully, but these errors were encountered: