Big-Life-Lab / PHES-ODM-Validation

A toolkit to assist in validating whether data conforms to the PHES-ODM dictionary.
https://validate-docs.phes-odm.org/
Creative Commons Attribution 4.0 International
5 stars 0 forks source link

Add suggestions to errors/warnings #73

Open zargot opened 1 year ago

zargot commented 1 year ago

Once we have a coersion library, we will probably want to update the warnings to give specific advice on what do to when a user receives a warning that their data can be coersed to an number. This made me wonder if we should have an addition error message section for "suggestions". Meaning, we would have "error", "warning", and "suggestion". We can always put a suggestion into an error or warning message, so this isn't really required. Just raising it as a thought or discussion point.

Originally posted by @DougManuel in https://github.com/Big-Life-Lab/PHES-ODM-Validation/pull/64#pullrequestreview-1191376751

zargot commented 1 year ago

Suggestions are a good idea. I would put them together with the error/warning to keep it simple and close together.

zargot commented 1 year ago

We would need to spec what the suggestions should be for each rule, @yulric.

yulric commented 1 year ago

We would need to spec what the suggestions should be for each rule, @yulric.

Agreed re spec. I don't think this is a priority right and I'm not sure they would even look like without feedback from our partners. Lets wait on this.