Add date and time to contributions

Require date, but not time. Both in RFC 3339 format, as specified in
draft 07 of JSON Schema.
This commit is contained in:
Basti 2019-04-10 18:29:20 +02:00
parent a2f7bda9e3
commit 28a5e9f1fc
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67
2 changed files with 15 additions and 2 deletions

View File

@ -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"
],

View File

@ -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": {