void () { @Language("JSON") String schema = """ { "myDefs": { "myArray": [ { "type": "number" }, { "type": "boolean" } ] }, "type": "array", "items": [ { "$ref": "#/myDefs/myArray/0" }, { "$ref": "#/myDefs/myArray/1" } ] }"""; doTest(schema, "- 1\n- <warning>2</warning>"); doTest(schema, "- <warning>a</warning>\n- <warning>2</warning>"); doTest(schema, "- <warning>a</warning>\n- true"); doTest(schema, "- 1\n- false"); }