validateSubmission

fun validateSubmission(presentationSubmission: PresentationSubmission)

Validates whether an object is usable as a presentation submission or not.

Model as specified in https://identity.foundation/presentation-exchange/#presentation-submission.

The checks are as follows:

  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 an PexValidationException if the provided object does not conform to the Presentation Definition