dbt-labs / dbt-labs/dbt-jsonschema

Missing `data_tests` configuration in `seeds` properties

Open
#220 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
169
Forks
61
Avg merge
1m
Merged PRs (30d)
1

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](https://docs.getdbt.com/reference/seed-properties).

## Reproduction
**Schema configuration (.vscode/settings.json):**

```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:**

```yaml
version: 2

seeds:
- name: test_seed
data_tests:
- dbt_utils.unique_combination_of_columns:
arguments:
combination_of_columns:
- first_column
- second_column
````

**Validation 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.