{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://redbook.fun/specification/1.0/schemas/view-render-context.schema.json",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "minLength": 1
    },
    "instanceId": {
      "type": "string",
      "minLength": 1
    },
    "viewboxId": {
      "type": "string",
      "minLength": 1
    },
    "generationId": {
      "type": "string",
      "minLength": 1
    },
    "renderRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "section": {
      "type": "string"
    },
    "viewState": {
      "$ref": "https://redbook.fun/specification/1.0/schemas/value.schema.json#/$defs/map"
    }
  },
  "required": [
    "documentId",
    "instanceId",
    "viewboxId",
    "generationId",
    "renderRevision"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "section"
      ]
    },
    {
      "required": [
        "viewState"
      ]
    }
  ]
}
