-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I note the history of first expanding what was allowed in the Customer Reference Number field, and then moving it back to being strictly alphanumeric only.
I do not have a long history with the bai spec, but it doesn't seem to me that it is terribly well defined. But I note a few things that would indicate to me that alphanumeric could be intended to mean more than strictly a-z0-9.
- Specifically mentioning that alphanumeric fields must not contain
,or/. This would be completely redundant. - The
Textfield, which is designated alphanumeric, specifically calls out that is can contain,and/(just not as the first character). And it certainly not seem helpful to have a free text field like this that can't include space or some other word separator.
I note that this parser does allow a looser definition of alphanumeric for the Text field, but not for Bank Reference Number or Customer Reference Number.
The parser otherwise seems excellent, but the strict validation on some of the reference fields makes it unusable for us in its current state. We will likely make a private fork and change the validation to match our needs, unless you would be willing to revert to looser validation again?