Skip to content

Commit a6c1af8

Browse files
committed
fix: verification methods in document are optional
1 parent 7033c5d commit a6c1af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/DIDCore/DIDDocument/DIDDocument.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public struct DIDDocument {
6868
public let id: String
6969
public let alsoKnownAs: String?
7070
public let controller: String?
71-
public let verificationMethods: [VerificationMethod]
71+
public let verificationMethods: [VerificationMethod]?
7272
public let authentication: [VerificationMethodMapping]?
7373
public let assertionMethod: [VerificationMethodMapping]?
7474
public let capabilityDelegation: [VerificationMethodMapping]?
@@ -79,7 +79,7 @@ public struct DIDDocument {
7979
id: String,
8080
alsoKnownAs: String? = nil,
8181
controller: String? = nil,
82-
verificationMethods: [VerificationMethod] = [],
82+
verificationMethods: [VerificationMethod]? = nil,
8383
authentication: [VerificationMethodMapping]? = nil,
8484
assertionMethod: [VerificationMethodMapping]? = nil,
8585
capabilityDelegation: [VerificationMethodMapping]? = nil,

0 commit comments

Comments
 (0)