From afcd0a2fc94279e9e405d5663227f7a394a7c584 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 26 Feb 2024 17:53:23 +0100 Subject: [PATCH] add schema validation from dbt-labs --- .vscode/settings.json | 21 ++++++++++++++++++++- models/staging/stripe/schema.yml | 1 - 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ddb2cf2..d8d206c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,5 +11,24 @@ ] }, "dbt.enableNewLineagePanel": true, - "dbt.enableNewDocsPanel": true + "dbt.enableNewDocsPanel": true, + "yaml.schemas": { + "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/dbt_yml_files.json": [ + "/**/*.yml", + "!profiles.yml", + "!dbt_project.yml", + "!packages.yml", + "!selectors.yml", + "!profile_template.yml" + ], + "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/dbt_project.json": [ + "dbt_project.yml" + ], + "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/selectors.json": [ + "selectors.yml" + ], + "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/packages.json": [ + "packages.yml" + ] + }, } \ No newline at end of file diff --git a/models/staging/stripe/schema.yml b/models/staging/stripe/schema.yml index e162313..488143f 100644 --- a/models/staging/stripe/schema.yml +++ b/models/staging/stripe/schema.yml @@ -6,7 +6,6 @@ models: Individual transactions happening in our different Stripe currency accounts. You can read more about this object here: https://docs.stripe.com/api/balance_transactions/object. - columns: - name: id data_type: character varying