Object InputDescriptorV2Validator

    • 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(InputDescriptorV2 inputDescriptor) Validates an InputDescriptorV2.
      • 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(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.