diff --git a/schemas/1.5/dbt_project-1.5.json b/schemas/1.5/dbt_project-1.5.json index f3c500c..6014778 100644 --- a/schemas/1.5/dbt_project-1.5.json +++ b/schemas/1.5/dbt_project-1.5.json @@ -207,6 +207,10 @@ }, "additionalProperties": false }, + "invalidate_hard_deletes": { + "type": "boolean", + "description": "Configuration specific to snapshots used to invalidate hard deletes." + }, "jinja_string": { "type": "string", "pattern": "\\{\\{.*\\}\\}" @@ -557,6 +561,9 @@ "+group": { "$ref": "#/$defs/group" }, + "+invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "+meta": { "$ref": "#/$defs/meta" }, @@ -608,6 +615,9 @@ "group": { "$ref": "#/$defs/group" }, + "invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "meta": { "$ref": "#/$defs/meta" }, diff --git a/schemas/1.6/dbt_project-1.6.json b/schemas/1.6/dbt_project-1.6.json index 428c184..a285f85 100644 --- a/schemas/1.6/dbt_project-1.6.json +++ b/schemas/1.6/dbt_project-1.6.json @@ -204,6 +204,10 @@ }, "additionalProperties": false }, + "invalidate_hard_deletes": { + "type": "boolean", + "description": "Configuration specific to snapshots used to invalidate hard deletes." + }, "jinja_string": { "type": "string", "pattern": "\\{\\{.*\\}\\}" @@ -519,6 +523,9 @@ "+group": { "$ref": "#/$defs/group" }, + "+invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "+meta": { "$ref": "#/$defs/meta" }, @@ -570,6 +577,9 @@ "group": { "$ref": "#/$defs/group" }, + "invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "meta": { "$ref": "#/$defs/meta" }, diff --git a/schemas/dbt_project.json b/schemas/dbt_project.json index 39f8b62..1ca488a 100644 --- a/schemas/dbt_project.json +++ b/schemas/dbt_project.json @@ -198,6 +198,10 @@ }, "additionalProperties": false }, + "invalidate_hard_deletes": { + "type": "boolean", + "description": "Configuration specific to snapshots used to invalidate hard deletes." + }, "jinja_string": { "type": "string", "pattern": "\\{\\{.*\\}\\}" @@ -527,6 +531,9 @@ "+grants": { "$ref": "#/$defs/grants" }, + "+invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "+meta": { "$ref": "#/$defs/meta" }, @@ -575,6 +582,9 @@ "grants": { "$ref": "#/$defs/grants" }, + "invalidate_hard_deletes": { + "$ref": "#/$defs/invalidate_hard_deletes" + }, "meta": { "$ref": "#/$defs/meta" }, diff --git a/tests/1.5/valid/dbt_project.yml b/tests/1.5/valid/dbt_project.yml index 384ec3a..b5e8c94 100644 --- a/tests/1.5/valid/dbt_project.yml +++ b/tests/1.5/valid/dbt_project.yml @@ -79,6 +79,7 @@ tests: snapshots: test: +target_schema: schema + +invalidate_hard_deletes: true +target_database: database +grants: select: ["role"] diff --git a/tests/1.6/valid/dbt_project.yml b/tests/1.6/valid/dbt_project.yml index 2e89b0a..843ca49 100644 --- a/tests/1.6/valid/dbt_project.yml +++ b/tests/1.6/valid/dbt_project.yml @@ -79,6 +79,7 @@ snapshots: test: +target_schema: schema +target_database: database + +invalidate_hard_deletes: true +grants: select: ['role']