pypi openbadgeslib 3.6.0
v3.6.0

latest releases: 4.6.5, 4.6.4, 4.6.3...
4 months ago

Feature release: richer OB 3.0 credentials — the verifier now hands back the raw validated document, issued badges carry a credentialSchema, plus strict typing, a coverage gate and a context-drift watchdog.

Added

  • feat(ob3): the verifier exposes the raw, already-validated VC document on the returned credential (credential.raw) — on both the JWT-VC and Data Integrity paths — so an integrator can read spec fields the dataclass does not map (alignment, results, multiple evidence, endorsements, …) without re-parsing the token. It is a read-only view, None for an in-memory credential built to issue, and excluded from equality/repr.
  • feat(ob3): issued OB 3.0 credentials now carry a credentialSchema entry (1EdTechJsonSchemaValidator2019) pointing at 1EdTech's published AchievementCredential JSON Schema, so validators and wallets can self-check them. The offline conformance gate proves our issued credentials satisfy that exact schema.

Changed

  • refactor(typing): the library now type-checks clean under mypy --strict, enabled in the mypy config so CI enforces it — making the README's claim true and sharpening the shipped py.typed annotations. Annotations only; no runtime change.
  • ci: a coverage floor (fail_under = 90) so a regression fails CI; a weekly context-drift watchdog that flags any pinned versioned JSON-LD context mutating upstream (as context-3.0.3.json once did); and SECURITY.md with a private disclosure channel. The EUDI SD-JWT VC track is now documented in the wiki.

Docs: the EUDI SD-JWT section recommends P-256/ES256 (HAIP) with Ed25519/P-384 as alternatives.

Verified: the full local gate — flake8, mypy --strict, and the complete suite (842 tests, [ldp] and [eudi] extras) — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish. A pre-release multi-angle code review ran over the diff; its notes were folded in.

Full history: Changelog.txt

Don't miss a new openbadgeslib release

NewReleases is sending notifications on new releases.