Package web5.sdk.credentials.model
Object PresentationDefinitionV2Validator
-
- All Implemented Interfaces:
public class PresentationDefinitionV2ValidatorPresentationDefinitionV2Validator Validator.
-
-
Field Summary
Fields Modifier and Type Field Description public final static PresentationDefinitionV2ValidatorINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitvalidate(PresentationDefinitionV2 presentationDefinition)Validates a PresentationDefinitionV2. -
-
Method Detail
-
validate
final Unit validate(PresentationDefinitionV2 presentationDefinition)
Validates a PresentationDefinitionV2.
This method performs several checks to ensure the integrity of the presentation definition model object:
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.
-
-
-
-