{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/portravo-com/json-schema/portravo-com-project-list-schema.json",
  "title": "ProjectList",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/portravo-com-openapi.json#/components/schemas/ProjectList",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectSummary"
      },
      "maxItems": 50
    },
    "nextOffset": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Pass as offset for the next page; null means no further page."
    }
  },
  "required": [
    "projects",
    "nextOffset"
  ],
  "$defs": {
    "ProjectSummary": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "description": "Owned project ID. Use this value in subsequent project routes."
        },
        "name": {
          "type": "string"
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "extracting",
            "review",
            "priced",
            "final",
            "failed"
          ]
        },
        "metroCode": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "name",
        "address",
        "status",
        "metroCode",
        "updatedAt"
      ]
    }
  }
}