Repository navigation
v3.9.0
Feature release: richer OB 3.0 credentials — verifiable third-party endorsements, and a broadened data model (full evidence lists and competency-framework alignments).
Added
feat(ob3): support for OpenBadges 3.0endorsementJwt(spec errata v1.6, added to context 3.0.3). Third-party endorsements were passing through as opaque, unmapped fields; the model now exposes them at the three levels the spec allows —credential.endorsement_jwts,issuer.endorsement_jwts,achievement.endorsement_jwts, gathered bycredential.all_endorsement_jwts()— and round-trips them. Newob3.verify_endorsement_jwt(token, …)verifies an EndorsementCredential JWT under the endorser's key (resolved from its own issuerdid:web/did:key, or an explicit key when the endorser is not a DID), checking the EndorsementCredential type and its validFrom/validUntil window.openbadges-verifier --jsonnow reports theendorsementscount. (#161)feat(ob3): broadened credential data model toward the OB 3.0 spec — the gap versus the spec was the model, not the crypto. NewEvidence(the fullevidencearray: narrative, name, description, genre, audience — beyond the singleevidence_url) andAlignment(the competency-framework mappings an LMS reads to map a badge to a competency) dataclasses, plusachievementType,creditsAvailableand analignmentslist onAchievement. All are validated in the house style (dataclasses + mypy, no Pydantic), parse from a verified credential, round-trip throughto_vc, and still satisfy the offline conformance schema. (Refs #162)
Not included (deferred): the rest of #162 — Result/ResultDescription, the credentialSubject IdentityObject (identifier), and creditsEarned (the subject/assessment cluster).
Verified: the full local gate — flake8, mypy --strict, and the complete suite (935 tests, [ldp] extra) — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish.
Full history: Changelog.txt