Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function validateOptionalString

    • Validate that a value is a string or undefined/null. Returns the string or null for DAML optional fields.

      Parameters

      • value: unknown

        The value to validate

      • fieldPath: string

        Dot-notation path for error messages

      Returns string | null

      The string value or null

      if the value is not a string, undefined, or null