Merge pull request #72 from imsglc/amiller-ims-patch-1
Update IssuerProbe.java
This commit is contained in:
commit
74182bf2fc
@ -42,9 +42,9 @@ public class IssuerProbe extends Probe<JsonNode> {
|
||||
if (issuer.hasNonNull("otherIdentifier")) {
|
||||
List<JsonNode> otherIdentifiers = JsonNodeUtil.asNodeList(issuer.get("otherIdentifier"));
|
||||
for (JsonNode otherIdentifier : otherIdentifiers) {
|
||||
// check that type contains "IdentityObject"
|
||||
if (!JsonNodeUtil.asStringList(otherIdentifier.get("type")).contains("IdentityObject")) {
|
||||
return error("otherIdentifier in issuer is not of type \"IdentityObject\"", ctx);
|
||||
// check that type contains "IdentifierEntry"
|
||||
if (!JsonNodeUtil.asStringList(otherIdentifier.get("type")).contains("IdentifierEntry")) {
|
||||
return error("otherIdentifier in issuer is not of type \"IdentifierEntry\"", ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user