From 9c349a85837c25d935041280ba31e6ebc4b93ef9 Mon Sep 17 00:00:00 2001 From: Bruce D'Arcus Date: Sun, 12 Jun 2022 05:50:25 -0400 Subject: [PATCH] input: Add 'format' property for edtf dates 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 --- schemas/input/csl-data.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schemas/input/csl-data.json b/schemas/input/csl-data.json index 79e0a02..2be4586 100644 --- a/schemas/input/csl-data.json +++ b/schemas/input/csl-data.json @@ -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)",