Skip to content

Commit

Permalink
fix(schema): Authors is recommended if CITATION.cff is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 29, 2024
1 parent 7f1f673 commit ec2ebbd
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/schema/rules/dataset_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ dataset_description:
DatasetType: recommended
License: recommended
Authors:
level: recommended
issue:
code: NO_AUTHORS
message: |
The Authors field of dataset_description.json should contain an array of fields -
with one author per field. This was triggered because there are no authors, which
will make DOI registration from dataset metadata impossible.
level: optional
level_addendum: recommended if no CITATION.cff file is present
Acknowledgements: optional
HowToAcknowledge: optional
Funding: optional
Expand All @@ -24,6 +19,20 @@ dataset_description:
GeneratedBy: recommended
SourceDatasets: recommended

dataset_authors:
selectors:
- path == "/dataset_description.json"
- '!exists("CITATION.cff", "dataset")'
fields:
Authors:
level: recommended
issue:
code: NO_AUTHORS
message: |
The Authors field of dataset_description.json should contain an array of fields -
with one author per field. This was triggered because there are no authors, which
will make DOI registration from dataset metadata impossible.
derivative_description:
selectors:
- path == "/dataset_description.json"
Expand Down

0 comments on commit ec2ebbd

Please sign in to comment.