Initial commit
This commit is contained in:
commit
4be1eca22b
16
package.json
Normal file
16
package.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "kosmos-schemas",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "JSON-LD schemas for Kosmos data formats",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"kosmos",
|
||||||
|
"ipfs",
|
||||||
|
"remotestorage"
|
||||||
|
],
|
||||||
|
"author": "Kosmos Contributors <mail@kosmos.org>",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
66
schemas/contribution.json
Normal file
66
schemas/contribution.json
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"id": "http://schemas.kosmos.org/Contribution",
|
||||||
|
"properties": {
|
||||||
|
"@context": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": "https://schema.kosmos.org/",
|
||||||
|
"default": "https://schema.kosmos.org/"
|
||||||
|
},
|
||||||
|
"@type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": "Contribution",
|
||||||
|
"default": "Contribution"
|
||||||
|
},
|
||||||
|
"contributor": {
|
||||||
|
"properties": {
|
||||||
|
"uri": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uri",
|
||||||
|
"title": "IPFS URI",
|
||||||
|
"description": "An IPFS object URI containing profile information of the contributor"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"ipfs"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Kind",
|
||||||
|
"items": {
|
||||||
|
"description": "Type/category of contribution",
|
||||||
|
"enum": [
|
||||||
|
"dev",
|
||||||
|
"design",
|
||||||
|
"ops",
|
||||||
|
"docs",
|
||||||
|
"community"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Description",
|
||||||
|
"description": "A summary of the contribution. Can be manually entered or automatically generated."
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uri",
|
||||||
|
"title": "URL",
|
||||||
|
"description": "A URL pointing to human-readable details of the contribution"
|
||||||
|
},
|
||||||
|
"details": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"contributor",
|
||||||
|
"kind",
|
||||||
|
"description"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user