Skip to content

Commit

Permalink
fix(schema): Add hint to see if dataset name contains a visible chara…
Browse files Browse the repository at this point in the history
…cter (#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]>
  • Loading branch information
rwblair and effigies authored Aug 1, 2024
1 parent b1be676 commit fdca7ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/schema/rules/checks/hints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ TooFewAuthors:
checks:
- length(json.Authors) > 1

# 115
EmptyDatasetName:
issue:
code: EMPTY_DATASET_NAME
message: |
The Name field of dataset_description.json is present but empty of visible characters.
level: warning
selectors:
- path == '/dataset_description.json'
- type(json.Name) != 'null'
checks:
- match(json.Name, '\S')

### Functional files

# 85
Expand Down

0 comments on commit fdca7ec

Please sign in to comment.