- From: =JeffH via GitHub <sysbot+gh@w3.org>
- Date: Fri, 06 Jul 2018 19:26:27 +0000
- To: public-webauthn@w3.org
> Gecko implements a specific behavior which is one of the proposals under consideration in heycam/webidl#76: optional dictionaries always default to null ... "optional dictionaries" in the dictionaries-as-optional-function-args case? > You can't use `{}` as a default value; see grammar at https://heycam.github.io/webidl/#prod-DefaultValue. But you can use null, which will have the same effect. Ok, so are you saying that we can address this issue by updating our spec in this fashion: ``` dictionary PublicKeyCredentialCreationOptions { PublicKeyCredentialRpEntity rp = null; PublicKeyCredentialUserEntity user = null; BufferSource challenge = null; [...] }; dictionary PublicKeyCredentialEntity { DOMString name = ""; USVString icon; }; dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity { BufferSource id = null; DOMString displayName = ""; }; ``` ...? i.e., remove `required` and supply default values as above? thx. -- GitHub Notification of comment by equalsJeffH Please view or discuss this issue at https://github.com/w3c/webauthn/issues/750#issuecomment-403125640 using your GitHub account
Received on Friday, 6 July 2018 19:26:30 UTC