{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xn-s7y-xn-3ds443g/json-schema/xn-s7y-xn-3ds443g-oauth-authorization-server-metadata-schema.json",
  "title": "OAuthAuthorizationServerMetadata",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xn-s7y-xn-3ds443g-openapi.json#/components/schemas/OAuthAuthorizationServerMetadata",
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "registration_endpoint",
    "scopes_supported",
    "response_types_supported",
    "grant_types_supported",
    "token_endpoint_auth_methods_supported",
    "code_challenge_methods_supported"
  ],
  "properties": {
    "issuer": {
      "type": "string"
    },
    "authorization_endpoint": {
      "type": "string"
    },
    "token_endpoint": {
      "type": "string"
    },
    "registration_endpoint": {
      "type": "string"
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "links:create",
          "links:read",
          "links:update",
          "batches:create"
        ]
      }
    },
    "response_types_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "code"
        ]
      }
    },
    "grant_types_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "token_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "none"
        ]
      }
    },
    "code_challenge_methods_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "S256"
        ]
      }
    },
    "resource": {
      "type": "string"
    },
    "client_id_metadata_document_supported": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "revocation_endpoint": {
      "type": "string"
    }
  }
}