-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-119] [Bug] run_results.json schema validation error with oneOf constraint on status #4657
Comments
👋 @indyyyyy Sorry it's taken a min to get back to you on this. I was able to replicate the issue-- it seems our jsonschema could use some love. I'll categorize this as a bug and we'll get it prioritized ASAP. |
For future reference here's a slight update to fix some typos in the reproduction code posted above:
|
We identified some limitations of the library ( I hesitate to prioritize that larger effort over a continuing investment in structured logging, which we believe can offer a more powerful, reliable, and real-time metadata interface going forward. |
Improvement to the accuracy of our |
Is there an existing issue for this?
Current Behavior
Trying to validate the run_results.json artifact produced by the
dbt test
command, I used the jsonschema python package and the schema you expose here (run-results/v3.json).The validation fails with the error below.
Expected Behavior
As the artifact and the json schema are produced by dbt, I expect the schema validation to be OK.
"oneOf" constraint seems to be unadapted as a status could appears in several enum.
Steps To Reproduce
dbt test
Relevant log output
What database are you using dbt with?
redshift
Additional Context
As a workaround I changed in the schema the "oneOf" constraint of
by a "anyOf" constraint which seems more relevant.
The text was updated successfully, but these errors were encountered: