Skip to content

Commit

Permalink
fix: verification methods in document are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
beatt83 committed Oct 10, 2024
1 parent 7033c5d commit a6c1af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DIDCore/DIDDocument/DIDDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public struct DIDDocument {
public let id: String
public let alsoKnownAs: String?
public let controller: String?
public let verificationMethods: [VerificationMethod]
public let verificationMethods: [VerificationMethod]?
public let authentication: [VerificationMethodMapping]?
public let assertionMethod: [VerificationMethodMapping]?
public let capabilityDelegation: [VerificationMethodMapping]?
Expand All @@ -79,7 +79,7 @@ public struct DIDDocument {
id: String,
alsoKnownAs: String? = nil,
controller: String? = nil,
verificationMethods: [VerificationMethod] = [],
verificationMethods: [VerificationMethod]? = nil,
authentication: [VerificationMethodMapping]? = nil,
assertionMethod: [VerificationMethodMapping]? = nil,
capabilityDelegation: [VerificationMethodMapping]? = nil,
Expand Down

0 comments on commit a6c1af8

Please sign in to comment.