Skip to content

Commit

Permalink
add example for schema existence test (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Jul 12, 2024
1 parent aa5d2d6 commit 5687529
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions metadata_test_examples/schema_check/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This test can be used to add tags for schema existence. Then this allows to filter in the API on tags.
29 changes: 29 additions & 0 deletions metadata_test_examples/schema_check/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
types:
- dataset
rules:
and:
-
property: schemaFields.length
operator: greater_than
values:
- '0'
actions:
passing:
-
type: add_tags
values:
- 'urn:li:tag:Has Schema'
-
type: remove_tags
values:
- 'urn:li:tag:Missing Schema'
failing:
-
type: add_tags
values:
- 'urn:li:tag:Missing Schema'
-
type: remove_tags
values:
- 'urn:li:tag:Has Schema'

0 comments on commit 5687529

Please sign in to comment.