Skip to content
New issue

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

changeset.validate() does not validate nested keys #478

Closed
basz opened this issue May 16, 2020 · 0 comments · Fixed by adopted-ember-addons/validated-changeset#42 or #479
Closed

Comments

@basz
Copy link
Contributor

basz commented May 16, 2020

Hi, seem to have found an issue (v3)

Calling changeset.validate does not validate nested keys. So given a validationMap with;

{
  'key1': [validations],
  'key2': {
    'nested1': [validations],
  }
}

and then calling changeset.validate() only the 'key1' validations are run...

Not sure if that is intended though... (the test '#validate/nested validates nested fields immediately' specifically calls the nested key)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant