From a2f7bda9e3c0e465aa804df85245f382c9b64249 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 19 Jun 2018 17:48:07 +0200 Subject: [PATCH 1/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1270699..fe09ac2 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,4 @@ if (result) { ## TODO * Add script for publishing both human- and machine-readable schemas to - https://schemas.kosmos.org + https://schema.kosmos.org From 28a5e9f1fc2e083165e4e02ce3361c3f4fafa592 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 10 Apr 2019 18:29:20 +0200 Subject: [PATCH 2/2] Add date and time to contributions Require date, but not time. Both in RFC 3339 format, as specified in draft 07 of JSON Schema. --- schemas/contribution.json | 15 ++++++++++++++- schemas/contributor.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/schemas/contribution.json b/schemas/contribution.json index fcea8e0..9c4ee9f 100644 --- a/schemas/contribution.json +++ b/schemas/contribution.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft-04/schema#", + "$schema": "https://json-schema.org/draft-07/schema#", "id": "https://schema.kosmos.org/Contribution", "properties": { "@context": { @@ -26,6 +26,18 @@ ], "type": "object" }, + "date": { + "type": "string", + "format": "date", + "title": "Date", + "description": "Date of contribution (RFC 3339 full-date)" + }, + "time": { + "type": "string", + "format": "time", + "title": "Time", + "description": "Time of contribution (RFC 3339 full-time)" + }, "kind": { "type": "string", "title": "Kind", @@ -56,6 +68,7 @@ }, "required": [ "contributor", + "date", "kind", "description" ], diff --git a/schemas/contributor.json b/schemas/contributor.json index 7978f7b..544858f 100644 --- a/schemas/contributor.json +++ b/schemas/contributor.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft-04/schema#", + "$schema": "https://json-schema.org/draft-07/schema#", "id": "https://schema.kosmos.org/Contributor", "properties": { "@context": {