{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "title": "PermissionsResponse",
  "description": "Permissions PI_JSON",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "permissions": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/Permission"
      }
    }
  },
  "definitions": {
    "Permission": {
      "type": "object",
      "required": [
        "id",
        "assigned"
      ],
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "description": "id of the permission"
        },
        "assigned": {
          "type": "boolean",
          "description": "True if the permission is assigned to the current user."
        }
      }
    }
  }
}
