The problem I’m having
i have recently upgraded our dbt project from 1.8.9 to 1.10.11. We used dbt-autofix ro fix the deprecations. We also set the following in the dbt_project.yaml
warn_error_options:
error:
- CustomKeyInObjectDeprecation
- CustomTopLevelKeyDeprecation
- DuplicateYAMLKeysDeprecation
- PropertyMovedToConfigDeprecation
- UnexpectedJinjaBlockDeprecation
However when the user creates a file which violates CustomKeyInObjectDeprecation then i dont see it being pointed out as error in the dbt compile.
i see that MissingArgumentsPropertyInGenericTestDeprecation does show on the deprecation summary but CustomKey one is never
The context of why I’m trying to do this
I am trying to make sure that our dbt project is up to date wrt all the latest standard from dbt
What I’ve already tried
I have tried to look into dbt core code but couldn’t find if there is something wrt this deprecation that may prevent it from coming. Also when i run dbt-auto fix on that file then it fixes the file.
Some example code or error messages
Put code inside backticks
to preserve indentation
which is especially important
for Python and YAML!