You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into some ambiguous validation errors, and the problem would have been a lot more obvious had the originating jsonschema error message been propagated to the STACValidationError.
Perhaps this original error message could be appended to the existing validator error? Update: I now see that jsonschema error outputs can at times be rather large, albeit helpful.
Perhaps some docs on suggested validation practices? Like some handling process shown below to prune the needed diagnosing information.
The text was updated successfully, but these errors were encountered:
ryanjdillon
changed the title
Propagate error from jsonschema to STACValidationError
Propagate error message from jsonschema to STACValidationError
Oct 14, 2022
Per python-jsonschema/jsonschema#1050 (comment), once jsonschema 4.18 is released, we might be able to build better error messages. I'm considering this issue blocked until that release.
I ran into some ambiguous validation errors, and the problem would have been a lot more obvious had the originating
jsonschema
error message been propagated to theSTACValidationError
.Perhaps this original error message could be appended to the existing validator error?Update: I now see thatjsonschema
error outputs can at times be rather large, albeit helpful.Perhaps some docs on suggested validation practices? Like some handling process shown below to prune the needed diagnosing information.
Example
In a test I am validating a generated item:
I received the following error
When I inspected that source error, I saw that
My current solution
The text was updated successfully, but these errors were encountered: