{
  "title": {
    "path": [
      "$.source.name",
      "$.credentialSubject.source.name"
    ],
    "schema": {
      "type": "string"
    },
    "fallback": "Badge"
  },
  "subtitle": {
    "text": "Open Badge"
  },
  "summary_detail": {
    "path": [
      "$.achievement.name",
      "$.credentialSubject.achievement.name"
    ],
    "schema": {
      "type": "string"
    },
    "fallback": "-"
  },
  "description": {
    "text": "Open Badge"
  },
  "logo": {
    "path": [
      "$.achievement.image.id",
      "$.credentialSubject.achievement.image.id"
    ],
    "schema": {
      "type": "string",
      "format": "uri"
    }
  },
  "properties": [
    {
      "label": "",
      "path": [
        "$.achievement.image.id",
        "$.credentialSubject.achievement.image.id",
        "$.image.id",
        "$.credentialSubject.image.id"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Name",
      "path": [
        "$.credentialSubject.identifier[?(@.identityType == 'name')].identityHash",
        "$.identifier[?(@.identityType == 'name')].identityHash"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Username",
      "path": [
        "$.credentialSubject.identifier[?(@.identityType == 'userName')].identityHash",
        "$.identifier[?(@.identityType == 'userName')].identityHash"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Email",
      "path": [
        "$.credentialSubject.identifier[?(@.identityType == 'email')].identityHash",
        "$.identifier[?(@.identityType == 'email')].identityHash"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Achievement type",
      "path": [
        "$.credentialSubject.achievement.achievementType",
        "$.credentialSubject.achievement.type",
        "$.achievement.achievementType",
        "$.achievement.type"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Description",
      "path": [
        "$.credentialSubject.achievement.description",
        "$.achievement.description",
        "$.description"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Awarded",
      "path": [
        "$.awardedDate"
      ],
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "label": "Started",
      "path": [
        "$.activityStartDate",
        "$.credentialSubject.activityStartDate"
      ],
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "label": "Ended",
      "path": [
        "$.activityEndDate",
        "$.credentialSubject.activityEndDate"
      ],
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "label": "Valid from",
      "path": [
        "$.validFrom"
      ],
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "label": "Valid until",
      "path": [
        "$.validUntil"
      ],
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "label": "License number",
      "path": [
        "$.licenseNumber",
        "$.credentialSubject.licenseNumber"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Role",
      "path": [
        "$.role",
        "$.credentialSubject.role"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Term",
      "path": [
        "$.term",
        "$.credentialSubject.term"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Status",
      "path": [
        "$.result[0].status",
        "$.credentialSubject.result[0].status"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Credits available",
      "path": [
        "$.achievement.creditsAvailable",
        "$.credentialSubject.achievement.creditsAvailable"
      ],
      "schema": {
        "type": "number"
      }
    },
    {
      "label": "Credits earned",
      "path": [
        "$.creditsEarned",
        "$.credentialSubject.creditsEarned"
      ],
      "schema": {
        "type": "number"
      }
    },
    {
      "label": "Result",
      "path": [
        "$.result[0].value",
        "$.credentialSubject.result[0].value"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Achieved level",
      "path": [
        "$.result[0].achievedLevel",
        "$.credentialSubject.result[0].achievedLevel"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Result description",
      "path": [
        "$.result[0].resultDescription",
        "$.credentialSubject.result[0].resultDescription",
        "$.achievement.resultDescription",
        "$.credentialSubject.achievement.resultDescription"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Field",
      "path": [
        "$.achievement.fieldOfStudy",
        "$.credentialSubject.achievement.fieldOfStudy"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Code",
      "path": [
        "$.achievement.humanCode",
        "$.credentialSubject.achievement.humanCode"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Specialization",
      "path": [
        "$.achievement.specialization",
        "$.credentialSubject.achievement.specialization"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Version",
      "path": [
        "$.achievement.version",
        "$.credentialSubject.achievement.version"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Achievement criteria",
      "path": [
        "$.achievement.criteria.narrative",
        "$.credentialSubject.achievement.criteria.narrative"
      ],
      "schema": {
        "type": "string"
      }
    },
    {
      "label": "Learn more",
      "path": [
        "$.achievement.alignment[0].targetUrl",
        "$.credentialSubject.achievement.alignment[0].targetUrl"
      ],
      "schema": {
        "type": "string",
        "format": "uri"
      }
    }
  ]
}