You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently merging three different JSON-LD contexts in configureCreateVerifiableClaim: the default one, the one associated with the claim type, and the user-provided one.
The archiveUrl is an immediate child of the root VerifiableClaim in the @context yet it's inside claim, which is defined as a schema:CreativeWork in the context.
This works right now. My guess is jsonld accepts fields defined in the matching element or anywhere in the context.
Q: Is this well-defined or accidental behaviour?
Either way, we'll probably want to vamp up the logic so the VerifiableClaim is a constant structure for all Po.et and the inner Claim is free form.
The text was updated successfully, but these errors were encountered:
We're currently merging three different JSON-LD contexts in
configureCreateVerifiableClaim
: the default one, the one associated with the claim type, and the user-provided one.poet-js/src/VerifiableClaim.ts
Lines 40 to 54 in f50a701
These are the contexts used to sign and serialize the whole VerifiableClaim structure, of which what we call a claim is a child object.
poet-js/src/Interfaces.ts
Lines 55 to 66 in f50a701
The issue is that we're listing domain-specific fields that belong inside the claim immediately inside the verifiable claim:
poet-js/src/Interfaces.ts
Lines 68 to 85 in f50a701
This leads to the following: taking a look at this claim, for example:
The
archiveUrl
is an immediate child of the root VerifiableClaim in the@context
yet it's insideclaim
, which is defined as a schema:CreativeWork in the context.This works right now. My guess is jsonld accepts fields defined in the matching element or anywhere in the context.
Q: Is this well-defined or accidental behaviour?
Either way, we'll probably want to vamp up the logic so the VerifiableClaim is a constant structure for all Po.et and the inner Claim is free form.
The text was updated successfully, but these errors were encountered: