{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/past-dev/json-schema/past-dev-project-list-schema.json",
  "title": "ProjectList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/past-dev-management-api-openapi.yml#/components/schemas/ProjectList",
  "type": "object",
  "required": [
    "projects"
  ],
  "additionalProperties": false,
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Project"
      }
    }
  },
  "$defs": {
    "Project": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "description",
        "isArchived",
        "memoryCount",
        "ingestionCap",
        "monthIngestions",
        "creditCap",
        "monthCredits",
        "createdAt"
      ],
      "additionalProperties": false,
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "isArchived": {
          "type": "boolean"
        },
        "memoryCount": {
          "type": "integer"
        },
        "ingestionCap": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The project's monthly data-point cap. Null when the project carries none."
        },
        "monthIngestions": {
          "type": "integer",
          "description": "Data points accepted this calendar month."
        },
        "creditCap": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The project's monthly credit cap. Null when the project carries none."
        },
        "monthCredits": {
          "type": "number",
          "description": "Credits spent this calendar month."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}