Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
"seeds": {
"$ref": "#/$defs/seed_configs"
},
"semantic-models": {
"$ref": "#/$defs/semantic_model_configs"
},
"snapshot-paths": {
"$ref": "#/$defs/array_of_strings"
},
Expand Down Expand Up @@ -657,6 +660,41 @@
]
}
},
"semantic_model_configs": {
"title": "Semantic model configs",
"description": "Configurations set in the dbt_project.yml file will apply to all semantic models that don't have a more specific configuration set.",
"type": "object",
"properties": {
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+group": {
"$ref": "#/$defs/group"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"group": {
"$ref": "#/$defs/group"
},
"meta": {
"$ref": "#/$defs/meta"
}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/$defs/semantic_model_configs"
},
{
"$ref": "#/$defs/empty_directory"
}
]
}
},
"severity": {
"oneOf": [
{
Expand Down
38 changes: 38 additions & 0 deletions schemas/1.7/dbt_project-1.7.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
"seeds": {
"$ref": "#/$defs/seed_configs"
},
"semantic-models": {
"$ref": "#/$defs/semantic_model_configs"
},
"snapshot-paths": {
"$ref": "#/$defs/array_of_strings"
},
Expand Down Expand Up @@ -577,6 +580,41 @@
]
}
},
"semantic_model_configs": {
"title": "Semantic model configs",
"description": "Configurations set in the dbt_project.yml file will apply to all semantic models that don't have a more specific configuration set.",
"type": "object",
"properties": {
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+group": {
"$ref": "#/$defs/group"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"group": {
"$ref": "#/$defs/group"
},
"meta": {
"$ref": "#/$defs/meta"
}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/$defs/semantic_model_configs"
},
{
"$ref": "#/$defs/empty_directory"
}
]
}
},
"snapshot_configs": {
"title": "Snapshot configs",
"type": "object",
Expand Down
41 changes: 41 additions & 0 deletions schemas/dbt_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
"seeds": {
"$ref": "#/$defs/seed_configs"
},
"semantic-models": {
"$ref": "#/$defs/semantic_model_configs"
},
"snapshot-paths": {
"$ref": "#/$defs/array_of_strings"
},
Expand Down Expand Up @@ -255,6 +258,9 @@
},
"additionalProperties": false
},
"group": {
"type": "string"
},
"hours_to_expiration": {
"description": "Configuration specific to BigQuery adapter used to set an expiration delay (in hours) to a table.",
"type": "number"
Expand Down Expand Up @@ -633,6 +639,41 @@
]
}
},
"semantic_model_configs": {
"title": "Semantic model configs",
"description": "Configurations set in the dbt_project.yml file will apply to all semantic models that don't have a more specific configuration set.",
"type": "object",
"properties": {
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+group": {
"$ref": "#/$defs/group"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"group": {
"$ref": "#/$defs/group"
},
"meta": {
"$ref": "#/$defs/meta"
}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/$defs/semantic_model_configs"
},
{
"$ref": "#/$defs/empty_directory"
}
]
}
},
"severity": {
"oneOf": [
{
Expand Down
38 changes: 38 additions & 0 deletions schemas/latest/dbt_project-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@
"seeds": {
"$ref": "#/$defs/seed_configs"
},
"semantic-models": {
"$ref": "#/$defs/semantic_model_configs"
},
"snapshot-paths": {
"$ref": "#/$defs/array_of_strings"
},
Expand Down Expand Up @@ -890,6 +893,41 @@
]
}
},
"semantic_model_configs": {
"title": "Semantic model configs",
"description": "Configurations set in the dbt_project.yml file will apply to all semantic models that don't have a more specific configuration set.",
"type": "object",
"properties": {
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+group": {
"$ref": "#/$defs/group"
},
"+meta": {
"$ref": "#/$defs/meta"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"group": {
"$ref": "#/$defs/group"
},
"meta": {
"$ref": "#/$defs/meta"
}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/$defs/semantic_model_configs"
},
{
"$ref": "#/$defs/empty_directory"
}
]
}
},
"severity": {
"oneOf": [
{
Expand Down
7 changes: 7 additions & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ sources:
+enabled: true
empty_subdirectory:

semantic-models:
my_project:
+enabled: true
+group: analytics
+meta:
team: data-platform

quoting:
database: true
schema: true
Expand Down
7 changes: 7 additions & 0 deletions tests/1.7/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ sources:
+enabled: true
empty_subdirectory:

semantic-models:
my_project:
+enabled: true
+group: analytics
+meta:
team: data-platform

quoting:
database: true
schema: true
Expand Down
7 changes: 7 additions & 0 deletions tests/latest/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ sources:
+enabled: true
empty_subdirectory:

semantic-models:
my_project:
+enabled: true
+group: analytics
+meta:
team: data-platform

quoting:
database: true
schema: true
Expand Down
Loading