Skip to content

Commit

Permalink
Make "id" optional for services and public keys. Fix #47.
Browse files Browse the repository at this point in the history
* Make "id" optional for services and public keys.
* Change MAY to SHOULD for public keys.
* Change MAY to SHOULD for service endpoints.
* Say "multiple" instead of "duplicate" entries.
* Apply suggestion from @msporny.
* Add comment about producing an error.
* Address feedback at #66 (comment).
  • Loading branch information
peacekeeper authored and msporny committed Oct 19, 2019
1 parent ee57740 commit 99a0873
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions index.html
Expand Up @@ -1249,9 +1249,15 @@ <h2>
</li>

<li>
Each public key MUST include <code>id</code> and <code>type</code>
properties, and exactly one value property. The array of public keys
MUST NOT contain duplicate entries with the same <code>id</code>.
Each public key SHOULD include an <code>id</code> property. The array
of public keys MUST NOT contain multiple entries with the same
<code>id</code>. A <a>DID document</a> processor MUST produce an error in that
case.
</li>

<li>
Each public key MUST include a <code>type</code> property
and exactly one public key value, and MAY include additional properties.
</li>

<li>
Expand Down Expand Up @@ -1544,9 +1550,16 @@ <h2>
</li>

<li>
Each <a>service endpoint</a> MUST include <code>id</code>,
<code>type</code>, and <code>serviceEndpoint</code> properties, and
MAY include additional properties.
Each <a>service endpoint</a> SHOULD include an <code>id</code> property.
The array of <a>service endpoints</a> MUST NOT contain multiple entries
with the same <code>id</code>. A <a>DID document</a> processor MUST
produce an error in that case.
</li>

<li>
Each service endpoint MUST include <code>type</code> and
<code>serviceEndpoint</code> properties, and MAY include additional
properties.
</li>

<li>
Expand Down

0 comments on commit 99a0873

Please sign in to comment.