{
  "$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"
    }
  }
}
