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

JSON Schema With AdditionalProperties=false #28

Closed
beeva-pablovaliente opened this issue Mar 8, 2016 · 3 comments
Closed

JSON Schema With AdditionalProperties=false #28

beeva-pablovaliente opened this issue Mar 8, 2016 · 3 comments

Comments

@beeva-pablovaliente
Copy link

Hi all,

When we are trying to validate a JSON Body against a JSON Schema that has set the additionalProperties to false, we are founding that the Schema.validate() function just return the first parameter that it is not permitted. We can see that behavior in the org.everit.json.schema.ObjectSchema class at line 279. (Version 1.1.1)

We have seen that there is a commit (

.map(unneeded -> String.format("extraneous key [%s] is not permitted", unneeded))
) that resolves this behavior.

When will be this new version available to download from Maven repository?

Thanks in advance.

@erosb
Copy link
Contributor

erosb commented Mar 9, 2016

Hi!

I planned the next version to be released with "format" keyword support. I started working on it in in my own fork but in the recent weeks I didn't have time to work on it. So maybe it will be ready in a month, but this is just an estimate.

@beeva-pablovaliente
Copy link
Author

Ok, thanks for your work @erosb

Regards!

@erosb
Copy link
Contributor

erosb commented Mar 16, 2016

@beeva-pablovaliente version 1.2.0 has been released yesterday, it contains the additionalProperties bugfix.

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

2 participants