{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-feed-schema.json",
  "title": "Feed",
  "description": "Feed",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-activity-api-openapi.yml#/components/schemas/feed",
  "type": "object",
  "properties": {
    "timeline_url": {
      "type": "string"
    },
    "user_url": {
      "type": "string"
    },
    "current_user_public_url": {
      "type": "string"
    },
    "current_user_url": {
      "type": "string"
    },
    "current_user_actor_url": {
      "type": "string"
    },
    "current_user_organization_url": {
      "type": "string"
    },
    "current_user_organization_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "security_advisories_url": {
      "type": "string"
    },
    "repository_discussions_url": {
      "type": "string",
      "description": "A feed of discussions for a given repository."
    },
    "repository_discussions_category_url": {
      "type": "string",
      "description": "A feed of discussions for a given repository and category."
    },
    "_links": {
      "type": "object",
      "properties": {
        "timeline": {
          "$ref": "#/$defs/link-with-type"
        },
        "user": {
          "$ref": "#/$defs/link-with-type"
        },
        "security_advisories": {
          "$ref": "#/$defs/link-with-type"
        },
        "current_user": {
          "$ref": "#/$defs/link-with-type"
        },
        "current_user_public": {
          "$ref": "#/$defs/link-with-type"
        },
        "current_user_actor": {
          "$ref": "#/$defs/link-with-type"
        },
        "current_user_organization": {
          "$ref": "#/$defs/link-with-type"
        },
        "current_user_organizations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/link-with-type"
          }
        },
        "repository_discussions": {
          "$ref": "#/$defs/link-with-type"
        },
        "repository_discussions_category": {
          "$ref": "#/$defs/link-with-type"
        }
      },
      "required": [
        "timeline",
        "user"
      ]
    }
  },
  "required": [
    "_links",
    "timeline_url",
    "user_url"
  ],
  "$defs": {
    "link-with-type": {
      "title": "Link With Type",
      "description": "Hypermedia Link with Type",
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "href",
        "type"
      ]
    }
  }
}