Skip to content
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

Make Validation errors clearer #213

Merged
merged 5 commits into from
May 9, 2022
Merged

Make Validation errors clearer #213

merged 5 commits into from
May 9, 2022

Conversation

jonhealy1
Copy link
Collaborator

@jonhealy1 jonhealy1 commented May 9, 2022

Using str(e) as suggested here #212 created some error messages that were 20 to 30 lines long. I don't think this is acceptable. I didn't write the original code but I think it was written the way it was to manage long error messages. JSONSchema wants to re-print the entire stac object sometimes with their str method.

I have changed the 'ValidationError' error type to "JSONSchemaValidationError'. A User should now know to check the schema to find their error if the resulting message isn't clear enough.

@jonhealy1 jonhealy1 merged commit c53a8aa into main May 9, 2022
@jonhealy1 jonhealy1 deleted the val_errors branch August 22, 2022 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants