Skip to content

Commit 2d39af3

Browse files
committed
Add example that does not contain @context.
1 parent 4e12327 commit 2d39af3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,6 +2847,26 @@ <h4>Context Injection</h4>
28472847
(`https://www.w3.org/ns/did/v1`).
28482848
</p>
28492849

2850+
<pre class="example nohighlight" title="A controller document without an @context property">
2851+
{
2852+
"id": "https://controller.example/101",
2853+
"verificationMethod": [{
2854+
"id": "https://controller.example/101#key-203947",
2855+
"type": "JsonWebKey",
2856+
"controller": "https://controller.example/101",
2857+
"publicKeyJwk": {
2858+
"kid": "key-203947",
2859+
"kty": "EC",
2860+
"crv": "P-256",
2861+
"alg": "ES256",
2862+
"x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
2863+
"y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
2864+
}
2865+
}],
2866+
"authentication": ["#key-20240828"]
2867+
}
2868+
</pre>
2869+
28502870
<p>
28512871
Implementations that do not intend to use JSON-LD MAY choose to not include an
28522872
`@context` declaration at the top-level of the document. Whether or not the
@@ -2855,6 +2875,7 @@ <h4>Context Injection</h4>
28552875
processors=] are the same. Any differences in semantics between documents
28562876
processed in either mode are either implementation or specification bugs.
28572877
</p>
2878+
28582879
</section>
28592880
</section>
28602881

0 commit comments

Comments
 (0)