Skip to content

Commit fdca7ec

Browse files
rwblaireffigies
andauthored
fix(schema): Add hint to see if dataset name contains a visible character (#1879)
* add check to see if dataset name contains a visible character * Update src/schema/rules/checks/hints.yaml Co-authored-by: Chris Markiewicz <[email protected]> * js regex expects double slash for character classes in strings * Revert "js regex expects double slash for character classes in strings" This reverts commit 1569607. --------- Co-authored-by: Chris Markiewicz <[email protected]>
1 parent b1be676 commit fdca7ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/schema/rules/checks/hints.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ TooFewAuthors:
3434
checks:
3535
- length(json.Authors) > 1
3636

37+
# 115
38+
EmptyDatasetName:
39+
issue:
40+
code: EMPTY_DATASET_NAME
41+
message: |
42+
The Name field of dataset_description.json is present but empty of visible characters.
43+
level: warning
44+
selectors:
45+
- path == '/dataset_description.json'
46+
- type(json.Name) != 'null'
47+
checks:
48+
- match(json.Name, '\S')
49+
3750
### Functional files
3851

3952
# 85

0 commit comments

Comments
 (0)