Open
Description
Need to be able to validate a single property without causing validation of the entire map.
Given we have a map like
const TestMap = can.Map.extend({
define: {
firstName: {
type: 'string',
validate: {
required: true
}
},
lastName: {
type: 'string',
validate: {
required: true
}
}
}
});
const testMap = new TestMap({});
Then we need to be able to validate a single property like
testMap.validate('firstName');
This behavior would also set errors on the map.
Need to also document how to validate a single property without setting errors. (Using can.validate.once
.)
Metadata
Metadata
Assignees
Labels
No labels