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

Validate sub-elements #11

Open
brasilikum opened this issue May 15, 2015 · 6 comments
Open

Validate sub-elements #11

brasilikum opened this issue May 15, 2015 · 6 comments

Comments

@brasilikum
Copy link

Supposed I want to validate a sub-element like:

{address:
  {street: "Millerstreet"}
}

My check

this.checkBody('address.street').notEmpty()

does not seem to work.
Is it even possible to validate sub-elements with koa-validate?
Or have I simply missed something?

@brasilikum
Copy link
Author

OK, pending pull request would resolve the issue

@brasilikum
Copy link
Author

For now I declare the dependency

"koa-validate": "dehbmarques/koa-validate#feat"

in my package.js. I hope to switch back to this module as soon as it is merged.

Works like a charm, by the way!

@paambaati
Copy link

@brasilikum Good job, waiting for the merge!

@eisneim

There are dozens of us - DOZENS

@whatyoubendoing
Copy link

+1

1 similar comment
@antoinegomez
Copy link

+1

@hyzhak
Copy link

hyzhak commented Mar 6, 2016

👍 Mast have. Is @RocksonZeta there any changes?

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

No branches or pull requests

5 participants