data.validator
data.validator copied to clipboard
Migration path / documentation for going from version 0.1.3 to 0.1.7
Hi,
With the help of Appsilon a few years ago we implemented some data validation using the 0.1.3 version of this package. We need to catch back with the recent development you guys did. We found API to have significantly changed compared to what we are using. Do you have a migration path or some documentation to make it easier ?
Error: 'create_validator' is not an exported object from 'namespace:data.validator'
Merci
Arnaud Atoch
Hi Arnaud,
Unfortunately, there is no documentation related to the migration between those versions. In general, the API was heavily reworked and a lot of functions do not exist anymore or behave in a slightly different way.
Giving you some hints:
create_validatorhas been renamed todata_validation_reportassert_rows/cols/ifhave been renamed tovalidate_rows/cols/if(please be aware that there were also some changes when it comes to function arguments)- going through the main tutorial can help you understand the new API: https://appsilon.github.io/data.validator/articles/data_validator.html
I hope that this will help, Jakub