Skip to content

Reference

Utils — validation primitives

Re-exports OcpValidationError plus validateRequiredString, numeric, date, enum, array, object, monetary, contractId, partyId helpers used across batch and factory code.

validation centralizes small guards that throw OcpValidationError with consistent fieldPath strings—validateRequiredString, validateEnum, validateContractId, validatePartyId, validatePositiveNumeric, array/object helpers, and createValidator factory.

See also

Source