Skip to content

Commit

Permalink
fix: unused json tag (#17)
Browse files Browse the repository at this point in the history
The struct in question is used internally not for unmarshalling JSON (i.e. post parsing the JSON struct).
  • Loading branch information
james-d-elliott committed Mar 1, 2022
1 parent 93a942a commit dfd0c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dfd0c65

Please sign in to comment.