11 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
75b8b00497 1.1.2 2017-06-07 13:05:34 +02:00
3b656d0ab9 Merge pull request #1 from 67P/fixes
Minor wording/typo fixes
2017-06-07 13:05:03 +02:00
831b36f61e Change wording of description 2017-06-07 12:28:28 +02:00
e0ec67aad4 Fix property name 2017-06-07 12:27:32 +02:00
4 changed files with 26 additions and 9 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.1",
"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": {
@@ -14,7 +14,7 @@
},
"contributor": {
"properties": {
"uri": {
"ipfs": {
"type": "string",
"format": "uri",
"title": "IPFS URI",
@@ -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": {
@@ -15,7 +15,7 @@
"kind": {
"type": "string",
"title": "Kind",
"description": "Type/category of contribution",
"description": "Category of contributor",
"enum": [
"person",
"organization",