From 4c7efcd6731b80d51eab5ca8a6772a86c83e6b30 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Tue, 1 Mar 2022 17:19:59 +1100 Subject: [PATCH] fix: unused json tag (#17) The struct in question is used internally not for unmarshalling JSON (i.e. post parsing the JSON struct). --- protocol/credential.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/credential.go b/protocol/credential.go index 661090b5..d39c3894 100644 --- a/protocol/credential.go +++ b/protocol/credential.go @@ -51,8 +51,8 @@ type CredentialCreationResponse struct { type ParsedCredentialCreationData struct { ParsedPublicKeyCredential Response ParsedAttestationResponse + Transports []AuthenticatorTransport Raw CredentialCreationResponse - Transports []AuthenticatorTransport `json:"transports,omitempty"` } func ParseCredentialCreationResponse(response *http.Request) (*ParsedCredentialCreationData, error) {