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
outerClass:
buildValidations({ innerClasses: [ validator('has-many'), validator('inline', { dependentKeys: ['[email protected]'], validate(value) { ... } }], });
innerClass:
buildValidations({ foo: validator('presence', { presence: true }), bar: validator('presence', { presence: true }), });
inline
has-many
innerClass
Validations fail. outerClass.validations.errors should include 1 error with type === 'inline' and attribute === 'innerClasses'
outerClass.validations.errors
type === 'inline'
attribute === 'innerClasses'
Validations pass
Any one of:
{ lazy: false }
buildValidations
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Steps to Reproduce
outerClass:
innerClass:
inline
andhas-many
validations to fail.innerClass
so all its validations pass, but don't fix theinline
validationExpected results
Validations fail.
outerClass.validations.errors
should include 1 error withtype === 'inline'
andattribute === 'innerClasses'
Actual results
Validations pass
Workarounds
Any one of:
{ lazy: false }
to outerClass'sbuildValidations
call.buildValidations
call so thehas-many
validation is lastThe text was updated successfully, but these errors were encountered: