work around issue 1089
This commit is contained in:
parent
28dc42d8d3
commit
167efb4fa0
Binary file not shown.
@ -2293,7 +2293,7 @@ TEST(SchemaValidator, ContinueOnErrors) {
|
||||
VALIDATE(s, "{\"version\": 1.0, \"address\": {\"number\": 24, \"street1\": \"The Woodlands\", \"street3\": \"Ham\", \"city\": \"Romsey\", \"area\": \"Kent\", \"country\": \"UK\", \"postcode\": \"SO51 0GP\"}, \"phones\": [\"0111-222333\", \"0777-666888\"], \"names\": [\"Fred\", \"Bloggs\"]}", true);
|
||||
INVALIDATE_(s, "{\"version\": 1.01, \"address\": {\"number\": 0, \"street2\": false, \"street3\": \"Ham\", \"city\": \"RomseyTownFC\", \"area\": \"BC\", \"country\": \"USA\", \"postcode\": \"999ABC\"}, \"phones\": [], \"planet\": \"Earth\", \"extra\": {\"S_xxx\": 123}}", "#", "errors", "#",
|
||||
"{ \"multipleOf\": {"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"#/definitions/decimal_type\", \"expected\": 0.1, \"actual\": 1.01"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"#/definitions/decimal_type\", \"expected\": 1.0, \"actual\": 1.01"
|
||||
" },"
|
||||
" \"minimum\": {"
|
||||
" \"errorCode\": 5, \"instanceRef\": \"#/address/number\", \"schemaRef\": \"#/definitions/positiveInt_type\", \"expected\": 0, \"actual\": 0, \"exclusiveMinimum\": true"
|
||||
@ -2390,7 +2390,7 @@ TEST(SchemaValidator, ContinueOnErrors_OneOf) {
|
||||
"{ \"oneOf\": {"
|
||||
" \"errors\": [{"
|
||||
" \"multipleOf\": {"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 0.1, \"actual\": 1.01"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 1.0, \"actual\": 1.01"
|
||||
" }"
|
||||
" }],"
|
||||
" \"errorCode\": 21, \"instanceRef\": \"#\", \"schemaRef\": \"#\""
|
||||
@ -2416,7 +2416,7 @@ TEST(SchemaValidator, ContinueOnErrors_AllOf) {
|
||||
"{ \"allOf\": {"
|
||||
" \"errors\": [{"
|
||||
" \"multipleOf\": {"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 0.1, \"actual\": 1.01"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 1.0, \"actual\": 1.01"
|
||||
" }"
|
||||
" }],"
|
||||
" \"errorCode\": 23, \"instanceRef\": \"#\", \"schemaRef\": \"#\""
|
||||
@ -2442,7 +2442,7 @@ TEST(SchemaValidator, ContinueOnErrors_AnyOf) {
|
||||
"{ \"anyOf\": {"
|
||||
" \"errors\": [{"
|
||||
" \"multipleOf\": {"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 0.1, \"actual\": 1.01"
|
||||
" \"errorCode\": 1, \"instanceRef\": \"#/version\", \"schemaRef\": \"http://localhost:1234/address.json#/definitions/decimal_type\", \"expected\": 1.0, \"actual\": 1.01"
|
||||
" }"
|
||||
" }],"
|
||||
" \"errorCode\": 24, \"instanceRef\": \"#\", \"schemaRef\": \"#\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user