Skip to content

Commit b719230

Browse files
committed
Add provider validation
1 parent 4a4a43b commit b719230

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
@@ -306,6 +306,29 @@ <h3>
306306
</li>
307307
<li>If |providers| is empty, [=exception/throw=] a {{TypeError}}.
308308
</li>
309+
<li>[=List/For each=] |provider| in |providers|:
310+
<ol>
311+
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} is does
312+
not match a [=digital credentials registry/protocol identifier=] from
313+
the [=digital credentials registry=], [=exception/throw=] a
314+
{{TypeError}}.
315+
</li>
316+
<li>Let |dictionary| be the [=digital credentials registry/Web IDL
317+
dictionary=] for |provider|'s
318+
{{DigitalCredentialsProvider/protocol}}.
319+
</li>
320+
<li>Let |request| be |provider|'s
321+
{{DigitalCredentialsProvider/request}} [=converted to an idl
322+
value|converted=] to |dictionary|. [=exception/throw|Rethrow=] any
323+
exceptions.
324+
</li>
325+
<li>Validate |request| against any validation rules set forth in the
326+
corresponding [=digital credentials registry/specification=]. If any
327+
of |request|'s members are invalid, [=exception/throw=] a
328+
{{TypeError}}.
329+
</li>
330+
</ol>
331+
</li>
309332
<li>
310333
<aside class="issue">
311334
Details of how to actually get the [=digital credential=] are
@@ -378,8 +401,9 @@ <h2 id="protocol-registry">
378401
Registry of protocols for requesting digital credential
379402
</h2>
380403
<p>
381-
The following is the registry of [=digital credential/exchange
382-
protocols=] that are supported by this specification.
404+
The following is the <dfn data-lt="digital credentials registry">digital
405+
credentials registryls exchange protocols</dfn> that are supported by
406+
this specification.
383407
</p>
384408
<p class="note" title="Official Registry" data-cite="w3c-process">
385409
It is expected that this registry will be become a [=W3C registry=] in
@@ -404,13 +428,19 @@ <h3>
404428
<thead>
405429
<tr>
406430
<th>
407-
Protocol identifier
431+
<dfn data-dfn-for="digital credentials registry">Protocol
432+
identifier</dfn>
433+
</th>
434+
<th>
435+
<dfn data-dfn-for="digital credentials registry">Web IDL
436+
dictionary</dfn>
408437
</th>
409438
<th>
410439
Description
411440
</th>
412441
<th>
413-
Specification
442+
<dfn data-dfn-for=
443+
"digital credentials registry">Specification</dfn>
414444
</th>
415445
</tr>
416446
</thead>

0 commit comments

Comments
 (0)