metamaps--metamaps/doc/api/schemas/_map.json
Connor Turland 68f0e91259 track forks (#994)
* track forks

* update api and docs

* fix tests
2016-12-18 16:17:51 -05:00

158 lines
2.7 KiB
JSON

{
"name": "Map",
"type": "object",
"properties": {
"id": {
"$ref": "_id.json"
},
"name": {
"type": "string"
},
"desc": {
"type": "string"
},
"permission": {
"$ref": "_permission.json"
},
"screenshot": {
"format": "uri",
"type": "string"
},
"starred": {
"type": "boolean"
},
"created_at": {
"$ref": "_datetimestamp.json"
},
"updated_at": {
"$ref": "_datetimestamp.json"
},
"user_id": {
"$ref": "_id.json"
},
"user": {
"$ref": "_user.json"
},
"source_id": {
"$ref": "_optid.json"
},
"source": {
"$ref": "_map.json"
},
"topic_ids": {
"type": "array",
"items": {
"$ref": "_id.json"
}
},
"topics": {
"type": "array",
"items": {
"$ref": "_topic.json"
}
},
"synapse_ids": {
"type": "array",
"items": {
"$ref": "_id.json"
}
},
"synapses": {
"type": "array",
"items": {
"$ref": "_synapse.json"
}
},
"mapping_ids": {
"type": "array",
"items": {
"$ref": "_id.json"
}
},
"mappings": {
"type": "array",
"items": {
"$ref": "_mapping.json"
}
},
"contributor_ids": {
"type": "array",
"items": {
"$ref": "_id.json"
}
},
"contributors": {
"type": "array",
"items": {
"$ref": "_user.json"
}
},
"collaborator_ids": {
"type": "array",
"items": {
"$ref": "_id.json"
}
},
"collaborators": {
"type": "array",
"items": {
"$ref": "_user.json"
}
}
},
"required": [
"id",
"name",
"desc",
"permission",
"screenshot",
"starred",
"created_at",
"updated_at"
],
"allOf": [
{
"oneOf": [
{ "required": [ "user_id" ] },
{ "required": [ "user" ] }
]
},
{
"oneOf": [
{ "required": [ "source_id" ] },
{ "required": [ "source" ] }
]
},
{
"oneOf": [
{ "required": [ "topic_ids" ] },
{ "required": [ "topics" ] }
]
},
{
"oneOf": [
{ "required": [ "synapse_ids" ] },
{ "required": [ "synapses" ] }
]
},
{
"oneOf": [
{ "required": [ "mapping_ids" ] },
{ "required": [ "mappings" ] }
]
},
{
"oneOf": [
{ "required": [ "contributor_ids" ] },
{ "required": [ "contributors" ] }
]
},
{
"oneOf": [
{ "required": [ "collaborator_ids" ] },
{ "required": [ "collaborators" ] }
]
}
]
}