Skip to content

Commit

Permalink
Merge pull request #90 from dbt-labs/dbt-cloud-yml-dict
Browse files Browse the repository at this point in the history
allow dbt-cloud in project files 1.5+
  • Loading branch information
dave-connors-3 authored Sep 5, 2023
2 parents 7135822 + 9b548c5 commit 38c6d7e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/1.5/dbt_project-1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"type": "number",
"default": 2
},
"dbt-cloud": {
"type": "object",
"additionalProperties": true,
"properties": {
"project-id": {
"type": "number"
}
}
},
"dispatch": {
"type": "array",
"items": {
Expand Down
9 changes: 9 additions & 0 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
"type": "number",
"default": 2
},
"dbt-cloud": {
"type": "object",
"additionalProperties": true,
"properties": {
"project-id": {
"type": "number"
}
}
},
"dispatch": {
"type": "array",
"items": {
Expand Down
4 changes: 4 additions & 0 deletions tests/1.5/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ clean-targets: # directories to be removed by `dbt clean`
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
dbt-cloud:
project-id: 12345
extra: true

models:
test:
# Config indicated by + and applies to all files under models/example/
Expand Down
4 changes: 4 additions & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ clean-targets: # directories to be removed by `dbt clean`
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
dbt-cloud:
project-id: 12345
extra: true

models:
test:
# Config indicated by + and applies to all files under models/example/
Expand Down

0 comments on commit 38c6d7e

Please sign in to comment.