void () { @Language("YAML") final String schema = schema("{\"type\": \"array\", \"uniqueItems\": true}"); doTestYaml(schema, "prop:\n - 1\n - 2"); doTestYaml(schema, "prop:\n - <warning descr=\"Schema validation: Item is not unique\">1</warning>\n - 2\n - test\n - <warning descr=\"Schema validation: Item is not unique\">1</warning>"); }