From adff2c559eabd992c24d4b26342c9f38f71b0e34 Mon Sep 17 00:00:00 2001 From: Stas Dmytryshyn Date: Thu, 10 Oct 2024 19:16:18 +0200 Subject: [PATCH] fix: validate opts (#1776) * fix: validate opts per level * fix: drop include diff --- pkg/restapi/v1/issuer/controller.go | 1 - pkg/service/verifypresentation/verifypresentation_service.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/restapi/v1/issuer/controller.go b/pkg/restapi/v1/issuer/controller.go index 0586b6bca..3e63ee65f 100644 --- a/pkg/restapi/v1/issuer/controller.go +++ b/pkg/restapi/v1/issuer/controller.go @@ -1208,7 +1208,6 @@ func (c *Controller) validateJSONLD( return validator.ValidateJSONLDMap(data, validator.WithDocumentLoader(c.documentLoader), validator.WithStrictValidation(true), - validator.WithJSONLDIncludeDetailedStructureDiffOnError(), ) } diff --git a/pkg/service/verifypresentation/verifypresentation_service.go b/pkg/service/verifypresentation/verifypresentation_service.go index b49be4b6d..310252173 100644 --- a/pkg/service/verifypresentation/verifypresentation_service.go +++ b/pkg/service/verifypresentation/verifypresentation_service.go @@ -218,7 +218,6 @@ func (s *Service) checkCredentialStrict( if err = validator.ValidateJSONLDMap(credMap, validator.WithDocumentLoader(s.documentLoader), validator.WithStrictValidation(true), - validator.WithJSONLDIncludeDetailedStructureDiffOnError(), ); err != nil { return claimKeysDict, err }