-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include detailed error on jsonld diff (#30)
* feat: compact details * fix: go mod * feat: manual compare * feat: include detailed error * fix: lint * feat: ensure map not nil * fix: lint * fix: find diff
- Loading branch information
Showing
4 changed files
with
155 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"%s" | ||
], | ||
"id": "http://example.com/credentials/4643", | ||
"type": [ | ||
"VerifiableCredential", | ||
"CustomExt12" | ||
], | ||
"issuer": "https://example.com/issuers/14", | ||
"issuanceDate": "2018-02-24T05:28:04Z", | ||
"referenceNumber": 83294847, | ||
"credentialSubject": [ | ||
{ | ||
"id": "did:example:abcdef1234567", | ||
"name": "Jane Doe", | ||
"favoriteFood": "Papaya" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package validator | ||
|
||
// Diff represents the difference between two objects. | ||
type Diff struct { | ||
OriginalValue interface{} | ||
CompactedValue interface{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters