7 Commits

Author SHA1 Message Date
a073d4bb88 2.1.0 2019-05-10 13:12:32 +02:00
f1077ffe36 Add new "special" contribution kind
We agreed to use this for special contribution items like e.g. the
initial kredits balance for core contributors from before we tracked
everything.
2019-05-10 13:10:51 +02:00
074fd8aeae 2.0.0 2019-04-16 13:11:07 +02:00
824366c604 Merge pull request #5 from 67P/feature/contribution_date_time
Add date and time to contributions
2019-04-16 08:36:20 +00:00
28a5e9f1fc Add date and time to contributions
Require date, but not time. Both in RFC 3339 format, as specified in
draft 07 of JSON Schema.
2019-04-10 18:30:46 +02:00
a2f7bda9e3 Fix typo 2018-06-19 17:48:07 +02:00
6207e41d9f Update contributor info 2017-06-07 13:22:06 +02:00
4 changed files with 24 additions and 7 deletions

View File

@@ -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

View File

@@ -1,18 +1,21 @@
{
"name": "kosmos-schemas",
"version": "1.1.2",
"version": "2.1.0",
"description": "JSON-LD schemas for Kosmos data formats",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"kosmos",
"ipfs",
"kosmos",
"remotestorage"
],
"author": "Kosmos Contributors <mail@kosmos.org>",
"contributors": [],
"contributors": [
"Sebastian Kippe (https://sebastian.kip.pe)",
"Garret Alfert (http://garretalfert.com)"
],
"license": "MIT",
"repository": {
"type": "git",

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",
@@ -35,7 +47,8 @@
"design",
"ops",
"docs",
"community"
"community",
"special"
]
},
"description": {
@@ -56,6 +69,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": {