Object FieldV2Validator

  • All Implemented Interfaces:

    
    public class FieldV2Validator
    
                        

    FieldV2Validator Validator.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit validate(FieldV2 field) Validates a FieldV2.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.