-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example for schema existence test (#6)
- Loading branch information
1 parent
aa5d2d6
commit 5687529
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |