Skip to content

Missing data_tests configuration in seeds properties #220

@franloza-clip

Description

@franloza-clip

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_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions