@mapeo/schema
Version:
JSON schema and flow types for Mapeo
41 lines (40 loc) • 742 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://mapeo.world/schemas/role/v1.json",
"title": "Role",
"type": "object",
"allOf":[{"$ref": "../common/v1.json"}],
"properties": {
"schemaType": {
"type": "string",
"pattern": "^Role$"
},
"role": {
"type": "string",
"enum": [
"project-creator",
"coordinator",
"member",
"non-member"
]
},
"projectId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"role:set"
]
},
"signature": {
"type": "string"
},
"authorIndex": {
"type": "integer"
},
"deviceIndex": {
"type": "integer"
}
}
}