Minor issue:
What steps will reproduce the problem?
1. Validate an instance document containing the property:
"width" : "10A%"
using a schema schema containing the definition:
"width" : {"type":["number",{"type":"string","pattern":"\\d+%"}]}
2. Correctly fails (this was fixed in jsonschema_b3.js) but only reports
failure to match last union-type-def
What is the expected output? What do you see instead?
Python validator outputs...
value '10A%' for field 'width' is not of type ['number', {'pattern':
'\\d+%', 'type': 'string'}]
Javascript validator outputs...
Validation error for: width message: does not match the regex pattern \d+%
Both messages are correct, the python message is a bit 'more correct'
What version of the product are you using? On what operating system?
jsonschems_b2.js
Please provide any additional information below.
Original issue reported on code.google.com by steven.h...@gmail.com on 22 Apr 2009 at 8:59
Original issue reported on code.google.com by
steven.h...@gmail.com
on 22 Apr 2009 at 8:59