dbt-labs / dbt-jsonschema

Apache License 2.0
109 stars 40 forks source link

Meta field missing for models #17

Closed stevenlw-porpoise closed 1 year ago

stevenlw-porpoise commented 1 year ago

The meta field is missing from model properties - as well as other resources I believe it is supported for (docs) such as seeds, tests, etc.

As a result a yml file like

version: 2

models:
  - name: my_model
    description: stuff
    meta:
      tags:
        my_tag
    columns:
      - name: col1
        description: first column
      - name: col2
        description: second column

will highlight a problem on the meta field that Property meta is not allowed. yaml-schema: dbt_yml_files

I'm happy to add a PR for this as long as I my understanding is correct that this is valid dbt config and can be fixed by adding a "meta" key to the list of properties for each resource.

joellabes commented 1 year ago

Oof! Good catch @stevenlw-porpoise - I'd absolutely welcome a PR to fix this 😬