Skip to content

DidComm classes failing validation when using mediatorRecipient config option #2613

@GrahamS-Quartech

Description

@GrahamS-Quartech

When using the mediationRecipient config option for the DidCommModule in v0.6.1, I'm encountering class validation issues.

An instance of DidCommConnectionInvitationMessage has failed the validation:\n - property id has failed the following constraints: id must match /[-_.\/a-zA-Z0-9]{8,64}/ regular expression

In the debugger, I can see that the failure is happening at didcomm/src/util/parseInvitation.ts:54 where it tries to parse the JSON object into a DidCommConnectionInvitationMessage instance.

Depending on the specific mediator used, I've also seen this error:

An instance of DidCommOutOfBandInvitation has failed the validation:\n - property id has failed the following constraints: id must match /[-_.\\/a-zA-Z0-9]{8,64}/ regular expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions