Triggering execution of Java tests #305
Annotations
32 errors and 1 warning
OpenApiToJsonSchemaTest.secondaryYamlWithOneOf:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L70
JSON schemas MUST match.
Expected: is <{"oneOf":[{"$ref":"#/definitions/typeA"},{"$ref":"#/definitions/typeB"}],"definitions":{"typeA":{"required":["typeAValueA"],"type":"object","properties":{"typeAValueA":{"type":"string"}}},"typeB":{"required":["typeBValueB"],"type":"object","properties":{"typeBValueB":{"type":"number"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"oneOf":[{"$ref":"#/definitions/typeA"},{"$ref":"#/definitions/typeB"}],"definitions":{"typeA":{"required":["typeAValueA"],"type":"object","properties":{"typeAValueA":{"type":"string","types":["string"]}},"types":["object"]},"typeB":{"required":["typeBValueB"],"type":"object","properties":{"typeBValueB":{"type":"number","types":["number"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.testNullableAllOfReference:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L282
JSON schemas MUST match.
Expected: is <{"type":["object","null"],"properties":{"banana":{"type":"integer"},"apple":{"type":"string"}},"definitions":{"Response":{"type":["object","null"],"properties":{"banana":{"type":"integer"},"apple":{"type":"string"}},"additionalProperties":false},"ExtraType":{"type":"object","properties":{"apple":{"type":"string"},"banana":{"type":"integer"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
but: was <{"type":["object","null"],"properties":{"banana":{"type":"integer","types":["integer"]},"apple":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"type":["object","null"],"properties":{"banana":{"type":"integer","types":["integer"]},"apple":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false},"ExtraType":{"type":"object","properties":{"apple":{"type":"string","types":["string"]},"banana":{"type":"integer","types":["integer"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
|
OpenApiToJsonSchemaTest.testRequestInlineSchema:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L261
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"name":{"type":"string"}},"definitions":{"Response":{"type":"object","properties":{"id":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"id":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.testRequestSchema:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L247
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"name":{"type":"string"}},"definitions":{"Request":{"type":"object","properties":{"name":{"type":"string"}}},"Response":{"type":"object","properties":{"id":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Request":{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"]},"Response":{"type":"object","properties":{"id":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.testRequestSchemaIgnoresStatusCode:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L254
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"name":{"type":"string"}},"definitions":{"Request":{"type":"object","properties":{"name":{"type":"string"}}},"Response":{"type":"object","properties":{"id":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Request":{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"]},"Response":{"type":"object","properties":{"id":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.testRequestSchemaWithoutAdditionalProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L268
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"name":{"type":"string"}},"definitions":{"Request":{"type":"object","properties":{"name":{"type":"string"}},"additionalProperties":false},"Response":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
but: was <{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"id":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false},"Request":{"type":"object","properties":{"name":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
|
OpenApiToJsonSchemaTest.testYamlWith400ResponseSchema:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L219
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"hello":{"type":"string"}},"definitions":{"Response":{"type":"object","properties":{"hello":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"hello":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"hello":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.testYamlWith400ResposneSchemaAndAdditionalPropertiesFalse:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L226
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"hello":{"type":"string"}},"definitions":{"Response":{"type":"object","properties":{"hello":{"type":"string"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
but: was <{"type":"object","properties":{"hello":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"hello":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
|
OpenApiToJsonSchemaTest.yamlWithAllOf:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L46
JSON schemas MUST match.
Expected: is <{"allOf":[{"$ref":"#/definitions/Root"},{"type":"object","properties":{"three":{"type":"boolean"}}}],"definitions":{"Response":{"allOf":[{"$ref":"#/definitions/Root"},{"type":"object","properties":{"three":{"type":"boolean"}}}]},"Root":{"type":"object","properties":{"one":{"type":"integer"},"two":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"allOf":[{"$ref":"#/definitions/Root"},{"type":"object","properties":{"three":{"type":"boolean","types":["boolean"]}},"types":["object"]}],"definitions":{"Response":{"allOf":[{"$ref":"#/definitions/Root"},{"type":"object","properties":{"three":{"type":"boolean","types":["boolean"]}},"types":["object"]}]},"Root":{"type":"object","properties":{"one":{"type":"integer","types":["integer"]},"two":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithAllOfDisallowAdditionalProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L54
JSON schemas MUST match.
Expected: is <{"required":["three","one","two"],"type":"object","properties":{"three":{"type":"boolean"},"one":{"type":"integer"},"two":{"type":"string"}},"definitions":{"Response":{"required":["three","one","two"],"type":"object","properties":{"three":{"type":"boolean"},"one":{"type":"integer"},"two":{"type":"string"}},"additionalProperties":false},"Root":{"required":["one","two"],"type":"object","properties":{"one":{"type":"integer"},"two":{"type":"string"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
but: was <{"required":["three","one","two"],"type":"object","properties":{"three":{"type":"boolean","types":["boolean"]},"one":{"type":"integer","types":["integer"]},"two":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Response":{"required":["three","one","two"],"type":"object","properties":{"three":{"type":"boolean","types":["boolean"]},"one":{"type":"integer","types":["integer"]},"two":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false},"Root":{"required":["one","two"],"type":"object","properties":{"one":{"type":"integer","types":["integer"]},"two":{"type":"string","types":["string"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#","additionalProperties":false}>
|
OpenApiToJsonSchemaTest.yamlWithAnyOf:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L94
JSON schemas MUST match.
Expected: is <{"anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Pear"}],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer"},"flavor":{"type":"string"}}},"Banana":{"type":"object","properties":{"color":{"type":"string"},"size":{"type":"integer"}}},"Pear":{"type":"object","properties":{"ripe":{"type":"boolean"},"organic":{"type":"boolean"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Pear"}],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavor":{"type":"string","types":["string"]}},"types":["object"]},"Banana":{"type":"object","properties":{"color":{"type":"string","types":["string"]},"size":{"type":"integer","types":["integer"]}},"types":["object"]},"Pear":{"type":"object","properties":{"ripe":{"type":"boolean","types":["boolean"]},"organic":{"type":"boolean","types":["boolean"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithAnyOfComposites:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L102
JSON schemas MUST match.
Expected: is <{"type":"object","anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}],"definitions":{"Response":{"type":"object","anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}]},"Apple":{"type":"object","properties":{"seeds":{"type":"integer"},"flavor":{"type":"string"},"price":{"type":"number"}},"additionalProperties":false},"Fruit":{"type":"object","properties":{"price":{"type":"number"}},"additionalProperties":false},"Manzana":{"$ref":"#/definitions/Apple"},"Banana":{"type":"object","properties":{"color":{"type":"string"},"size":{"type":"integer"},"price":{"type":"number"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}],"definitions":{"Response":{"type":"object","anyOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}]},"Apple":{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavor":{"type":"string","types":["string"]},"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false},"Fruit":{"type":"object","properties":{"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false},"Manzana":{"$ref":"#/definitions/Apple"},"Banana":{"type":"object","properties":{"color":{"type":"string","types":["string"]},"size":{"type":"integer","types":["integer"]},"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithAnyOfOnProperty:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L110
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"seeds":{"anyOf":[{"$ref":"#/definitions/option1"},{"$ref":"#/definitions/option2"}]}},"definitions":{"Apple":{"type":"object","properties":{"seeds":{"anyOf":[{"$ref":"#/definitions/option1"},{"$ref":"#/definitions/option2"}]}}},"option1":{"type":"object","properties":{"first":{"type":"string"},"second":{"type":"integer"}}},"option2":{"type":"object","properties":{"first":{"type":"string"},"second":{"type":"boolean"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"seeds":{"anyOf":[{"$ref":"#/definitions/option1"},{"$ref":"#/definitions/option2"}]}},"types":["object"],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"anyOf":[{"$ref":"#/definitions/option1"},{"$ref":"#/definitions/option2"}]}},"types":["object"]},"option1":{"type":"object","properties":{"first":{"type":"string","types":["string"]},"second":{"type":"integer","types":["integer"]}},"types":["object"]},"option2":{"type":"object","properties":{"first":{"type":"string","types":["string"]},"second":{"type":"boolean","types":["boolean"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithArray:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L118
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"seeds":{"type":"integer"},"flavors":{"type":"array","items":{"type":"string"}}},"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer"},"flavors":{"type":"array","items":{"type":"string"}}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavors":{"type":"array","items":{"type":"string","types":["string"]},"types":["array"]}},"types":["object"],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavors":{"type":"array","items":{"type":"string","types":["string"]},"types":["array"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithArrayProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L204
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"colors":{"maxItems":4,"minItems":2,"uniqueItems":true,"type":"array","items":{"type":"string"}}},"definitions":{"Apple":{"type":"object","properties":{"colors":{"maxItems":4,"minItems":2,"uniqueItems":true,"type":"array","items":{"type":"string"}}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"colors":{"maxItems":4,"minItems":2,"uniqueItems":true,"type":"array","items":{"type":"string","types":["string"]},"types":["array"]}},"types":["object"],"definitions":{"Apple":{"type":"object","properties":{"colors":{"maxItems":4,"minItems":2,"uniqueItems":true,"type":"array","items":{"type":"string","types":["string"]},"types":["array"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithIntegerProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L138
JSON schemas MUST match.
Expected: is "{\n \"type\" : \"object\",\n \"properties\" : {\n \"seeds\" : {\n \"multipleOf\" : 2,\n \"type\" : \"integer\"\n },\n \"sizeInclusive\" : {\n \"maximum\" : 3,\n \"minimum\" : 1,\n \"type\" : \"integer\"\n },\n \"sizeExclusive\" : {\n \"maximum\" : 3,\n \"exclusiveMaximum\" : true,\n \"minimum\" : 1,\n \"exclusiveMinimum\" : true,\n \"type\" : \"integer\"\n }\n },\n \"definitions\" : {\n \"Apple\" : {\n \"type\" : \"object\",\n \"properties\" : {\n \"seeds\" : {\n \"multipleOf\" : 2,\n \"type\" : \"integer\"\n },\n \"sizeInclusive\" : {\n \"maximum\" : 3,\n \"minimum\" : 1,\n \"type\" : \"integer\"\n },\n \"sizeExclusive\" : {\n \"maximum\" : 3,\n \"exclusiveMaximum\" : true,\n \"minimum\" : 1,\n \"exclusiveMinimum\" : true,\n \"type\" : \"integer\"\n }\n }\n }\n },\n \"$schema\" : \"http://json-schema.org/draft-04/schema#\"\n}"
but: was "{\n \"type\" : \"object\",\n \"properties\" : {\n \"seeds\" : {\n \"multipleOf\" : 2,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n },\n \"sizeInclusive\" : {\n \"maximum\" : 3,\n \"minimum\" : 1,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n },\n \"sizeExclusive\" : {\n \"maximum\" : 3,\n \"exclusiveMaximum\" : true,\n \"minimum\" : 1,\n \"exclusiveMinimum\" : true,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n }\n },\n \"types\" : [ \"object\" ],\n \"definitions\" : {\n \"Apple\" : {\n \"type\" : \"object\",\n \"properties\" : {\n \"seeds\" : {\n \"multipleOf\" : 2,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n },\n \"sizeInclusive\" : {\n \"maximum\" : 3,\n \"minimum\" : 1,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n },\n \"sizeExclusive\" : {\n \"maximum\" : 3,\n \"exclusiveMaximum\" : true,\n \"minimum\" : 1,\n \"exclusiveMinimum\" : true,\n \"type\" : \"integer\",\n \"types\" : [ \"integer\" ]\n }\n },\n \"types\" : [ \"object\" ]\n }\n },\n \"$schema\" : \"http://json-schema.org/draft-04/schema#\"\n}"
|
OpenApiToJsonSchemaTest.yamlWithNoRefsInPath:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L22
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"integer"},"c":{"type":"array","items":{"type":"boolean"}}},"definitions":{},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"a":{"type":"string","types":["string"]},"b":{"type":"integer","types":["integer"]},"c":{"type":"array","items":{"type":"boolean","types":["boolean"]},"types":["array"]}},"types":["object"],"definitions":{},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithNullableAdditionalProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L212
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"apple":{"type":"object","additionalProperties":{"type":["string","null"]}}},"definitions":{"Response":{"type":"object","properties":{"apple":{"type":"object","additionalProperties":{"type":["string","null"]}}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"apple":{"type":"object","additionalProperties":{"type":["string","null"],"types":["string"]},"types":["object"]}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"apple":{"type":"object","additionalProperties":{"type":["string","null"],"types":["string"]},"types":["object"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithObjectProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L186
JSON schemas MUST match.
Expected: is <{"maxProperties":3,"minProperties":2,"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}},"definitions":{"Apple":{"maxProperties":3,"minProperties":2,"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"maxProperties":3,"minProperties":2,"type":"object","properties":{"name":{"type":"string","types":["string"]},"color":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Apple":{"maxProperties":3,"minProperties":2,"type":"object","properties":{"name":{"type":"string","types":["string"]},"color":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithOneOf:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L62
JSON schemas MUST match.
Expected: is <{"oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Pear"}],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer"},"flavor":{"type":"string"}}},"Banana":{"type":"object","properties":{"color":{"type":"string"},"size":{"type":"integer"}}},"Pear":{"type":"object","properties":{"ripe":{"type":"boolean"},"organic":{"type":"boolean"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Pear"}],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavor":{"type":"string","types":["string"]}},"types":["object"]},"Banana":{"type":"object","properties":{"color":{"type":"string","types":["string"]},"size":{"type":"integer","types":["integer"]}},"types":["object"]},"Pear":{"type":"object","properties":{"ripe":{"type":"boolean","types":["boolean"]},"organic":{"type":"boolean","types":["boolean"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithOneOfComposites:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L86
JSON schemas MUST match.
Expected: is <{"type":"object","oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}],"definitions":{"Response":{"type":"object","oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}]},"Apple":{"type":"object","properties":{"seeds":{"type":"integer"},"flavor":{"type":"string"},"price":{"type":"number"}},"additionalProperties":false},"Fruit":{"type":"object","properties":{"price":{"type":"number"}},"additionalProperties":false},"Manzana":{"$ref":"#/definitions/Apple"},"Banana":{"type":"object","properties":{"color":{"type":"string"},"size":{"type":"integer"},"price":{"type":"number"}},"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}],"definitions":{"Response":{"type":"object","oneOf":[{"$ref":"#/definitions/Apple"},{"$ref":"#/definitions/Banana"},{"$ref":"#/definitions/Manzana"}]},"Apple":{"type":"object","properties":{"seeds":{"type":"integer","types":["integer"]},"flavor":{"type":"string","types":["string"]},"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false},"Fruit":{"type":"object","properties":{"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false},"Manzana":{"$ref":"#/definitions/Apple"},"Banana":{"type":"object","properties":{"color":{"type":"string","types":["string"]},"size":{"type":"integer","types":["integer"]},"price":{"type":"number","types":["number"]}},"types":["object"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithOneOfOnProperty:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L78
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"seeds":{"oneOf":[{"type":"integer"},{"type":"string"}]}},"definitions":{"Apple":{"type":"object","properties":{"seeds":{"oneOf":[{"type":"integer"},{"type":"string"}]}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"seeds":{"oneOf":[{"type":"integer","types":["integer"]},{"type":"string","types":["string"]}]}},"types":["object"],"definitions":{"Apple":{"type":"object","properties":{"seeds":{"oneOf":[{"type":"integer","types":["integer"]},{"type":"string","types":["string"]}]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithRefs:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L38
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"apple":{"$ref":"#/definitions/Apple"}},"definitions":{"Response":{"type":"object","properties":{"apple":{"$ref":"#/definitions/Apple"}}},"Apple":{"type":"string"}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"apple":{"$ref":"#/definitions/Apple"}},"types":["object"],"definitions":{"Response":{"type":"object","properties":{"apple":{"$ref":"#/definitions/Apple"}},"types":["object"]},"Apple":{"type":"string","types":["string"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithRequiredProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L169
JSON schemas MUST match.
Expected: is <{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}},"definitions":{"Apple":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"required":["name"],"type":"object","properties":{"name":{"type":"string","types":["string"]},"color":{"type":"string","types":["string"]}},"types":["object"],"definitions":{"Apple":{"required":["name"],"type":"object","properties":{"name":{"type":"string","types":["string"]},"color":{"type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithSchemaPlusRefInPath:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L30
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"integer"},"c":{"type":"array","items":{"type":"boolean"}},"d":{"$ref":"#/definitions/refType"}},"definitions":{"refType":{"type":"string"}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"a":{"type":"string","types":["string"]},"b":{"type":"integer","types":["integer"]},"c":{"type":"array","items":{"type":"boolean","types":["boolean"]},"types":["array"]},"d":{"$ref":"#/definitions/refType"}},"types":["object"],"definitions":{"refType":{"type":"string","types":["string"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
OpenApiToJsonSchemaTest.yamlWithStringsAndProperties:
NST/src/test/java/com/ebay/openapi/export/jsonschema/OpenApiToJsonSchemaTest.java#L157
JSON schemas MUST match.
Expected: is <{"type":"object","properties":{"name":{"maxLength":10,"minLength":1,"type":"string"},"color":{"type":"string","enum":["red","green"]},"farmer":{"pattern":"^[A-Z]*$","type":"string"}},"definitions":{"Apple":{"type":"object","properties":{"name":{"maxLength":10,"minLength":1,"type":"string"},"color":{"type":"string","enum":["red","green"]},"farmer":{"pattern":"^[A-Z]*$","type":"string"}}}},"$schema":"http://json-schema.org/draft-04/schema#"}>
but: was <{"type":"object","properties":{"name":{"maxLength":10,"minLength":1,"type":"string","types":["string"]},"color":{"type":"string","types":["string"],"enum":["red","green"]},"farmer":{"pattern":"^[A-Z]*$","type":"string","types":["string"]}},"types":["object"],"definitions":{"Apple":{"type":"object","properties":{"name":{"maxLength":10,"minLength":1,"type":"string","types":["string"]},"color":{"type":"string","types":["string"],"enum":["red","green"]},"farmer":{"pattern":"^[A-Z]*$","type":"string","types":["string"]}},"types":["object"]}},"$schema":"http://json-schema.org/draft-04/schema#"}>
|
SchemaValidatorUtilTest.deepNullValue:
NST/src/test/java/com/ebay/nst/schema/validation/support/SchemaValidatorUtilTest.java#L243
Expected: is "Polymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (null) does not match any allowed primitive type (allowed: [\\\"integer\\\"])\",\n \"found\" : \"null\",\n \"expected\" : [ \"integer\" ]\n } ],\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (null) does not match any allowed primitive type (allowed: [\\\"string\\\"])\",\n \"found\" : \"null\",\n \"expected\" : [ \"string\" ]\n } ]\n }\n}\n\n"
but: was "warning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/country\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/DoSomethingResponse\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nPolymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (null) does not match any allowed primitive type (allowed: [\\\"integer\\\"])\",\n \"found\" : \"null\",\n \"expected\" : [ \"integer\" ]\n } ],\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (null) does not match any allowed primitive type (allowed: [\\\"string\\\"])\",\n \"found\" : \"null\",\n \"expected\" : [ \"string\" ]\n } ]\n }\n}\n\n"
|
SchemaValidatorUtilTest.nonPolymorphicAdditionalProperties:
NST/src/test/java/com/ebay/nst/schema/validation/support/SchemaValidatorUtilTest.java#L270
Expected: is "error: object instance has properties which are not allowed by the schema: [\"phoneNumber\"]\n level: \"error\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n instance: {\"pointer\":\"/somethingC/people/0\"}\n domain: \"validation\"\n keyword: \"additionalProperties\"\n unwanted: [\"phoneNumber\"]\n\n\n"
but: was "warning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/country\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/DoSomethingResponse\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nerror: object instance has properties which are not allowed by the schema: [\"phoneNumber\"]\n level: \"error\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n instance: {\"pointer\":\"/somethingC/people/0\"}\n domain: \"validation\"\n keyword: \"additionalProperties\"\n unwanted: [\"phoneNumber\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\n"
|
SchemaValidatorUtilTest.polymorphicDeepAnyOfViolation:
NST/src/test/java/com/ebay/nst/schema/validation/support/SchemaValidatorUtilTest.java#L149
Expected: is "Polymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"integer\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"integer\" ]\n } ],\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"string\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"string\" ]\n } ]\n }\n}\n\n"
but: was "warning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/country\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/DoSomethingResponse\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nPolymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"integer\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"integer\" ]\n } ],\n \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"\n },\n \"instance\" : {\n \"pointer\" : \"/somethingA/sports/identifier\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"string\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"string\" ]\n } ]\n }\n}\n\n"
|
SchemaValidatorUtilTest.polymorphicLeafErrorMessageProcessing:
NST/src/test/java/com/ebay/nst/schema/validation/support/SchemaValidatorUtilTest.java#L87
Expected: is "Polymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/properties/person/properties/details\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/properties/person/properties/details/anyOf/0\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeA\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"object\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"object\" ]\n } ],\n \"/properties/person/properties/details/anyOf/1\" : [ {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeB\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"object\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"object\" ]\n } ]\n }\n}\n\n"
but: was "warning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/LeafLevelPolymorphism\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/LeafLevelPolymorphism/properties/person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/typeA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/typeA/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/typeB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/typeB/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/properties/person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/properties/person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nPolymorphic failure encountered - specific issue identified:\nUnable to identify _type field. Raw error message shown below.{\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/properties/person/properties/details\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"anyOf\",\n \"message\" : \"instance failed to match at least one required schema among 2\",\n \"nrSchemas\" : 2,\n \"reports\" : {\n \"/properties/person/properties/details/anyOf/0\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeA\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeA/properties/name\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeA\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"object\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"object\" ]\n } ],\n \"/properties/person/properties/details/anyOf/1\" : [ {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeB\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"warning\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeB/properties/age\"\n },\n \"domain\" : \"syntax\",\n \"message\" : \"the following keywords are unknown and will be ignored: [types]\",\n \"ignored\" : [ \"types\" ]\n }, {\n \"level\" : \"error\",\n \"schema\" : {\n \"loadingURI\" : \"#\",\n \"pointer\" : \"/definitions/typeB\"\n },\n \"instance\" : {\n \"pointer\" : \"/person/details\"\n },\n \"domain\" : \"validation\",\n \"keyword\" : \"type\",\n \"message\" : \"instance type (boolean) does not match any allowed primitive type (allowed: [\\\"object\\\"])\",\n \"found\" : \"boolean\",\n \"expected\" : [ \"object\" ]\n } ]\n }\n}\n\n"
|
SchemaValidatorUtilTest.typeMatchFail:
NST/src/test/java/com/ebay/nst/schema/validation/support/SchemaValidatorUtilTest.java#L178
Expected: is "error: instance type (integer) does not match any allowed primitive type (allowed: [\"string\"])\n level: \"error\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n instance: {\"pointer\":\"/somethingC/people/0/name\"}\n domain: \"validation\"\n keyword: \"type\"\n found: \"integer\"\n expected: [\"string\"]\n\n\n"
but: was "warning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/country\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/DoSomethingResponse\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/0\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingA/properties/sports/properties/identifier/anyOf/1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingB\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Dairy\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Diet/properties/grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Grains\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/SomethingC/properties/people\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/country\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine1\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/addressLine2\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/city\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Address/properties/state\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nerror: instance type (integer) does not match any allowed primitive type (allowed: [\"string\"])\n level: \"error\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n instance: {\"pointer\":\"/somethingC/people/0/name\"}\n domain: \"validation\"\n keyword: \"type\"\n found: \"integer\"\n expected: [\"string\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/address\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/age\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/height\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/name\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\nwarning: the following keywords are unknown and will be ignored: [types]\n level: \"warning\"\n schema: {\"loadingURI\":\"#\",\"pointer\":\"/definitions/Person/properties/weight\"}\n domain: \"syntax\"\n ignored: [\"types\"]\n\n\n"
|
run-tests
Process completed with exit code 1.
|
run-tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-java@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|