csv-validator
csv-validator copied to clipboard
implement matchIsFalse directive
I've been trying to implement the idea of blacklisting certain PUIDs on a DROID CSV report, but have realised that the matchIsFalse column directive has not actually been implemented fully. It's recognised, so attempting to use it doesn't generate a schema error, but it doesn't do anything else at all, so there's no easy way of flipping the logic - I was expecting to be to write an any statement with the list of PUIDs in, and then use matchIsFalse to generate an error when any of the blacklisted PUIDs is encountered. I may be able to do similar with not() and not() etc but it's a bit harder to maintain in the long term.