diff --git a/schemas/latest/dbt_yml_files-latest.json b/schemas/latest/dbt_yml_files-latest.json index 36c8041..7eff10b 100644 --- a/schemas/latest/dbt_yml_files-latest.json +++ b/schemas/latest/dbt_yml_files-latest.json @@ -60,6 +60,25 @@ } } }, + "data_tests":{ + "type": "array", + "description": "Add descriptions to custom singular tests", + "items": { + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string", + "description": "The name of the singular test" + }, + "description":{ + "type": "string", + "description": "A description of the test's purpose, how it is implemented, and perhaps what you should do if it starts failing." + } + }, + "additionalProperties": false + } + }, "exposures": { "type": "array", "items": { diff --git a/tests/latest/valid/dbt_yml_files.yml b/tests/latest/valid/dbt_yml_files.yml index 3540fa8..3472065 100644 --- a/tests/latest/valid/dbt_yml_files.yml +++ b/tests/latest/valid/dbt_yml_files.yml @@ -326,4 +326,8 @@ sources: - name: my_unique_column description: This sure is a column data_tests: - - unique \ No newline at end of file + - unique + +data_tests: + - name: my_cool_custom_test + description: "This checks that all numbers are positive, if it fails you should talk to data engineering" \ No newline at end of file