validate Definition
Validates whether an object is usable as a presentation definition or not.
Model as specified in https://identity.foundation/presentation-exchange/#presentation-definition.
The checks are as follows:
Ensures that the presentation definition's ID is not empty.
Validates that the name, if present, is not empty.
Checks that the purpose, if provided, is not empty.
Verifies the uniqueness of all inputDescriptor IDs within the presentation.
Ensures that FieldV2 ids are unique across all input descriptors.
For each input descriptor, it validates the descriptor using InputDescriptorV2Validator.
Throws an PexValidationException if the provided object does not conform to the Presentation Definition