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

A wrong check if root is $ref #13

Open
weerp opened this issue Apr 24, 2015 · 1 comment
Open

A wrong check if root is $ref #13

weerp opened this issue Apr 24, 2015 · 1 comment

Comments

@weerp
Copy link

weerp commented Apr 24, 2015

If schema file is as bellow
{
"$schema": "http://json-schema.org/draft-04/schema",
"definitions": {
"positiveInteger": {
"type": "integer",
"minimum": 0
}
},
"$ref": "#definitions/positiveInteger"
}
and data is -100
the check should return false.

@zyga
Copy link
Owner

zyga commented Apr 24, 2015

Hey!

Thanks for the bug report.

Actually, $ref is not supported. I didn't quite understand how that works
when I wrote the code. I don't have much time to support it now (as I don't
use json in my current project) but if you want to look at fixing that I
would gladly review and merge patches.

Thanks
ZK

2015-04-24 21:19 GMT+02:00 weerp [email protected]:

If schema file is as bellow
{
"$schema": "http://json-schema.org/draft-04/schema",
"definitions": {
"positiveInteger": {
"type": "integer",
"minimum": 0
}
},
"$ref": "#definitions/positiveInteger"
}
and data is -100
the check should return false.


Reply to this email directly or view it on GitHub
#13.

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