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