schemas/schemas/contribution.json
2017-06-05 14:28:58 +02:00

64 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://schema.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",
"description": "Type/category of contribution",
"enum": [
"dev",
"design",
"ops",
"docs",
"community"
]
},
"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"
}