json-schema-validator
json-schema-validator copied to clipboard
A wrong check if root is $ref
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.
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 https://github.com/zyga/json-schema-validator/issues/13.