{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/visio/json-schema/visio-document-schema.json",
  "title": "Document",
  "description": "Represents the Visio document loaded in the embedded session",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/visio-documents-api-openapi.yml#/components/schemas/Document",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the document"
    },
    "title": {
      "type": "string",
      "description": "Title of the Visio document"
    },
    "application": {
      "$ref": "#/$defs/Application"
    },
    "view": {
      "$ref": "#/$defs/DocumentView"
    }
  },
  "$defs": {
    "Application": {
      "type": "object",
      "description": "Represents the Visio application host settings",
      "properties": {
        "showToolbars": {
          "type": "boolean",
          "description": "Whether toolbars are displayed in the Visio application"
        }
      }
    },
    "DocumentView": {
      "type": "object",
      "description": "View settings for the Visio document",
      "properties": {
        "disableHyperlinks": {
          "type": "boolean",
          "description": "Whether hyperlinks are disabled in the document view"
        },
        "disablePan": {
          "type": "boolean",
          "description": "Whether panning is disabled"
        },
        "disableZoom": {
          "type": "boolean",
          "description": "Whether zooming is disabled"
        },
        "hideDiagramBoundary": {
          "type": "boolean",
          "description": "Whether the diagram boundary is hidden"
        }
      }
    }
  }
}