From 0795e4a2c74ffc4129dccbc2ec04d569707a1623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Tue, 23 Apr 2024 18:19:00 +0200 Subject: [PATCH] feat: alternative description documentation --- aaguid.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/aaguid.go b/aaguid.go index b7ebb2e..a189ea2 100644 --- a/aaguid.go +++ b/aaguid.go @@ -8,7 +8,14 @@ import ( //go:embed raw.json var RawMetadata []byte -// See: https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html +// This descriptor contains description in alternative languages. +// Example: +// +// { +// "ru-RU": "Пример U2F аутентификатора от FIDO Alliance", +// "fr-FR": "Exemple U2F authenticator de FIDO Alliance" +// }// +// See: map[string]string // This enumeration describes the status of an authenticator model as identified by its AAID/AAGUID or attestationCertificateKeyIdentifiers and potentially some additional information (such as a specific attestation key). type AuthenticatorStatus string @@ -111,8 +118,14 @@ type StatusReport struct { CertificationRequirementsVersion *string `json:"certificationRequirementsVersion"` } -type AlternativeDescription struct { -} +// This descriptor contains description in alternative languages. +// Example: +// +// { +// "ru-RU": "Пример U2F аутентификатора от FIDO Alliance", +// "fr-FR": "Exemple U2F authenticator de FIDO Alliance" +// } +type AlternativeDescription map[string]string type MetadataStatement struct { // The legalHeader, which must be in each Metadata Statement, is an indication of the acceptance of the relevant legal agreement for using the MDS.