Skip to content

Draft: Updates DCC to use new Jargon strategy to keep Attestation as credentialSubject

Follows !556 (closed) , this PR has the updates of Jargon for the Digital Conformity Credential switching to the credentialSubject having the id of the actual subject (the attestation).

The actual Jargon changes to generate this was:

  • Update ConformityAttestation from inheriting directly from untp.Attestation to instead aggregate all untp.Attestation properties (which is similar in effect to inheriting, but allows
  • sets ConformityAttestation's own @id to untp:Attestation so that it masquerades as the Attestation (with extra relationships).

This allows us to have a separate object defined in Jargon, ConformityAttestation which has all the fields of Attestation as well as some extra relationships (assessment etc.) (benefits of a schema and sample data), while the expanded JSON-LD just sees an Attestation with extra relations/predicates, as is right for JSON-LD.

Tested this DCC for valid jsonld and schema with https://github.com/absoludity/jargon-untp-tester

Ref #540

Edited by Michael Nelson

Merge request reports

Loading