-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request - add an error sub-type field for more precise error checking #10
Comments
This is a somewhat complex feature to implement because However I agree we need to have some way to either check error types for field values or subdivide validators further. /cc @njhale @kevinrizza |
If we go down this path, would using Go 1.13's support for error wrapping and using |
I think we can close this one as outdated. @exdx @dinhxuanvu WDYT? |
This is somewhat outdated specifically in regards to the annotation validation, considering the linked PR where validation was done to ensure the annotation is valid JSON. More so, as we move away from the CSV and moving the related annotations into a properties.yaml file this type of check would be less useful. More broadly, the ask for more defined errors is useful though. Not sure if we should close just yet. |
feature request...
if a user of this api wanted to specifically check a CSV for 'example annotations' it would be
nice to have a predefined sub-type for that specific validation check...
for example:
if err.Type == errors.CSVFileNotValid && err.SubType == errors.ExampleAnnotationsNotFound {
}
The text was updated successfully, but these errors were encountered: