-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Bug Description
The latest/dbt_yml_files-latest schema does not contain a data_tests property in seeds that causes YAML validators to accept only data tests defined as tests in the Seed properties.
Reproduction
Schema configuration (.vscode/settings.json):
{
"yaml.schemas": {
"https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dbt_yml_files-latest.json": [
"/**/*.yml",
"!profiles.yml",
"!dbt_project.yml",
"!packages.yml",
"!selectors.yml",
"!profile_template.yml",
"!package-lock.yml"
],
}
}seeds.yml:
version: 2
seeds:
- name: test_seed
data_tests:
- dbt_utils.unique_combination_of_columns:
arguments:
combination_of_columns:
- first_column
- second_columnValidation errors: Property data_tests is not allowed.yaml-schema: dbt YAML files(513)
Expected Behavior
The schema should accept data_tests under seeds, similar to how it does for models and snapshots.
Actual Behavior
The validator only accepts tests configuration, rejecting data_tests configuration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels