void () { @Language("JSON") String schema = """ { "properties": { "foo": { "enum": [ [{"x": 5}, [true], "q"] ] } } }"""; doTest(schema, "{\"foo\": <warning>5</warning>}"); doTest(schema, "{\"foo\": <warning>[ ]</warning>}"); doTest(schema, "{\"foo\": <warning>[{\"x\": 5}]</warning>}"); doTest(schema, "{\"foo\": <warning>[{\"x\": 5}, true]</warning>}"); doTest(schema, "{\"foo\": <warning>[{\"x\": 5}, [true]]</warning>}"); doTest(schema, "{\"foo\": [ { \"x\" : 5 } , [ true ] , \"q\" ]}"); }