1EdTech / openbadges-samples

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

OBEE Example #5 for Testing (Invalid Badge) #7

Open thortek opened 7 years ago

thortek commented 7 years ago

Assertion URL:

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

JSON:

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

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

  1. url must be a valid uri
  2. contactInstructions is required
  3. contractInstructions is not allowed.

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