Package web5.sdk.credentials.model
Object InputDescriptorV2Validator
-
- All Implemented Interfaces:
public class InputDescriptorV2ValidatorInputDescriptorV2Validator Validator.
-
-
Field Summary
Fields Modifier and Type Field Description public final static InputDescriptorV2ValidatorINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitvalidate(InputDescriptorV2 inputDescriptor)Validates an InputDescriptorV2. -
-
Method Detail
-
validate
final Unit validate(InputDescriptorV2 inputDescriptor)
Validates an InputDescriptorV2.
This method conducts several checks to ensure the integrity of the input descriptor:
Ensures that the input descriptor's ID is not empty.
Validates that the name, if present, is not empty.
Checks that the purpose, if provided, is not empty.
For each field in the input descriptor's constraints, it validates the field using FieldV2Validator.
-
-
-
-