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

Update error "has additional properties" to have array with additional properties names #8

Closed
ceoworks opened this issue Dec 17, 2015 · 3 comments

Comments

@ceoworks
Copy link

Suppose we have a schema with such a properties userSchema = {name, surname}
But in he input we receive object that looks like input = {name, surname, login}
When validate accross userSchema, error must contain 'forbiddenProperties' array besides message and property fields.
Example: { message: 'has additional properties', property: 'data', additonalProperties: [ 'login' ] }

Kind Regards

@ebdrup
Copy link
Contributor

ebdrup commented Dec 17, 2015

I completely agree that this should be improved.
That's really a change needed in is-my-json-valid, please create an issue there :-).

@ceoworks
Copy link
Author

Open duplicate on their repo
mafintosh/is-my-json-valid#102

@wtfil
Copy link
Contributor

wtfil commented Feb 11, 2016

fixed with b103f83

@wtfil wtfil closed this as completed Feb 11, 2016
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

3 participants