Skip to content

Commit

Permalink
input: Add 'format' property for edtf dates
Browse files Browse the repository at this point in the history
This allow use of an edtf.js-based validator on the dates.

https://github.com/retorquere/json-schema-edtf

The json schema spec says tools should ignore the property
if they don't know what to do with its value.

Close #421
  • Loading branch information
bdarcus committed Jun 20, 2022
1 parent 85c1c83 commit 879151d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schemas/input/csl-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"edtf-string": {
"title": "EDTF date string",
"description": "CSL input supports EDTF, levels 0 and 1.",
"type":"string"
"type":"string",
"format": "edtf/level-1+season-intervals"
},
"date-object-v2": {
"title": "Date Object (v2)",
Expand Down

0 comments on commit 879151d

Please sign in to comment.