{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yonyon-ai/json-schema/yonyon-ai-project-list-schema.json",
  "title": "ProjectList",
  "description": "A cursor-paginated page of projects.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yonyon-ai-openapi.yml#/components/schemas/ProjectList",
  "type": "object",
  "required": [
    "count",
    "total",
    "nextCursor",
    "next_cursor",
    "has_more",
    "projects"
  ],
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of projects in this page."
    },
    "total": {
      "type": "integer",
      "description": "Total projects across all pages for the current filter."
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque base64url cursor for the next page, or null when this is the last page."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Snake_case alias of nextCursor, for agents that look up next_cursor."
    },
    "has_more": {
      "type": "boolean",
      "description": "True when another page is available. Equivalent to next_cursor != null."
    },
    "projects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Project"
      }
    }
  },
  "$defs": {
    "Project": {
      "type": "object",
      "required": [
        "name",
        "desc",
        "url"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Project name."
        },
        "desc": {
          "type": "string",
          "description": "One-line description."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Canonical project page on yonyon.ai."
        }
      }
    }
  }
}