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

Jean-Noël Rouvignac
03.46.2016 a5809829e89ea42665396a628ea277d253ef9fa1
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/ObjectPropertyMapper.java
@@ -446,7 +446,7 @@
        for (Mapping mapping : mappings.values()) {
            final String attribute = mapping.name;
            PropertyMapper mapper = mapping.mapper;
            jsonProps.put(attribute, mapper.toJsonSchema());
            jsonProps.put(attribute, mapper.toJsonSchema().getObject());
            if (mapper.isRequired()) {
                requiredFields.add(attribute);
            }
@@ -457,7 +457,7 @@
            jsonSchema.put("required", requiredFields);
        }
        if (jsonProps.size() > 0) {
            jsonSchema.put("properties", jsonProps);
            jsonSchema.put("properties", jsonProps.getObject());
        }
        return jsonSchema;
    }