csv-schema icon indicating copy to clipboard operation
csv-schema copied to clipboard

zeroPad string provider

Open DavidUnderdown opened this issue 9 years ago • 1 comments

For 1.2 - see digital-preservation/csv-validator#122

DavidUnderdown avatar May 20 '16 08:05 DavidUnderdown

A corollary to this is that neither positiveInteger nor range currently reject values that are (unexpectedly) zero-padded (this is due to the fact that the EBNF allows 0 at any position). That behaviour can be emulated by adding regex("^[^0]") (a slightly more complex regex would be required if 0 itself were an allowed value)

DavidUnderdown avatar May 13 '19 14:05 DavidUnderdown