From 7231531975a368e00927f2030c1fd929ecfdb2ea Mon Sep 17 00:00:00 2001 From: Dave Connors Date: Tue, 31 Oct 2023 09:14:51 -0500 Subject: [PATCH] update default schema too --- schemas/dbt_yml_files.json | 53 ++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/schemas/dbt_yml_files.json b/schemas/dbt_yml_files.json index cb92aa2..2bbd62f 100644 --- a/schemas/dbt_yml_files.json +++ b/schemas/dbt_yml_files.json @@ -48,13 +48,7 @@ "type": "string" }, "docs": { - "type": "object", - "required": ["show"], - "properties": { - "show": { - "type": "boolean" - } - } + "$ref": "#/$defs/docs_config" } } } @@ -173,12 +167,7 @@ "type": "string" }, "docs": { - "type": "object", - "properties": { - "show": { - "type": "boolean" - } - } + "$ref": "#/$defs/docs_config" } }, "additionalProperties": false @@ -318,12 +307,7 @@ "type": "string" }, "docs": { - "type": "object", - "properties": { - "show": { - "type": "boolean" - } - } + "$ref": "#/$defs/docs_config" }, "group": { "type": "string" @@ -414,12 +398,7 @@ "type": "string" }, "docs": { - "type": "object", - "properties": { - "show": { - "type": "boolean" - } - } + "$ref": "#/$defs/docs_config" }, "tests": { "type": "array", @@ -497,12 +476,7 @@ "type": "string" }, "docs": { - "type": "object", - "properties": { - "show": { - "type": "boolean" - } - } + "$ref": "#/$defs/docs_config" }, "meta": { "type": "object" @@ -743,6 +717,23 @@ } } }, + "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 + }, "freshness_definition": { "default": { "warn_after": {