{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayushrai-site/json-schema/ayushrai-site-project-list-response-schema.json",
  "title": "ProjectListResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayushrai-site-openapi.json#/components/schemas/ProjectListResponse",
  "type": "object",
  "required": [
    "projects",
    "count",
    "nextCursor"
  ],
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicProject"
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of projects in this page"
    },
    "nextCursor": {
      "$ref": "#/$defs/NextCursor"
    }
  },
  "$defs": {
    "NextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as cursor to fetch the next page. null means this is the last page. Treat it as opaque."
    },
    "PublicProject": {
      "type": "object",
      "required": [
        "slug",
        "title",
        "summary",
        "type",
        "category",
        "status",
        "yearStart",
        "technologies",
        "archive",
        "pagePath",
        "htmlUrl"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "product",
            "project",
            "client",
            "experiment",
            "open-source"
          ]
        },
        "category": {
          "type": "string",
          "enum": [
            "tooling",
            "education",
            "client",
            "studio",
            "web",
            "personal",
            "data"
          ]
        },
        "status": {
          "type": "string"
        },
        "yearStart": {
          "type": "integer"
        },
        "yearEnd": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "const": "present"
            }
          ]
        },
        "technologies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "links": {
          "type": "object",
          "properties": {
            "demo": {
              "type": "string",
              "format": "uri"
            },
            "github": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "archive": {
          "type": "boolean"
        },
        "workPath": {
          "type": "string",
          "description": "On-site case study, when one exists"
        },
        "pagePath": {
          "type": "string"
        },
        "htmlUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}