Merge pull request #5 from 67P/feature/contribution_date_time

Add date and time to contributions
This commit is contained in:
bumi 2019-04-16 08:36:20 +00:00 committed by GitHub
commit 824366c604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -28,4 +28,4 @@ if (result) {
## TODO ## TODO
* Add script for publishing both human- and machine-readable schemas to * Add script for publishing both human- and machine-readable schemas to
https://schemas.kosmos.org https://schema.kosmos.org

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", "id": "https://schema.kosmos.org/Contribution",
"properties": { "properties": {
"@context": { "@context": {
@ -26,6 +26,18 @@
], ],
"type": "object" "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": { "kind": {
"type": "string", "type": "string",
"title": "Kind", "title": "Kind",
@ -56,6 +68,7 @@
}, },
"required": [ "required": [
"contributor", "contributor",
"date",
"kind", "kind",
"description" "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", "id": "https://schema.kosmos.org/Contributor",
"properties": { "properties": {
"@context": { "@context": {