From ae11df8d1a641ae8c11d4aeb242725e26ff6b853 Mon Sep 17 00:00:00 2001 From: vmidyllic <74898029+vmidyllic@users.noreply.github.com> Date: Fri, 14 Jan 2022 10:50:03 +0200 Subject: [PATCH] hotfix for json representation --- communication/auth/token.go | 8 ++++---- types/message.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/communication/auth/token.go b/communication/auth/token.go index 4801d49..6c2f272 100644 --- a/communication/auth/token.go +++ b/communication/auth/token.go @@ -12,10 +12,10 @@ import ( // UserToken is token that can be used for user authorization type UserToken struct { - ID string `json:"id"` - Challenge string `json:"challenge"` - State string `json:"state"` - Scope map[string]map[string]interface{} + ID string `json:"id"` + Challenge string `json:"challenge"` + State string `json:"state"` + Scope map[string]map[string]interface{} `json:"scope"` } // Update adds new metadata to user token diff --git a/types/message.go b/types/message.go index 45ff2e3..1d32662 100644 --- a/types/message.go +++ b/types/message.go @@ -119,7 +119,7 @@ type CredentialFetchRequest struct { // CredentialFetchRequestMessageData is struct the represents credential fetch request data type CredentialFetchRequestMessageData struct { - ClaimID string `json:"claimID"` + ClaimID string `json:"claim_id"` Schema string `json:"schema"` Scope []interface{} `json:"scope"` }