Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 074fd8aeae | |||
| 824366c604 | |||
| 28a5e9f1fc | |||
| a2f7bda9e3 | |||
| 6207e41d9f | |||
| 75b8b00497 | |||
| 3b656d0ab9 | |||
| 831b36f61e | |||
| e0ec67aad4 |
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user