{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowchartai-org/json-schema/flowchartai-org-native-document-schema.json",
  "title": "NativeDocument",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/flowchartai-org-v1-openapi.json#/components/schemas/NativeDocument",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "editorKind",
    "formatVersion",
    "documentId",
    "revision",
    "diagramType",
    "xml"
  ],
  "properties": {
    "editorKind": {
      "const": "drawio"
    },
    "formatVersion": {
      "const": 1
    },
    "documentId": {
      "type": "string",
      "minLength": 1
    },
    "revision": {
      "type": "integer",
      "minimum": 0
    },
    "diagramType": {
      "type": "string"
    },
    "pageId": {
      "type": "string"
    }
  }
}