{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-oauth-protected-resource-metadata-schema.json",
  "title": "OAuthProtectedResourceMetadata",
  "description": "OAuth Protected Resource Metadata (RFC 9728).\nDescribes the protected resource, its authorization servers, supported scopes, and bearer token methods.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-openid-connect-api-openapi.yml#/components/schemas/OAuthProtectedResourceMetadata",
  "type": "object",
  "required": [
    "resource",
    "authorization_servers"
  ],
  "properties": {
    "resource": {
      "type": "string",
      "format": "uri",
      "description": "Protected resource identifier"
    },
    "authorization_servers": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Authorization servers that can issue tokens for this resource"
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth scopes supported by this resource"
    },
    "bearer_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Methods supported for sending bearer tokens"
    },
    "resource_documentation": {
      "type": "string",
      "format": "uri",
      "description": "URL to human-readable documentation for the resource"
    }
  }
}