Improve error handling when validating constraints
#1210
Labels
feature:constraints
Related to inputting rules or business logic
feature request
Request for a new feature
Milestone
Problem Description
In the new version of SDV 1.0, I will be able to provide constraints using a dictionary format such as:
Currently, there is a confusing errors if I don't provide the
constraint_parameters
key:Expected behavior
We should explicitly check for the following:
'constraint_class'
,'constraint_parameters'
and'table_name'
'constraint_class'
and'constraint_parameters'
If the required top-level keys are not found, throw the following error:
If there are extra keys that are found, throw the following error:
The text was updated successfully, but these errors were encountered: