{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cogram-com/json-schema/cogram-com-project-type-list-v1-schema.json",
  "title": "ProjectTypeListV1",
  "description": "Paginated project-type list response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cogram-com-project-types-api-openapi.yml#/components/schemas/ProjectTypeListV1",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/ProjectTypeV1"
      },
      "type": "array",
      "title": "Data"
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total matches across all pages, not just this page."
    },
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size"
    }
  },
  "type": "object",
  "required": [
    "data",
    "total",
    "page",
    "page_size"
  ],
  "$defs": {
    "ProjectTypeV1": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        },
        "projects_count": {
          "type": "integer",
          "title": "Projects Count"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "Null if never updated."
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "color",
        "projects_count",
        "created_at",
        "updated_at"
      ],
      "title": "ProjectTypeV1",
      "description": "Project-type response."
    }
  }
}