void () { final String innerTypeSchema = "{\"properties\": {\"only\": {}}, \"additionalProperties\": false}"; @Language("JSON") final String schema = schema("{\"type\": \"array\", \"items\": {\"type\": \"object\"," + "\"properties\": {" + "\"innerType\":" + innerTypeSchema + "}, \"additionalProperties\": false" + "}}"); doTest(schema, "{\"prop\": [{\"innerType\":{\"only\": true, <warning descr=\"Property 'hidden' is not allowed\">\"hidden\": false</warning>}}]}"); }