Skip to content

Commit

Permalink
Merge pull request #89 from dbt-labs/meta-in-project-yml
Browse files Browse the repository at this point in the history
allow meta in project yml
  • Loading branch information
dave-connors-3 authored Sep 5, 2023
2 parents fa8f55c + 5ea17ca commit 7135822
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
33 changes: 33 additions & 0 deletions schemas/1.5/dbt_project-1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
"+materialized": {
"$ref": "#/$defs/materialized"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -371,6 +374,9 @@
"materialized": {
"$ref": "#/$defs/materialized"
},
"meta": {
"$ref": "#/$defs/meta"
},
"on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -436,6 +442,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -463,6 +472,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -515,6 +527,9 @@
"+grants": {
"$ref": "#/$defs/grants"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -560,6 +575,9 @@
"grants": {
"$ref": "#/$defs/grants"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -612,12 +630,18 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+tags": {
"$ref": "#/$defs/string_or_array_of_strings"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"tags": {
"$ref": "#/$defs/string_or_array_of_strings"
}
Expand Down Expand Up @@ -666,6 +690,9 @@
"+limit": {
"$ref": "#/$defs/limit"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+schema": {
"$ref": "#/$defs/schema"
},
Expand Down Expand Up @@ -693,6 +720,9 @@
"limit": {
"$ref": "#/$defs/limit"
},
"meta": {
"$ref": "#/$defs/meta"
},
"severity": {
"$ref": "#/$defs/severity"
},
Expand Down Expand Up @@ -770,6 +800,9 @@
"type": "string",
"enum": ["append_new_columns", "fail", "ignore", "sync_all_columns"]
},
"meta": {
"type": "object"
},
"schema": {
"type": "string"
},
Expand Down
33 changes: 33 additions & 0 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@
"+materialized": {
"$ref": "#/$defs/materialized"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -339,6 +342,9 @@
"materialized": {
"$ref": "#/$defs/materialized"
},
"meta": {
"$ref": "#/$defs/meta"
},
"on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -404,6 +410,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -431,6 +440,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -483,6 +495,9 @@
"+grants": {
"$ref": "#/$defs/grants"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -528,6 +543,9 @@
"grants": {
"$ref": "#/$defs/grants"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -580,12 +598,18 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+tags": {
"$ref": "#/$defs/string_or_array_of_strings"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"tags": {
"$ref": "#/$defs/string_or_array_of_strings"
}
Expand Down Expand Up @@ -634,6 +658,9 @@
"+limit": {
"$ref": "#/$defs/limit"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+schema": {
"$ref": "#/$defs/schema"
},
Expand Down Expand Up @@ -661,6 +688,9 @@
"limit": {
"$ref": "#/$defs/limit"
},
"meta": {
"$ref": "#/$defs/meta"
},
"severity": {
"$ref": "#/$defs/severity"
},
Expand Down Expand Up @@ -738,6 +768,9 @@
"type": "string",
"enum": ["append_new_columns", "fail", "ignore", "sync_all_columns"]
},
"meta": {
"type": "object"
},
"schema": {
"type": "string"
},
Expand Down
33 changes: 33 additions & 0 deletions schemas/dbt_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
"+materialized": {
"$ref": "#/$defs/materialized"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -371,6 +374,9 @@
"materialized": {
"$ref": "#/$defs/materialized"
},
"meta": {
"$ref": "#/$defs/meta"
},
"on_schema_change": {
"$ref": "#/$defs/on_schema_change"
},
Expand Down Expand Up @@ -436,6 +442,9 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -463,6 +472,9 @@
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -515,6 +527,9 @@
"+grants": {
"$ref": "#/$defs/grants"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -560,6 +575,9 @@
"grants": {
"$ref": "#/$defs/grants"
},
"meta": {
"$ref": "#/$defs/meta"
},
"persist_docs": {
"$ref": "#/$defs/persist_docs_config"
},
Expand Down Expand Up @@ -612,12 +630,18 @@
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+tags": {
"$ref": "#/$defs/string_or_array_of_strings"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"meta": {
"$ref": "#/$defs/meta"
},
"tags": {
"$ref": "#/$defs/string_or_array_of_strings"
}
Expand Down Expand Up @@ -666,6 +690,9 @@
"+limit": {
"$ref": "#/$defs/limit"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"+schema": {
"$ref": "#/$defs/schema"
},
Expand Down Expand Up @@ -693,6 +720,9 @@
"limit": {
"$ref": "#/$defs/limit"
},
"meta": {
"$ref": "#/$defs/meta"
},
"severity": {
"$ref": "#/$defs/severity"
},
Expand Down Expand Up @@ -766,6 +796,9 @@
"materialized": {
"type": "string"
},
"meta": {
"type": "object"
},
"on_schema_change": {
"type": "string",
"enum": ["append_new_columns", "fail", "ignore", "sync_all_columns"]
Expand Down
3 changes: 3 additions & 0 deletions tests/1.5/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ models:
# same key without the plus
materialized: table
empty_subdirectory:
another_one:
meta:
owner: Tony
contracted_models:
+contract:
enforced: true
Expand Down
3 changes: 3 additions & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ models:
# same key without the plus
materialized: table
empty_subdirectory:
another_one:
meta:
owner: Tony
contracted_models:
+contract:
enforced: true
Expand Down

0 comments on commit 7135822

Please sign in to comment.