We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.)
can.validate.once
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Need to be able to validate a single property without causing validation of the entire map.
Given we have a map like
Then we need to be able to validate a single property like
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
.)The text was updated successfully, but these errors were encountered: