mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
23.37.2016 0155864359332b5e8af8134c6d5bb95439bbd560
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/JsonConstantPropertyMapper.java
@@ -178,7 +178,7 @@
            final JsonValue firstItem = value.get(value.keys().iterator().next());
            // assume all items have the same schema
            jsonSchema.put("items", toJsonSchema(firstItem));
            if (value.isSet()) {
            if (value.getObject() instanceof Set) {
                jsonSchema.put("uniqueItems", true);
            }
            return jsonSchema;