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
I am getting an unexpected error. I am expecting the wrong type for the value of meta.domain. I am passing an object when it should expect a string in the array. However, it appears not to be utilizing the $ref's at all. What am I doing wrong?
I am using
var allSchemasValid = validator.validateSchema(schemas); // schemas defined below but in right spot in my code.
var valid = validator.validate(data, schemas[5]);
I am getting an unexpected error. I am expecting the wrong type for the value of meta.domain. I am passing an object when it should expect a string in the array. However, it appears not to be utilizing the $ref's at all. What am I doing wrong?
I am using
As in the example however,
Data:
{meta: {domain: [{id: "circusliving.ca"}]}, name: {en: "ddd"}, description: {en: "dddx"}}
Data Validation Error:
Schema Array:
The text was updated successfully, but these errors were encountered: