validate

fun validate(presentationSubmission: PresentationSubmission)

Validates a PresentationSubmission.

This method performs several checks to ensure the integrity of the presentation submission model object:

  1. Ensures that the presentation submission's id is not empty.

  2. Validates that the definitionId is not empty.

  3. Validates descriptorMap is a non-empty list.

  4. Check for unique inputDescriptor ids at top level

  5. Verifies the input descriptor mapping ids are the same on all levels of nesting.

  6. Ensures that the path is valid across all levels of nesting

Throws

if the PresentationDefinitionV2 is not valid.