{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-oauth-exchange-request-schema.json",
  "title": "OAuthExchangeRequest",
  "description": "Request to exchange OAuth authorization code for tokens",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-oauth-api-openapi.yml#/components/schemas/OAuthExchangeRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "code": {
      "type": "string",
      "description": "OAuth authorization code"
    },
    "provider": {
      "type": "string",
      "description": "OAuth provider name"
    },
    "redirectUri": {
      "type": "string",
      "format": "uri",
      "description": "Redirect URI used in authorization request"
    }
  },
  "required": [
    "code",
    "provider",
    "redirectUri"
  ]
}