void () { @Language("JSON") final String schema = "{\"type\": \"object\", \"minProperties\": 2, \"maxProperties\": 3}"; doTest(schema, "<warning descr=\"Schema validation: Number of properties is less than 2\">a: 3</warning>"); doTest(schema, "a: 1\nb: 5"); doTest(schema, """ <warning descr="Schema validation: Number of properties is greater than 3" textAttributesKey="WARNING_ATTRIBUTES">a: 1</warning> b: 22 c: 333 d: 4444"""); }