Skip to content

Commit

Permalink
fix: Bypass deep check
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Jan 7, 2025
1 parent d38cb26 commit e2d4851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/did/types/diddoc_diddoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ var _ = DescribeTable("DIDDoc Validation tests", func(testCase DIDDocTestCase) {
},
AssertionMethod: []string{fmt.Sprintf("%s#fragment", ValidTestDID), func() string {
b, _ := json.Marshal(AssertionMethodJSONUnescaped{
Id: fmt.Sprintf("%s#fragment-1", ValidTestDID),
Id: fmt.Sprintf("%s#fragment", ValidTestDID),
Type: "Ed25519VerificationKey2018",
Controller: ValidTestDID,
PublicKeyBase58: &ValidEd25519VerificationKey2018VerificationMaterial, // arbitrarily chosen, loosely validated
Expand Down
3 changes: 3 additions & 0 deletions x/did/utils/str.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func ValidateProtobufFields(jsonString string) error {
}

for key, value := range input {
if key == "metadata" {
continue
}
switch value.(type) {
case string, int, int32, int64, float32, float64, bool, proto.Message:
continue
Expand Down

0 comments on commit e2d4851

Please sign in to comment.