framework
framework copied to clipboard
Is it possible to customize error classes or add new ones?
Overview
We are using the ckanext-validation extension that uses frictionless as the core validation checker. We needed to add more frictionless error classes to e.g. https://github.com/frictionlessdata/frictionless-py/blob/main/frictionless/errors/label.py. Also, we would like to modify the error message texts in some of the existing classes.
Can you recommend a way to deal with such modifications? Perhaps allowing the description
and template
fields of an error class to be passed as optional arguments to override the default messages? Happy to contribute if this kind of generalization would be useful to the wider community.