Closed
Bug 1788971
Opened 3 years ago
Closed 3 years ago
jsonschema DeprecationWarning: metaschema specified not found
Categories
(Socorro :: General, defect, P2)
Socorro
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: willkg)
Details
Attachments
(1 file)
jsonschema was kicking up this warning:
DeprecationWarning: The metaschema specified by $schema was not found.
Using the latest draft to validate, but this will raise an error in the future.
When socorro runs pytest, it runs it with warnings as errors. Once code that uses jsonschema.validate with processed_crash.schema.yaml as the schema without specifying a validator runs in a test, the tests will start failing.
What's going on is that jsonschema knows processed crash schema is a socorro-data schema, but doesn't know anything about that particularly that that is a Draft 7 jsonschema. jsonschema defaults to whatever the most recent validator is. That's technically wrong for us, but has worked so far. What we need to do is specify a validator.
This covers fixing the issue causing the deprecation warning.
| Assignee | ||
Updated•3 years ago
|
Assignee: nobody → willkg
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
This was pushed to prod in bug #1789701. Marking as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•