diff --git a/schemas/latest/dbt_yml_files-latest.json b/schemas/latest/dbt_yml_files-latest.json index 4c9cce3..8e9ec04 100644 --- a/schemas/latest/dbt_yml_files-latest.json +++ b/schemas/latest/dbt_yml_files-latest.json @@ -725,6 +725,11 @@ "meta": { "type": "object" }, + "relation": { + "description": "Required when defining your snapshot in YAML instead of using a legacy snapshot block.", + "type": "string", + "default": "source('', '')" + }, "tests": { "type": "array", "items": { diff --git a/tests/latest/valid/dbt_yml_files.yml b/tests/latest/valid/dbt_yml_files.yml index 4072930..0afe22e 100644 --- a/tests/latest/valid/dbt_yml_files.yml +++ b/tests/latest/valid/dbt_yml_files.yml @@ -151,6 +151,14 @@ snapshots: - name: id description: cool column, eh? + - name: yaml_defined_snapshot + relation: source('jaffle_shop', 'orders') + config: + schema: snapshots + database: analytics + unique_key: id + strategy: timestamp + updated_at: updated_at # model groups