Closed dontcallmedom-bot closed 1 month ago
These enum values use a different naming convention because they are used as keys in the record
returned by getClientCapabilities()
. These names enable using them as bare identifiers (capabilities.conditionalCreate
or { conditionalCreate: true }
) instead of having to use index notation (capabilities["conditional-create"]
) or quoted keys ({ "conditional-create": true }
).
The proposed naming convention was used at earlier points in #1923 but were later changed to improve developer ergonomics.
Closing out as we have well-reasoned justification for ignoring kebab-casing in capabilities.
While crawling Web Authentication: An API for accessing Public Key Credentials - Level 3, the following enum values were found to ignore naming conventions (lower case, hyphen separated words):
"conditionalGet"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"signalAllAcceptedCredentials"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"hybridTransport"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"passkeyPlatformAuthenticator"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"conditionalCreate"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"userVerifyingPlatformAuthenticator"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"relatedOrigins"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"signalUnknownCredential"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)"signalCurrentUserDetails"
of the enumClientCapability
does not match the expected conventions (lower case, hyphen separated words)See Use casing rules consistent with existing APIs in Web Platform Design Principles document for guidance.
This issue was detected and reported semi-automatically by Strudy based on data collected in webref.