netmail-open/wjelement — pull request #8 by JoseGoncalves (2013-05-30 08:20:54+00:00)
Title:  Schema validation against "maximum" and "minimum" can only take place on numbers

Found an issue with schema validation.
Validating this JSON:

{"id": 1, "type_id": null, "name": null}

against this schema:

{
"type":"object",
"properties":{
"id":{"type": "integer", "minimum": 1},
"type_id":{"type": ["integer", "null"], "minimum": 1},
"name":{"type": ["string", "null"], "maxLength": 5},
},
"additionalProperties" : false
}

fails on "type_id", when it shouldn’t.

My fix solves this issue.