Skip to content

Commit

Permalink
Add the ability to define docs config (#26)
Browse files Browse the repository at this point in the history
* Add the ability to define `docs` config

Add the schema for `docs` to define the nodes colors: https://docs.getdbt.com/reference/resource-configs/docs

* Add regex for valid `node_color`
  • Loading branch information
b-per authored Jan 18, 2023
1 parent 073cbe0 commit c394d06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions schemas/dbt_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@
},
"+tags": {
"$ref": "#/$defs/string_or_array_of_strings"
},
"+docs": {
"$ref": "#/$defs/docs_config"
}
},
"additionalProperties": {
Expand Down Expand Up @@ -363,6 +366,23 @@
"additionalProperties": {
"$ref": "#/$defs/test_configs"
}
},
"docs_config": {
"title": "Docs config",
"type": "object",
"description": "Configurations for the appearance of nodes in the dbt documentation.",
"properties": {
"node_color": {
"type": "string",
"description": "The color of the node on the DAG in the documentation. It must be an Hex code or a valid CSS color name.",
"pattern": "^(#[a-fA-F0-9]{3}|#[a-fA-F0-9]{6}|[^#][a-zA-Z]*)$"
},
"show": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
}
}

0 comments on commit c394d06

Please sign in to comment.