Skip to content

Commit 8494381

Browse files
committed
Add provider validation
1 parent 2173cf9 commit 8494381

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

index.html

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,29 @@ <h3>
294294
</li>
295295
<li>If |providers| is empty, [=exception/throw=] a {{TypeError}}.
296296
</li>
297+
<li>[=List/For each=] |provider| in |providers|:
298+
<ol>
299+
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} is does
300+
not match a [=digital credentials registry/protocol identifier=] from
301+
the [=digital credentials registry=], [=exception/throw=] a
302+
{{TypeError}}.
303+
</li>
304+
<li>Let |dictionary| be the [=digital credentials registry/Web IDL
305+
dictionary=] for |provider|'s
306+
{{DigitalCredentialsProvider/protocol}}.
307+
</li>
308+
<li>Let |request| be |provider|'s
309+
{{DigitalCredentialsProvider/request}} [=converted to an idl
310+
value|converted=] to |dictionary|. [=exception/throw|Rethrow=] any
311+
exceptions.
312+
</li>
313+
<li>Validate |request| against any validation rules set forth in the
314+
corresponding [=digital credentials registry/specification=]. If any
315+
of |request|'s members are invalid, [=exception/throw=] a
316+
{{TypeError}}.
317+
</li>
318+
</ol>
319+
</li>
297320
<li>
298321
<aside class="issue">
299322
Details of how to actually get the [=digital credential=] are
@@ -366,8 +389,9 @@ <h2 id="protocol-registry">
366389
Registry of protocols for requesting digital credential
367390
</h2>
368391
<p>
369-
The following is the registry of [=digital credential/exchange
370-
protocols=] that are supported by this specification.
392+
The following is the <dfn data-lt="digital credentials registry">digital
393+
credentials registryls exchange protocols</dfn> that are supported by
394+
this specification.
371395
</p>
372396
<p class="note" title="Official Registry" data-cite="w3c-process">
373397
It is expected that this registry will be become a [=W3C registry=] in
@@ -392,13 +416,19 @@ <h3>
392416
<thead>
393417
<tr>
394418
<th>
395-
Protocol identifier
419+
<dfn data-dfn-for="digital credentials registry">Protocol
420+
identifier</dfn>
421+
</th>
422+
<th>
423+
<dfn data-dfn-for="digital credentials registry">Web IDL
424+
dictionary</dfn>
396425
</th>
397426
<th>
398427
Description
399428
</th>
400429
<th>
401-
Specification
430+
<dfn data-dfn-for=
431+
"digital credentials registry">Specification</dfn>
402432
</th>
403433
</tr>
404434
</thead>

0 commit comments

Comments
 (0)