From fcaf4c27470001579f3f56a55b4d3ae7b06fc9bc Mon Sep 17 00:00:00 2001 From: Vincenzo Tilotta Date: Tue, 1 Oct 2019 00:41:19 +0200 Subject: [PATCH] Date and time compliant with RFC3339 #5 --- Formal/schema/schemas/ballot_coding.schema.json | 3 ++- Formal/schema/schemas/ballot_info.schema.json | 6 ++++-- Formal/schema/schemas/election_parameters.schema.json | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Formal/schema/schemas/ballot_coding.schema.json b/Formal/schema/schemas/ballot_coding.schema.json index 4944745..8d27a27 100644 --- a/Formal/schema/schemas/ballot_coding.schema.json +++ b/Formal/schema/schemas/ballot_coding.schema.json @@ -246,7 +246,8 @@ "$ref": "#/definitions/County" }, "date": { - "type": "string" + "type": "string", + "format": "date" }, "districts": { "items": { diff --git a/Formal/schema/schemas/ballot_info.schema.json b/Formal/schema/schemas/ballot_info.schema.json index 8cad890..7ab48b3 100644 --- a/Formal/schema/schemas/ballot_info.schema.json +++ b/Formal/schema/schemas/ballot_info.schema.json @@ -11,11 +11,13 @@ }, "date": { "description": "The date the ballot was encrypted.", - "type": "string" + "type": "string", + "format": "date" }, "time": { "description": "The time the ballot was encrypted.", - "type": "string" + "type": "string", + "format": "time" }, "tracker": { "description": "The tracker code generated for this ballot.", diff --git a/Formal/schema/schemas/election_parameters.schema.json b/Formal/schema/schemas/election_parameters.schema.json index e4bbbd9..84fc9fb 100644 --- a/Formal/schema/schemas/election_parameters.schema.json +++ b/Formal/schema/schemas/election_parameters.schema.json @@ -7,7 +7,8 @@ "properties": { "date": { "description": "The date on which the election takes place.", - "type": "string" + "type": "string", + "format": "date" }, "location": { "description": "The location where the election takes place",