{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/snyk/main/json-schema/snyk-auth-code-schema.json",
  "title": "AuthCode",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snyk-oauth2-api-openapi.yml#/components/schemas/AuthCode",
  "type": "object",
  "properties": {
    "grant_type": {
      "description": "The type of grant used in the request. Use `authorization_code` to exchange an authorization code for an access token.",
      "type": "string",
      "enum": [
        "authorization_code"
      ]
    },
    "code": {
      "description": "The authorization code received from the authorization server.",
      "type": "string"
    },
    "client_id": {
      "description": "The client ID of the client application.",
      "type": "string"
    },
    "client_secret": {
      "description": "The client secret of the client application.",
      "type": "string"
    },
    "code_verifier": {
      "description": "The code verifier used to generate the code challenge.",
      "type": "string"
    }
  },
  "required": [
    "grant_type",
    "code",
    "client_id",
    "client_secret",
    "code_verifier"
  ]
}