Baggz / Amanda

JSON Schema validator
https://github.com/Baggz/Amanda
MIT License
144 stars 36 forks source link

fix of : TypeError: Object [object Object] has no method 'addError' #48

Closed tu1ly closed 11 years ago

tu1ly commented 11 years ago

fix of : TypeError: Object [object Object] has no method 'addError' if format requires more than one type fe. "format": "alphanumeric" -> [string,number] -> produces error

data: { "a": false} schema: { "type": "object", "properties": { "a": { "format": "alphanumeric" }, } }

Baggz commented 11 years ago

@tu1ly Merged. Thanks!