-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Labels
Description
Current Behavior
In some situations, dkan can issue an error that offers little to go on in fixing the issue when trying to save a dataset.
"The attribute must match exactly one of the subschemas."
The error prevents save and since all the fields highlight in red, it is impossible to figure out which of the fields is the problem
Expected Behavior
An error should be as clear as possible about what the error is and what item needs to be adjusted.
Example: The frequency attribute must match exactly one of the following allowed values [a, b, c, d].
Steps To Reproduce
- Edit a dataset and change one of the values to something that is not allowed by the schema.
- Try to save the node.
- See the error appear and all the fields light up red.
- Scratch head trying to guess at the problem.
Relevant log output (optional)
Anything else?
It is possible this message may come from a third party validation library and may not be able to be resolved in DKAN.
Reactions are currently unavailable