9 Commits

Author SHA1 Message Date
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 24 additions and 8 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,18 +1,21 @@
{ {
"name": "kosmos-schemas", "name": "kosmos-schemas",
"version": "1.1.1", "version": "2.0.0",
"description": "JSON-LD schemas for Kosmos data formats", "description": "JSON-LD schemas for Kosmos data formats",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [ "keywords": [
"kosmos",
"ipfs", "ipfs",
"kosmos",
"remotestorage" "remotestorage"
], ],
"author": "Kosmos Contributors <mail@kosmos.org>", "author": "Kosmos Contributors <mail@kosmos.org>",
"contributors": [], "contributors": [
"Sebastian Kippe (https://sebastian.kip.pe)",
"Garret Alfert (http://garretalfert.com)"
],
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "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", "id": "https://schema.kosmos.org/Contribution",
"properties": { "properties": {
"@context": { "@context": {
@@ -14,7 +14,7 @@
}, },
"contributor": { "contributor": {
"properties": { "properties": {
"uri": { "ipfs": {
"type": "string", "type": "string",
"format": "uri", "format": "uri",
"title": "IPFS URI", "title": "IPFS URI",
@@ -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": {
@@ -15,7 +15,7 @@
"kind": { "kind": {
"type": "string", "type": "string",
"title": "Kind", "title": "Kind",
"description": "Type/category of contribution", "description": "Category of contributor",
"enum": [ "enum": [
"person", "person",
"organization", "organization",