Commit 6bb12c8
committed
Address Copilot review on JavaScriptSolidServer#321
- Alias `id`/`type` to @id/@type in @context so nested service[] entries
are interpreted as real JSON-LD node identifiers/types rather than
plain properties. CID 1.0 and DID contexts do the same; LWS verifiers
that expand JSON-LD would otherwise fail to read these entries.
- Tighten the two service-entry tests with explicit assertions on
`jsonLd.service` being an array and `oidc` being truthy, so missing
data produces clean assertion failures instead of TypeError.1 parent cccd081 commit 6bb12c8
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| 129 | + | |
127 | 130 | | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments