Skip to content

Commit

Permalink
Add example that does not contain @context.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Nov 23, 2024
1 parent 4e12327 commit 2d39af3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2847,6 +2847,26 @@ <h4>Context Injection</h4>
(`https://www.w3.org/ns/did/v1`).
</p>

<pre class="example nohighlight" title="A controller document without an @context property">
{
"id": "https://controller.example/101",
"verificationMethod": [{
"id": "https://controller.example/101#key-203947",
"type": "JsonWebKey",
"controller": "https://controller.example/101",
"publicKeyJwk": {
"kid": "key-203947",
"kty": "EC",
"crv": "P-256",
"alg": "ES256",
"x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
"y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
}
}],
"authentication": ["#key-20240828"]
}
</pre>

<p>
Implementations that do not intend to use JSON-LD MAY choose to not include an
`@context` declaration at the top-level of the document. Whether or not the
Expand All @@ -2855,6 +2875,7 @@ <h4>Context Injection</h4>
processors=] are the same. Any differences in semantics between documents
processed in either mode are either implementation or specification bugs.
</p>

</section>
</section>

Expand Down

0 comments on commit 2d39af3

Please sign in to comment.