{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-document-overview-schema.json",
  "title": "DocumentOverview",
  "description": "One row of GET /documents: a light listing entry, not the document. `pages` is the page COUNT; GET /documents/{id} returns the pages themselves.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-documents-api-openapi.yml#/components/schemas/DocumentOverview",
  "type": "object",
  "required": [
    "id",
    "name",
    "pages"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "pages": {
      "type": "integer",
      "description": "Number of pages"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "description": "Output format of the first page's canvas, when it names one"
    },
    "canvas": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "output_format": {
          "type": "string",
          "description": "Set when the first page is a document canvas"
        }
      }
    },
    "sketch": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "t": {
            "type": "string"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "w": {
            "type": "number"
          },
          "h": {
            "type": "number"
          }
        }
      },
      "description": "Top-level layer boxes (t = layer type) for a thumbnail sketch before a preview exists"
    },
    "composition": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Top-level layer count per type, e.g. {\"text\": 2, \"image\": 1}; group children are not counted"
    }
  }
}