void () { @Language("JSON") final String schema = "{\"properties\": {\"prop\": {\"type\": \"string\", \"minLength\": 2, \"maxLength\": 3}}}"; doTest(schema, "{\"prop\": <warning descr=\"String is shorter than 2\">\"s\"</warning>}"); doTest(schema, "{\"prop\": \"sh\"}"); doTest(schema, "{\"prop\": \"sho\"}"); doTest(schema, "{\"prop\": <warning descr=\"String is longer than 3\">\"shor\"</warning>}"); }