Re: [webauthn] Mark all JSON fields as required. (#1878)

The main difference is whether the IDL definition is an [`interface`](https://webidl.spec.whatwg.org/#idl-interfaces) (`PublicKeyCredential` and `AuthenticatorResponse`) or a [`dictionary`](https://webidl.spec.whatwg.org/#idl-dictionaries) (the rest). Dictionary members are optional unless declared `required`, but interface members are always required (that's what it means to implement an interface) but may be [nullable](https://webidl.spec.whatwg.org/#idl-nullable-type).

(It does look to me like the grammar allows the `optional` extended attribute for [interface members](https://webidl.spec.whatwg.org/#prod-InterfaceMembers), but the prose doesn't seem to define what it would mean.)

-- 
GitHub Notification of comment by emlun
Please view or discuss this issue at https://github.com/w3c/webauthn/pull/1878#issuecomment-1505180930 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 April 2023 12:20:53 UTC