Skip to content

Commit

Permalink
Update bids-validator/src/validators/citation.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
rwblair and effigies authored Aug 30, 2024
1 parent 43baa36 commit 81a6aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bids-validator/src/validators/citation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export async function citationValidate(
if (!validate(citation)) {
for (const err of validate.errors as DefinedError[]) {
dsContext.issues.add({
code: 'JSON_SCHEMA_VALIDATION_ERROR',
code: 'CITATION_CFF_VALIDATION_ERROR',
subCode: err['instancePath'],
issueMessage: err['message'],
location: citationFilename,
})
Expand Down

0 comments on commit 81a6aca

Please sign in to comment.