Package web5.sdk.credentials.model
Object FieldV2Validator
-
- All Implemented Interfaces:
public class FieldV2ValidatorFieldV2Validator Validator.
-
-
Field Summary
Fields Modifier and Type Field Description public final static FieldV2ValidatorINSTANCE
-
Method Summary
-
-
Method Detail
-
validate
final Unit validate(FieldV2 field)
Validates a FieldV2.
This method performs a series of checks to ensure the integrity of the field:
Ensures that the field's ID, if present, is not empty.
Validates that the purpose, if provided, is not empty.
Checks that the name, if present, is not empty.
Confirms that the path for the field is not empty.
For each path in the field, it verifies the path's validity using JsonPath, and checks for any parsing errors.
-
-
-
-