Skip to content

Commit ec2ebbd

Browse files
committed
fix(schema): Authors is recommended if CITATION.cff is absent
1 parent 7f1f673 commit ec2ebbd

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/schema/rules/dataset_metadata.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ dataset_description:
88
DatasetType: recommended
99
License: recommended
1010
Authors:
11-
level: recommended
12-
issue:
13-
code: NO_AUTHORS
14-
message: |
15-
The Authors field of dataset_description.json should contain an array of fields -
16-
with one author per field. This was triggered because there are no authors, which
17-
will make DOI registration from dataset metadata impossible.
11+
level: optional
12+
level_addendum: recommended if no CITATION.cff file is present
1813
Acknowledgements: optional
1914
HowToAcknowledge: optional
2015
Funding: optional
@@ -24,6 +19,20 @@ dataset_description:
2419
GeneratedBy: recommended
2520
SourceDatasets: recommended
2621

22+
dataset_authors:
23+
selectors:
24+
- path == "/dataset_description.json"
25+
- '!exists("CITATION.cff", "dataset")'
26+
fields:
27+
Authors:
28+
level: recommended
29+
issue:
30+
code: NO_AUTHORS
31+
message: |
32+
The Authors field of dataset_description.json should contain an array of fields -
33+
with one author per field. This was triggered because there are no authors, which
34+
will make DOI registration from dataset metadata impossible.
35+
2736
derivative_description:
2837
selectors:
2938
- path == "/dataset_description.json"

0 commit comments

Comments
 (0)