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