{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TokenRequest",
  "title": "TokenRequest",
  "type": "object",
  "required": [
    "scopes",
    "label"
  ],
  "properties": {
    "scopes": {
      "type": "string",
      "description": "The OAuth scopes for the token."
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "The label for the token."
    },
    "expiry": {
      "type": "string",
      "format": "date-time",
      "description": "When the token should expire."
    }
  }
}