From bed81d538df4a8d21e8759d5b6ccb7a04899324d Mon Sep 17 00:00:00 2001 From: Andy Miller <48326098+amiller-ims@users.noreply.github.com> Date: Mon, 15 May 2023 05:33:21 +0900 Subject: [PATCH] Update IssuerProbe.java The `issuer` is an instance of the `Profile` class which has an optional array of `IdentifierEntry` class, not `IdentityObject`. See https://github.com/1EdTech/openbadges-specification/blob/develop/ob_v3p0/common_credentials.lines#L129. --- .../java/org/oneedtech/inspect/vc/probe/IssuerProbe.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/IssuerProbe.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/IssuerProbe.java index bb9238b..e9a7472 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/IssuerProbe.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/IssuerProbe.java @@ -42,9 +42,9 @@ public class IssuerProbe extends Probe { if (issuer.hasNonNull("otherIdentifier")) { List 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); } } }