From 70cb48d2045ea792954c5233f15d22ebfb9237f8 Mon Sep 17 00:00:00 2001 From: Gabe <7622243+decentralgabe@users.noreply.github.com> Date: Mon, 28 Aug 2023 09:41:12 -0700 Subject: [PATCH] Update correct json schema draft 7 identifier (#453) * Update model.go * remove sec warnings --- credential/schema/model.go | 2 +- cryptosuite/bbs/bbsplussignatureproofsuite.go | 2 +- did/ion/errorcode.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/credential/schema/model.go b/credential/schema/model.go index f1cbf6c4..3ac41958 100644 --- a/credential/schema/model.go +++ b/credential/schema/model.go @@ -14,7 +14,7 @@ const ( Draft202012 JSONSchemaVersion = "https://json-schema.org/draft/2020-12/schema" Draft201909 JSONSchemaVersion = "https://json-schema.org/draft/2019-09/schema" - Draft7 JSONSchemaVersion = "https://json-schema.org/draft-07/schema" + Draft7 JSONSchemaVersion = "https://json-schema.org/draft-07/schema#" // Known JSON Schema properties diff --git a/cryptosuite/bbs/bbsplussignatureproofsuite.go b/cryptosuite/bbs/bbsplussignatureproofsuite.go index aab2adc2..979ed788 100644 --- a/cryptosuite/bbs/bbsplussignatureproofsuite.go +++ b/cryptosuite/bbs/bbsplussignatureproofsuite.go @@ -13,7 +13,7 @@ import ( ) const ( - BBSPlusSignatureProof2020 cryptosuite.SignatureType = "BbsBlsSignatureProof2020" + BBSPlusSignatureProof2020 cryptosuite.SignatureType = "BbsBlsSignatureProof2020" // #nosec ) type BBSPlusSignatureProofSuite struct{} diff --git a/did/ion/errorcode.go b/did/ion/errorcode.go index 3c0039bc..fa2a1cb8 100644 --- a/did/ion/errorcode.go +++ b/did/ion/errorcode.go @@ -7,7 +7,7 @@ const ( DIDDocumentPublicKeyIDDuplicated ErrorCode = "DidDocumentPublicKeyIdDuplicated" DIDDocumentPublicKeyMissingOrIncorrectType ErrorCode = "DidDocumentPublicKeyMissingOrIncorrectType" DIDDocumentServiceIDDuplicated ErrorCode = "DidDocumentServiceIdDuplicated" - DIDSuffixIncorrectLength ErrorCode = "DidSuffixIncorrectLength" + DIDSuffixIncorrectLength ErrorCode = "DidSuffixIncorrectLength" // #nosec EncodedStringIncorrectEncoding ErrorCode = "EncodedStringIncorrectEncoding" IDNotUsingBase64URLCharacterSet ErrorCode = "IdNotUsingBase64UrlCharacterSet" IDTooLong ErrorCode = "IdTooLong"