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

Code example for Rule function seems to be incorrect #20

Closed
ghost opened this issue Sep 10, 2015 · 3 comments
Closed

Code example for Rule function seems to be incorrect #20

ghost opened this issue Sep 10, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2015

Hi,

May I checked if schema.error is correct? It appears to be undefined and when I checked lib/schema.js I see schema.ValidationError exposed but not schema.error

var schema = require('async-validate');
var ValidationError = schema.error;
var descriptor = {
.....
@tmpfs
Copy link
Owner

tmpfs commented Sep 11, 2015

My bad this changed in 0.2.x I'll check the readme again, thanks.

@ghost
Copy link
Author

ghost commented Sep 11, 2015

I can do a PR for it if you want

@tmpfs
Copy link
Owner

tmpfs commented Sep 11, 2015

PR welcome, thanks.

ghost pushed a commit to bochap-opensource/async-validate that referenced this issue Sep 11, 2015
Update documentation for ValidationError constructor for 0.2.x release

Fixes tmpfs#20
@tmpfs tmpfs closed this as completed in #21 Sep 11, 2015
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

1 participant