Incorrect validation for typed array with uniqueItems options
Closed this issue · 0 comments
zobzn commented
example
const validator = convertToYup({
type: 'object',
properties: {
arr: {
type: 'array',
uniqueItems: true, // this is ignored
items: {
type: 'string'
}
}
}
});
validator.isValidSync({ arr: ["a", "a"] }); // gives true instead of false