Skip to content

Commit

Permalink
add the schema for SMs and metrics, remove from project yml schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 committed Aug 7, 2023
1 parent 6195f9d commit 347375c
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 152 deletions.
32 changes: 0 additions & 32 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
"macro-paths": {
"$ref": "#/$defs/array_of_strings"
},
"metrics": {
"$ref": "#/$defs/metric_configs"
},
"model-paths": {
"$ref": "#/$defs/array_of_strings"
},
Expand Down Expand Up @@ -221,35 +218,6 @@
},
"additionalProperties": false
},
"metric_configs": {
"title": "Metric configs",
"type": "object",
"description": "Configurations set in the dbt_project.yml file will apply to all metrics that don't have a more specific configuration set.",
"properties": {
"+enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"+treat_null_values_as_zero": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"enabled": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"treat_null_values_as_zero": {
"$ref": "#/$defs/boolean_or_jinja_string"
}
},
"additionalProperties": {
"oneOf": [
{
"$ref": "#/$defs/metric_configs"
},
{
"$ref": "#/$defs/empty_directory"
}
]
}
},
"model_configs": {
"title": "Model configs",
"type": "object",
Expand Down
Loading

0 comments on commit 347375c

Please sign in to comment.