Skip to main content
Version: v0.0.9

Variable: BUILD_REFUSAL_VALUE_MAX_LENGTH

const BUILD_REFUSAL_VALUE_MAX_LENGTH: 63 = 63

How many characters of a caller-supplied value survive into a refusal message, whether it comes from a build* function or from defineProfile(). Set to mirror the parser's own SNIPPET_MAX_INPUT (63), so the two bounded copies in this library agree rather than each picking a number. Comfortably wider than every slot it guards: an ISA-13 / IEA-02 control number is 9, a TA1-05 note code 3, an ST-01 transaction set id 3, an 834 maintenance type 2-3, an 837 service-line variant 1.

Example

import { BUILD_REFUSAL_VALUE_MAX_LENGTH } from "@cosyte/x12";
BUILD_REFUSAL_VALUE_MAX_LENGTH; // 63