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

Avoid using this in API #33

Open
korzio opened this issue Jun 18, 2017 · 0 comments
Open

Avoid using this in API #33

korzio opened this issue Jun 18, 2017 · 0 comments
Milestone

Comments

@korzio
Copy link
Owner

korzio commented Jun 18, 2017

For addFormat (?!), setErrorHandler and other functions it is possible to specify methods, which can modify internal state of the validator or templater. That should be avoided by specifying only schema, errors and other variables only be accessible. So,

  • make this inaccessible,
  • make schema, errors (already), data accessible,
  • ...
@korzio korzio added this to the 2.0.1 milestone Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant