{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateInvitation",
  "description": "CreateInvitation schema from Docupilot accounts API",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "role": {
      "enum": [
        "admin",
        "manager",
        "member",
        "billing_manager"
      ],
      "type": "string"
    },
    "workspace": {
      "type": "integer"
    }
  },
  "required": [
    "email",
    "role",
    "workspace"
  ]
}