Skip to content

Commit

Permalink
input: Add EDTF as an alternative date representation
Browse files Browse the repository at this point in the history
This adds EDTF, part of ISO 8601-2, as an alernative to the current,
more verbose, representation.
  • Loading branch information
bdarcus committed Jun 29, 2020
1 parent c982ed4 commit 69b4e49
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions schemas/input/csl-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,14 @@
"title": "Custom key-value pairs.",
"type": "object",
"description": "Used to store additional information that does not have a designated CSL JSON field. The note field can also store additional information, but custom is preferred for storing key-value pairs.",
"examples" : [
{"short_id": "xyz", "other-ids": ["alternative-id"]},
{"metadata-double-checked": true}
"examples": [
{
"short_id": "xyz",
"other-ids": ["alternative-id"]
},
{
"metadata-double-checked": true
}
]
}
},
Expand Down Expand Up @@ -468,8 +473,18 @@
}
]
},
"edtf-datatype": {
"title": "EDTF datatype pattern",
"description": "CSL input supports EDTF, validated against this regular expression.",
"type": "string"
},
"date-variable": {
"title": "Date content model.",
"description": "The CSL input model supports two different date representations: an EDTF string, and a more structured equivalent.",
"anyOf": [
{
"$ref": "#/definitions/edtf-datatype"
},
{
"properties": {
"date-parts": {
Expand All @@ -496,6 +511,9 @@
},
"raw": {
"type": "string"
},
"edtf": {
"$ref": "#/definitions/edtf-datatype"
}
},
"additionalProperties": false
Expand Down

0 comments on commit 69b4e49

Please sign in to comment.