{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zindex-ai/json-schema/zindex-ai-one-version-link-page-schema.json",
  "title": "OneVersionLinkPage",
  "description": "A version or latest share link's page answer: the one version it shows, with no diagram ID, version number or version list",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zindex-ai-openapi.json#/components/schemas/OneVersionLinkPage",
  "type": "object",
  "required": [
    "access",
    "shows",
    "name",
    "at",
    "sharedAt",
    "ends",
    "fingerprint",
    "width",
    "height"
  ],
  "properties": {
    "access": {
      "type": "string",
      "const": "link"
    },
    "shows": {
      "type": "string",
      "enum": [
        "version",
        "latest"
      ],
      "description": "version: one version, fixed; latest: the newest version when the link is opened"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who the link is for; null when it has no name"
    },
    "ends": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the link stops, as a date-time: 23:59:59 UTC on its last day; null for no end date"
    },
    "at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the version shown was saved"
    },
    "sharedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the link was made"
    },
    "fingerprint": {
      "type": [
        "string",
        "null"
      ],
      "description": "The content hash of the version shown, sha256:<hex>, whose first 8 digits the picture prints; for a latest link it follows each new version. Null when it can't be read"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "The width of the version's image in pixels, as its SVG declares it; the PNG is the same size. Null only for an image that declares no size"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "The height of the version's image in pixels; the PNG is the same size"
    }
  }
}