dbt-labs / dbt-jsonschema

Apache License 2.0
109 stars 40 forks source link

"enabled" and some other properties setup in "model_configs" were not setup in "seed_configs": dbt_project.json #27

Closed lfelipe94 closed 1 year ago

lfelipe94 commented 1 year ago

There are some seeds where extra configuration is needed. For example, using the "dbt_project_evaluator" package: https://github.com/dbt-labs/dbt-project-evaluator requires to "disable" one seed as the image below:

image

However, enabled and database are not in the "Seed_configs" in the dbt_project.json, therefore it shows the error. Also, "copy_grants" is not defined for models or seeds.

dbt_project.json:

image

Is it ok to update the models configs and include some of them to the seeds to avoid this?

joellabes commented 1 year ago

Yes I would welcome a PR to fix this! Let me know if you need any help with the JSON Schema syntax. You could also add a more complex dbt_project.yml file to the tests directory and the ci.yml