1EdTech / openbadges-samples

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

OBEE Example #2 for Testing (Valid Badge) #4

Open thortek opened 7 years ago

thortek commented 7 years ago

Assertion URL:

https://coderecruiter.com/badges/valid/singleAssessmentSingleAccred/assertion.json

JSON:

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

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

ottonomy commented 7 years ago

Hey, @thortek: The issuer profile that's linked from this assertion (extended with accreditation extension) has an inaccurate @context url. Its context should be: https://openbadgespec.org/extensions/issuerAccreditationExtension/context.json

This means it can't be JSON-LD compacted as required by the validator making the badge invalid. Let me know when you've updated it, and I'll test again.