1EdTech / openbadges-samples

Sample code for open badges including complete badge assertions
3 stars 1 forks source link

OBEE Example #4 for Testing (Invalid Badge) #6

Open thortek opened 7 years ago

thortek commented 7 years ago

Assertion URL:

https://coderecruiter.com/badges/invalid/assessmentErrors/assertion.json

JSON:

{
  "@context": "https://w3id.org/openbadges/v1",
  "type": "Assertion",
  "id": "http://coderecruiter.com/badges/invalid/assessmentErrors/assertion.json",
  "uid": "60979#1253540",
  "recipient": {
    "type": "email",
    "hashed": false,
    "identity": "example@gmail.com"
  },
  "issuedOn": "2016-02-15T17:29:23.893Z",
  "badge": "https://coderecruiter.com/badges/invalid/assessmentErrors/class.json",
  "verify": {
    "type": "hosted",
    "url": "https://coderecruiter.com/badges/invalid/assessmentErrors/assertion.json"
  }
}

The Assertion URL above produces the following 3 OBEE Assessment errors:

  1. overallDescription is required
  2. assessmentType must be one of [Exam, Performance, Artifact]
  3. assessmentEvaluation must be a valid uri.

You can learn more about testing this badge here: https://thortek.github.io/IMSBadgeValidator/