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

Objects in a "array" dont seem to get validated #6

Closed
grub2 opened this issue Apr 10, 2012 · 0 comments
Closed

Objects in a "array" dont seem to get validated #6

grub2 opened this issue Apr 10, 2012 · 0 comments

Comments

@grub2
Copy link

grub2 commented Apr 10, 2012

With 0.4.1, type validation seems to not happen for objects that are within an 'array' type.
Example:

JSON Schema:

{
"properties": {
"age":{
"type":"integer"
"required":true
}

}
}

validates the JSON instance for numeric types
wheras if the same 'age "object was enclosed in an "array" no numeric type validation occurs.
It allows "abc" against "age"

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