Skip to content

Commit

Permalink
SCHEMA: Drop to warning, warn on other duplicated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 12, 2023
1 parent d19363e commit 186c859
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/schema/rules/checks/dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,18 @@ UnknownVersion:
checks:
- intersects([json.BIDSVersion], schema.meta.versions)

SingleSourceAuthors:
SingleSourceCitationFields:
issue:
code: AUTHORS_AND_CITATION_FILE_MUTUALLY_EXCLUSIVE
level: error
level: warning
message: |
CITATION.cff file found. The "Authors" field of dataset_description.json
must be removed to avoid inconsistency.
CITATION.cff file found. The "Authors", "HowToAckowledge", "License",
and "ReferencesAndLinks" fields of dataset_description.json
should be removed to avoid inconsistency.
selectors:
- path == 'CITATION.cff'
checks:
- '!("Authors" in dataset.dataset_description)'
- '!("HowToAcknowledge" in dataset.dataset_description)'
- '!("License" in dataset.dataset_description)'
- '!("ReferencesAndLinks" in dataset.dataset_description)'

0 comments on commit 186c859

Please sign in to comment.