{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UserGrant",
  "title": "UserGrant",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the grant."
    },
    "clientID": {
      "type": "string",
      "description": "ID of the client."
    },
    "user_id": {
      "type": "string",
      "description": "ID of the user."
    },
    "audience": {
      "type": "string",
      "description": "Audience of the grant."
    },
    "scope": {
      "type": "array",
      "description": "Scopes included in this grant.",
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  }
}