@mapeo/schema
Version:
JSON schema and flow types for Mapeo
37 lines (36 loc) • 691 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://mapeo.world/schemas/device/v1.json",
"title": "Device",
"type": "object",
"allOf":[{"$ref": "../common/v1.json"}],
"properties": {
"schemaType": {
"type": "string",
"pattern": "^Device$"
},
"action": {
"type": "string",
"enum": [
"device:add",
"device:remove",
"device:restore"
]
},
"authorId": {
"type": "string"
},
"projectId": {
"type": "string"
},
"signature": {
"type": "string"
},
"authorIndex": {
"type": "integer"
},
"deviceIndex": {
"type": "integer"
}
}
}