You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VC data model (both v1.1 and v2.0) allow the verifiableCredential property on a VerifiablePresentation to be optional. There are cases where it may not be present, such as an authentication VP. However, the current Credo code expects that it exists as an instance or an array:
The VC data model (both v1.1 and v2.0) allow the
verifiableCredential
property on a VerifiablePresentation to be optional. There are cases where it may not be present, such as anauthentication
VP. However, the current Credo code expects that it exists as an instance or an array:credo-ts/packages/core/src/modules/vc/models/presentation/W3cPresentation.ts
Lines 59 to 62 in 855d4ab
As a first attempt, I think simply adding the
@IsOptional
decorator to the property may be sufficient to resolve this issue.The text was updated successfully, but these errors were encountered: