ACKW 1.0 file format

File structure, consistency rules, and validation for the ACKW 1.0 format.

ACKW is a UTF-8 JSON document. Its usual extension is .ackw. ACKword also opens .json files that follow the same contract. The producing application is independent of the format.

The ACKW 1.0 contract combines the JSON Schema with the conformance rules on this page. The schema defines the allowed keys, node variants, types, ranges and defaults. The rules below define constraints across fields and objects. Validate both when generating files for ACKword.

The schema uses JSON Schema Draft 2020-12. Its identifier is urn:ack:ackw:1.0. Unknown keys in strict objects are rejected. Properties with defaults may be omitted where the schema permits it, and ACKword fills them on import. Supply null only where the schema permits it. Emit JSON numbers as numbers and retain the order of content arrays.

File structure

{
  "format": "ackw",
  "version": "1.0",
  "metadata": {
    "id": "documentUuid",
    "title": "My article",
    "language": "en-US",
    "authors": ["Alice"]
  },
  "generator": { "name": "ACKword", "version": "0.0.1" },
  "settings": {
    "styles": [
      {
        "id": "body",
        "name": "Body",
        "level": 0,
        "text": { "fontFamily": "carlito", "fontSizePx": 13 },
        "paragraph": { "alignment": "left", "lineSpacing": 1.5 }
      }
    ]
  },
  "sections": [
    {
      "id": "sectionUuid",
      "name": "Article",
      "page": {
        "widthMm": 210,
        "heightMm": 297,
        "margin": { "topMm": 20, "rightMm": 20, "bottomMm": 20, "leftMm": 20 }
      },
      "columns": { "count": 2, "gapMm": 8, "balance": "sequential" }
    }
  ],
  "document": {
    "type": "document",
    "content": [
      {
        "type": "section",
        "attrs": { "sectionId": "sectionUuid" },
        "content": [
          {
            "type": "paragraph",
            "attrs": { "id": "paragraphUuid", "styleId": "body" },
            "content": [{ "type": "text", "text": "Hello." }]
          }
        ]
      }
    ]
  }
}
  • format is "ackw" and version is "1.0". generator identifies the tool and version that wrote the file.
  • metadata stores the stable document ID, title, language, authors and optional ISO 8601 UTC timestamps createdAt and modifiedAt ending in Z.
  • settings stores shared styles and global reference settings. sections defines pages, columns and repeated regions. document.content references each section definition exactly once and sets their reading order.
  • The file stores editable source content. The app reconstructs pagination and caches and manages undo history, selection, zoom and interface state.

Content, IDs and styles

Body blocks include paragraph, heading, bulletList, orderedList, cell and pageBreak. Lists contain listItem blocks. Inline nodes include text, tab, hardBreak, footnote, citation, crossReference and pageField. A pageField displays the current page number (pageNumber) or the document-wide count of physical pages (totalPages). Both use the format of the section that started the page. Links and index terms use annotations.

A manual pageBreak must be a direct child of a body section. Text cells, table cells, list items, groups and repeated regions use their normal pagination.

IDs are unique and remain stable when elements move. Duplication requires new IDs and remapped internal references. A cell anchor such as { "blockId": "paragraphUuid" } points to the start of a paragraph or heading in the same flow. Set visual placement relative to that anchor with placement.

A paragraph can reference attrs.styleId. Resolution applies defaults, the shared style, paragraph overrides and then inline overrides. An absent value inherits. false explicitly disables a setting and zero is a value. Underline and highlight colors accept null to clear an inherited color. verticalPosition is normal, superscript or subscript. The table of contents uses heading.attrs.level.

Without an explicit reference, the engine looks up text or heading-N, then uses the first available style. Defaults are 13 CSS px, black text, left alignment and 1.5 line spacing. pageBreakBefore applies to body text through a shared style or paragraph override. A local false clears an inherited break.

Units and sections

Physical dimensions, margins, tabs, indents and paragraph spacing use mm. Text sizes, intrinsic image dimensions and borders use CSS px at 96 px per inch. Angles use degrees and line spacing is a multiplier from 0 to 20. Rendering uses a positive minimum line advance at zero.

Physical width and height in section.page determine paper size and orientation. A section continues on the current page if dimensions match and space allows. On a shared page, the section that started it controls the background, repeated regions and page number. The next section’s margins and columns apply to its text flow.

ACKword fills columns sequentially. Set columns.count from 1 to 20 and the gapMm between them. Omit widthsPercent for equal widths, or supply one percentage per column to divide the width remaining after margins and gaps. pageNumbering.mode is continue or restart. A restart requires a positive integer start and begins on the first new page of the section. continue forbids start. The format values are decimal, lowerRoman, upperRoman, lowerAlpha and upperAlpha. Header and footer variants are in sections[].headerFooter. inheritPrevious requires a preceding section.

A change in header or footer visibility starts a new physical page at the section boundary. The enable settings apply to the section even when its region content is inherited.

page.backgroundColor sets the page color. The optional decorative page.background holds text or an image, opacity from 0 to 1, position and rotation. respectMargins limits the reference and clipping area to the margins. The background repeats behind content within its section.

Cells and generated references

A cell holds the frame ID, anchor, geometry and appearance. It contains exactly one of cellText, cellImage, cellTable, cellGroup, cellTableOfContents or cellReferenceList.

Field Rule
placement.flow Text can go around, through or below a frame. All frames in text use the same paragraph attachment rules. Group members use the group layout.
placement.horizontalOffsetPercent Position in the space remaining after subtracting the cell width. placement.offsetXMm adds a signed horizontal shift in mm.
placement.offsetYMm Signed vertical shift in mm from the paragraph anchor.
sizing.width and sizing.height Width is fixed, auto or fill. Height is auto or fixed with valueMm. Fixed height clips overflow.
margin, padding, border Outer spacing, inner spacing and border. Without padding, the left and right defaults are 2 mm. In a supplied spacing object an omitted side is zero.
rotationDegrees Rotation around the frame center. Page views clip successive slices of the same surface to the printable area.

An image stores src, alt, optional intrinsic dimensions and lockAspectRatio. A table stores its grid, headerRow, columnWidthsPercent and cell settings. Merges use rowSpan, columnSpan and coveredBy. Set cell.attrs.keepTableRowsTogether on the table frame to prefer breaks between rows or merged groups when the table spans pages. Oversized rows can continue. A group stores its members and its free, row or column layout, including the minimum height in cellGroup.attrs.minHeightMm.

With lockAspectRatio enabled, the image fits proportionally within the space left by padding and borders. A fixed frame constrains both dimensions.

A table of contents stores depth, scope, page-number and leader options, and per-level styles. A reference list can be an index, bibliography or caption list. A caption list uses kind: "captions" and a categoryId. The category must be built in or declared in settings.captionCategories. Generated content uses its cell ID. Entries and page numbers are computed from headings, annotations, sources and captions.

A frame containing a table of contents or caption list must be a direct child of a body section or a member of a cellGroup in the body. To place either inside a text cell or a table cell, put its frame in a group and place the group in that cell.

An optional cell.attrs.caption stores kind (the primary category ID), text, position (above or below), and an optional style. The document can define or rename categories in settings.captionCategories, an array of { id, name } objects. The built-in IDs figure and table are available even when that setting is absent. Each primary category has its own counter. The optional alsoIn array contains IDs of additional categories whose lists include the same caption, with its original name and number. A crossReference uses attrs.targetId to point to the cell. It retains the target if the caption is removed and the reference becomes unresolved.

Conformance rules

Identity, order and references

  • Section IDs and all content attrs.id values share one namespace. Each section ID must be unique. Each content ID must be unique across body content, table rows and cells, nested frames, footnotes, citations and all stored header and footer variants. IDs are strings and compared exactly. Metadata, styles and bibliography sources have separate namespaces.
  • document.content defines the reading order. Each section.attrs.sectionId must identify an entry in sections. Every section definition must be used exactly once.
  • The style list has 1 to 100 entries with unique IDs. A paragraph or heading with an explicit styleId must identify one of those styles.
  • A cell anchor must identify a paragraph or heading in the same section, header or footer and the same text container. For nested frames, the paragraph belongs to the same text cell or table cell as the frame. The anchor contains only blockId.
  • Bibliography source IDs must be unique. Each citation must identify a source in settings.bibliographySources. Index term strings must be unique after trimming, Unicode NFC normalization and lowercasing with the French locale. On import and save, ACKword folds index annotations from the body and repeated regions into the reusable index terms.
  • A stored cross-reference needs a nonempty targetId. A missing target or missing caption makes the reference unresolved. Authors should use the ID of a captioned cell as the target. An internal link annotation is a string and may also remain unresolved.

Sections, regions and sizes

  • The left and right margins together must be strictly less than the page width. The top and bottom margins together must be strictly less than the page height. After subtracting horizontal margins and all column gaps, at least 1 mm must remain for the text columns combined.
  • Producers must use columns.balance: "sequential" or omit the property. The optional columns.widthsPercent array requires one positive entry per column and a total of 100 within a difference strictly smaller than 0.00001. Each column must leave at least one CSS pixel for text.
  • The first section in reading order cannot set headerFooter.inheritPrevious to true. The six region keys are header, footer, firstHeader, firstFooter, evenHeader and evenFooter. Regional restrictions apply recursively. Footnotes, page breaks, table-of-contents cells and reference-list cells cannot occur inside a header or footer, including inside its nested content.
  • With sizing.height.mode: "fixed", supply valueMm. A group cell requires sizing.width.mode of fixed or fill. A group cannot directly contain another group cell.
  • Each individual tabStops array must have distinct positionMm values. Order in that array does not affect validity.

Tables and merges

  • Every table contains 1 to 100 rows with the same number of entries per row. Each row contains 1 to 20 entries. Keep an entry for every grid position, including positions covered by a merge. All entries, even covered entries, have IDs and nonempty block content as specified by the schema.
  • If columnWidthsPercent is present, supply one number for each column. The sum must differ from 100 by strictly less than 0.00001.
  • A cell with no coveredBy owns a rectangle beginning at its grid position. Its height is rowSpan and its width is columnSpan, each defaulting to 1. The rectangle must fit inside the table and cannot overlap another owner's rectangle.
  • Each other grid entry in that rectangle must set coveredBy to the owner’s ID. Each entry with coveredBy must lie within the corresponding owner’s rectangle. Ownership comes from the owner's spans. A covered entry does not establish another span.
  • Table borders are stored on the four sides under tableCell.attrs.borders. Each explicit edge stores widthPx, color and style (solid, dashed or dotted). A width of zero hides the edge. For shared edges, write the same value on both adjoining sides. The covered entries retain the individual segments of a merged cell’s outline.
  • A link annotation accepts an HTTP or HTTPS URL with no whitespace after the scheme, a mailto: address, a tel: number or a fragment consisting of # followed by ASCII letters, digits, underscores or hyphens. Use the exact case-insensitive pattern below.
  • A cell image or page background image source accepts a whitespace-free HTTP or HTTPS URL or a Base64 data URL for PNG, JPEG, GIF or WebP. The file validator checks the string syntax. Retrievability or decodability of the image is checked when the image is loaded.
  • For fields trimmed by ACKword, producers should write trimmed values. These include authors, style and section names, generated-list titles, footnote text, bibliography title/author/year, and index terms and annotations. Ordinary text inline content retains its spaces. Use the schema's limits for each field.
Link   ^(https?://[^\s]+|mailto:[^\s@]+@[^\s]+|tel:[+\d][\d ()-]*|#[a-zA-Z0-9_-]+)$
Image  ^https?://[^\s]+$
   or  ^data:image/(png|jpeg|gif|webp);base64,[a-z0-9+/=\s]+$

Read, write and validate

For validation outside the editor, parse the JSON, validate it against the versioned schema, then apply the conformance rules above. In ACKword, DocumentFileService.deserialize applies import migrations, validates the result and prepares the editor model. DocumentFileService.serialize validates and writes the current format.

Pre-release imports

  • Standalone tableOfContents and referenceList blocks become cells. Reference-list aliases figures and tables become caption lists with category IDs figure and table.
  • Import removes placement.mode. A frame with the former "flow" mode in text becomes placement.flow: "below" and anchors to the following unclaimed paragraph or heading. Import inserts an empty paragraph if necessary. Group members retain their wrapping setting.
  • Import converts a UTF-16 anchor offset to an estimated vertical shift. If an old anchor points to another text container in the same section or region, import uses the first paragraph or heading in the frame’s own container when available. The saved anchor contains only blockId.

See the ACKW examples for complete files and the developer guide for schema generation and compatibility checks.

Field reference

These definitions are generated from the versioned JSON Schema. Open a definition to see its exact required fields, defaults, limits and node variants. Links inside the code jump to the referenced definition. Download the complete schema.

ACKW document
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "const": "ackw"
    },
    "version": {
      "type": "string",
      "const": "1.0"
    },
    "metadata": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "maxLength": 1000
        },
        "language": {
          "type": "string",
          "pattern": "^[a-zA-Z]{2,8}(?:-[a-zA-Z0-9]{1,8})*$"
        },
        "authors": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "modifiedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "title",
        "language",
        "authors"
      ],
      "additionalProperties": false
    },
    "generator": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      },
      "required": [
        "name",
        "version"
      ],
      "additionalProperties": false
    },
    "settings": {
      "type": "object",
      "properties": {
        "styles": {
          "minItems": 1,
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        "footnoteStyle": {
          "$ref": "#/$defs/__schema12"
        },
        "bibliographySources": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema13"
          }
        },
        "indexTerms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema14"
          }
        },
        "captionCategories": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema15"
          }
        }
      },
      "required": [
        "styles"
      ],
      "additionalProperties": false
    },
    "sections": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema17"
      }
    },
    "document": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "document"
        },
        "content": {
          "minItems": 1,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema76"
          }
        }
      },
      "required": [
        "type",
        "content"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "format",
    "version",
    "metadata",
    "generator",
    "settings",
    "sections",
    "document"
  ],
  "additionalProperties": false,
  "$id": "urn:ack:ackw:1.0",
  "title": "ACKW document format 1.0",
  "description": "ACK-defined document format. Cross-reference, table-grid and editor capability checks supplement this structural schema."
}
string · __schema0
{
  "type": "string",
  "minLength": 1,
  "maxLength": 300
}
id, name, level, text, … · __schema1
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "level": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 6
    },
    "text": {
      "$ref": "#/$defs/__schema2"
    },
    "paragraph": {
      "$ref": "#/$defs/__schema7"
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
Node variants · __schema2
{
  "default": {},
  "$ref": "#/$defs/__schema3"
}
fontFamily, fontSizePx, bold, italic, … · __schema3
{
  "type": "object",
  "properties": {
    "fontFamily": {
      "$ref": "#/$defs/__schema4"
    },
    "fontSizePx": {
      "$ref": "#/$defs/__schema5"
    },
    "bold": {
      "type": "boolean"
    },
    "italic": {
      "type": "boolean"
    },
    "underline": {
      "type": "boolean"
    },
    "strike": {
      "type": "boolean"
    },
    "code": {
      "type": "boolean"
    },
    "verticalPosition": {
      "type": "string",
      "enum": [
        "normal",
        "superscript",
        "subscript"
      ]
    },
    "color": {
      "$ref": "#/$defs/__schema6"
    },
    "underlineColor": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema6"
        },
        {
          "type": "null"
        }
      ]
    },
    "highlightColor": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema6"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}
string · __schema4
{
  "type": "string",
  "enum": [
    "default",
    "inter",
    "sourceSerif4",
    "carlito",
    "caladea",
    "liberationSans",
    "liberationSerif",
    "liberationMono"
  ]
}
number · __schema5
{
  "type": "number",
  "minimum": 8,
  "maximum": 200
}
string · __schema6
{
  "type": "string",
  "pattern": "^#[0-9a-fA-F]{6}$"
}
Node variants · __schema7
{
  "default": {},
  "$ref": "#/$defs/__schema8"
}
pageBreakBefore, indentLeftMm, indentRightMm, specialIndent, … · __schema8
{
  "type": "object",
  "properties": {
    "pageBreakBefore": {
      "type": "boolean"
    },
    "indentLeftMm": {
      "$ref": "#/$defs/__schema9"
    },
    "indentRightMm": {
      "$ref": "#/$defs/__schema9"
    },
    "specialIndent": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "none",
            "firstLine",
            "hanging"
          ]
        },
        "distanceMm": {
          "$ref": "#/$defs/__schema9"
        }
      },
      "required": [
        "type",
        "distanceMm"
      ],
      "additionalProperties": false
    },
    "tabIntervalMm": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000
    },
    "tabStops": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema10"
      }
    },
    "alignment": {
      "$ref": "#/$defs/__schema11"
    },
    "lineSpacing": {
      "type": "number",
      "minimum": 0,
      "maximum": 20
    },
    "keepLinesTogether": {
      "type": "boolean"
    },
    "spacingBeforeMm": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000
    },
    "spacingAfterMm": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000
    }
  },
  "additionalProperties": false
}
number · __schema9
{
  "type": "number",
  "minimum": 0,
  "maximum": 1000
}
positionMm, alignment · __schema10
{
  "type": "object",
  "properties": {
    "positionMm": {
      "exclusiveMinimum": 0,
      "$ref": "#/$defs/__schema9"
    },
    "alignment": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right",
        "decimal"
      ]
    }
  },
  "required": [
    "positionMm",
    "alignment"
  ],
  "additionalProperties": false
}
string · __schema11
{
  "type": "string",
  "enum": [
    "left",
    "center",
    "right",
    "justify"
  ]
}
text, paragraph · __schema12
{
  "type": "object",
  "properties": {
    "text": {
      "$ref": "#/$defs/__schema2"
    },
    "paragraph": {
      "$ref": "#/$defs/__schema7"
    }
  },
  "additionalProperties": false
}
id, title, author, year, … · __schema13
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "author": {
      "type": "string",
      "maxLength": 300
    },
    "year": {
      "type": "string",
      "maxLength": 30
    },
    "url": {
      "anyOf": [
        {
          "type": "string",
          "const": ""
        },
        {
          "type": "string",
          "maxLength": 4096,
          "pattern": "^[Hh][Tt][Tt][Pp][Ss]?:\\/\\/[^\\s]+$"
        }
      ]
    }
  },
  "required": [
    "id",
    "title",
    "author",
    "year",
    "url"
  ],
  "additionalProperties": false
}
string · __schema14
{
  "type": "string",
  "minLength": 1,
  "maxLength": 150
}
id, name · __schema15
{
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/__schema16"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    }
  },
  "required": [
    "id",
    "name"
  ],
  "additionalProperties": false
}
string · __schema16
{
  "type": "string",
  "minLength": 1,
  "maxLength": 100
}
id, name, page, columns, … · __schema17
{
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/__schema18"
    },
    "name": {
      "$ref": "#/$defs/__schema19"
    },
    "page": {
      "$ref": "#/$defs/__schema20"
    },
    "columns": {
      "$ref": "#/$defs/__schema32"
    },
    "pageNumbering": {
      "$ref": "#/$defs/__schema38"
    },
    "headerFooter": {
      "$ref": "#/$defs/__schema42"
    }
  },
  "required": [
    "id",
    "page",
    "columns"
  ],
  "additionalProperties": false
}
string · __schema18
{
  "type": "string",
  "minLength": 1
}
string · __schema19
{
  "type": "string",
  "minLength": 1,
  "maxLength": 120
}
widthMm, heightMm, margin, background, … · __schema20
{
  "type": "object",
  "properties": {
    "widthMm": {
      "$ref": "#/$defs/__schema21"
    },
    "heightMm": {
      "$ref": "#/$defs/__schema22"
    },
    "margin": {
      "$ref": "#/$defs/__schema23"
    },
    "background": {
      "$ref": "#/$defs/__schema25"
    },
    "backgroundColor": {
      "$ref": "#/$defs/__schema31"
    }
  },
  "required": [
    "widthMm",
    "heightMm",
    "margin"
  ],
  "additionalProperties": false
}
number · __schema21
{
  "type": "number",
  "exclusiveMinimum": 0
}
number · __schema22
{
  "type": "number",
  "exclusiveMinimum": 0
}
topMm, rightMm, bottomMm, leftMm · __schema23
{
  "type": "object",
  "properties": {
    "topMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    },
    "rightMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    },
    "bottomMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    },
    "leftMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    }
  },
  "additionalProperties": false
}
number · __schema24
{
  "type": "number",
  "minimum": 0,
  "maximum": 2000
}
Node variants · __schema25
{
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "image"
        },
        "respectMargins": {
          "$ref": "#/$defs/__schema26"
        },
        "opacity": {
          "$ref": "#/$defs/__schema27"
        },
        "rotationDegrees": {
          "$ref": "#/$defs/__schema28"
        },
        "position": {
          "$ref": "#/$defs/__schema29"
        },
        "image": {
          "type": "object",
          "properties": {
            "src": {
              "$ref": "#/$defs/__schema30"
            },
            "widthPx": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "heightPx": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "src",
            "widthPx",
            "heightPx"
          ],
          "additionalProperties": false
        },
        "sizing": {
          "type": "object",
          "properties": {
            "mode": {
              "default": "contain",
              "type": "string",
              "enum": [
                "contain",
                "cover",
                "fixed"
              ]
            },
            "widthMm": {
              "default": 100,
              "type": "number",
              "minimum": 0.05,
              "maximum": 2000
            },
            "heightMm": {
              "default": 100,
              "type": "number",
              "minimum": 0.05,
              "maximum": 2000
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "type",
        "position",
        "sizing"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "text"
        },
        "respectMargins": {
          "$ref": "#/$defs/__schema26"
        },
        "opacity": {
          "$ref": "#/$defs/__schema27"
        },
        "rotationDegrees": {
          "$ref": "#/$defs/__schema28"
        },
        "position": {
          "$ref": "#/$defs/__schema29"
        },
        "text": {
          "type": "string",
          "maxLength": 500,
          "pattern": "^[^\\r\\n]*$"
        },
        "fontFamily": {
          "default": "carlito",
          "$ref": "#/$defs/__schema4"
        },
        "fontSizePx": {
          "default": 64,
          "$ref": "#/$defs/__schema5"
        },
        "color": {
          "default": "#808080",
          "$ref": "#/$defs/__schema6"
        }
      },
      "required": [
        "type",
        "position",
        "text"
      ],
      "additionalProperties": false
    }
  ]
}
boolean · __schema26
{
  "type": "boolean"
}
number · __schema27
{
  "default": 0.15,
  "type": "number",
  "minimum": 0,
  "maximum": 1
}
number · __schema28
{
  "default": 0,
  "type": "number",
  "minimum": -360,
  "maximum": 360
}
horizontal, vertical, offsetXMm, offsetYMm · __schema29
{
  "type": "object",
  "properties": {
    "horizontal": {
      "default": "center",
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ]
    },
    "vertical": {
      "default": "center",
      "type": "string",
      "enum": [
        "top",
        "center",
        "bottom"
      ]
    },
    "offsetXMm": {
      "default": 0,
      "type": "number",
      "minimum": -2000,
      "maximum": 2000
    },
    "offsetYMm": {
      "default": 0,
      "type": "number",
      "minimum": -2000,
      "maximum": 2000
    }
  },
  "additionalProperties": false
}
string · __schema30
{
  "type": "string",
  "pattern": "^(?:[Hh][Tt][Tt][Pp][Ss]?:\\/\\/[^\\s]+|[Dd][Aa][Tt][Aa]:[Ii][Mm][Aa][Gg][Ee]\\/(?:[Pp][Nn][Gg]|[Jj][Pp][Ee][Gg]|[Gg][Ii][Ff]|[Ww][Ee][Bb][Pp]);[Bb][Aa][Ss][Ee]64,[a-zA-Z0-9+/=\\s]+)$"
}
Node variants · __schema31
{
  "default": "#ffffff",
  "$ref": "#/$defs/__schema6"
}
count, gapMm, widthsPercent, balance · __schema32
{
  "type": "object",
  "properties": {
    "count": {
      "$ref": "#/$defs/__schema33"
    },
    "gapMm": {
      "$ref": "#/$defs/__schema34"
    },
    "widthsPercent": {
      "$ref": "#/$defs/__schema35"
    },
    "balance": {
      "$ref": "#/$defs/__schema37"
    }
  },
  "required": [
    "count"
  ],
  "additionalProperties": false
}
integer · __schema33
{
  "type": "integer",
  "minimum": 1,
  "maximum": 20
}
Node variants · __schema34
{
  "default": 8,
  "$ref": "#/$defs/__schema24"
}
array · __schema35
{
  "minItems": 1,
  "maxItems": 20,
  "type": "array",
  "items": {
    "$ref": "#/$defs/__schema36"
  }
}
number · __schema36
{
  "type": "number",
  "exclusiveMinimum": 0
}
string · __schema37
{
  "default": "sequential",
  "type": "string",
  "const": "sequential"
}
mode, start, format · __schema38
{
  "type": "object",
  "properties": {
    "mode": {
      "$ref": "#/$defs/__schema39"
    },
    "start": {
      "$ref": "#/$defs/__schema40"
    },
    "format": {
      "$ref": "#/$defs/__schema41"
    }
  },
  "required": [
    "mode",
    "format"
  ],
  "additionalProperties": false
}
string · __schema39
{
  "type": "string",
  "enum": [
    "continue",
    "restart"
  ]
}
integer · __schema40
{
  "type": "integer",
  "exclusiveMinimum": 0,
  "maximum": 9007199254740991
}
string · __schema41
{
  "type": "string",
  "enum": [
    "decimal",
    "lowerRoman",
    "upperRoman",
    "lowerAlpha",
    "upperAlpha"
  ]
}
inheritPrevious, content, headerEnabled, footerEnabled, … · __schema42
{
  "type": "object",
  "properties": {
    "inheritPrevious": {
      "default": false,
      "type": "boolean"
    },
    "content": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "enum": [
          "header",
          "footer",
          "firstHeader",
          "firstFooter",
          "evenHeader",
          "evenFooter"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "document"
          },
          "content": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/$defs/__schema43"
            }
          }
        },
        "required": [
          "type",
          "content"
        ],
        "additionalProperties": false
      }
    },
    "headerEnabled": {
      "default": true,
      "type": "boolean"
    },
    "footerEnabled": {
      "default": true,
      "type": "boolean"
    },
    "differentFirstPage": {
      "default": false,
      "type": "boolean"
    },
    "differentOddEvenPages": {
      "default": false,
      "type": "boolean"
    },
    "headerDistanceMm": {
      "default": 12.5,
      "$ref": "#/$defs/__schema24"
    },
    "footerDistanceMm": {
      "default": 12.5,
      "$ref": "#/$defs/__schema24"
    },
    "headerMinimumHeightMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    },
    "footerMinimumHeightMm": {
      "default": 0,
      "$ref": "#/$defs/__schema24"
    },
    "contentGapMm": {
      "default": 3,
      "$ref": "#/$defs/__schema24"
    }
  },
  "additionalProperties": false
}
Node variants · __schema43
{
  "oneOf": [
    {
      "$ref": "#/$defs/__schema44"
    },
    {
      "$ref": "#/$defs/__schema51"
    },
    {
      "$ref": "#/$defs/__schema52"
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/__schema54"
        },
        "attrs": {
          "$ref": "#/$defs/__schema55"
        },
        "content": {
          "$ref": "#/$defs/__schema59"
        }
      },
      "required": [
        "type",
        "attrs",
        "content"
      ],
      "additionalProperties": false
    }
  ]
}
paragraph · __schema44
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "paragraph"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        },
        "styleId": {
          "$ref": "#/$defs/__schema45"
        },
        "textStyle": {
          "$ref": "#/$defs/__schema46"
        },
        "paragraphStyle": {
          "$ref": "#/$defs/__schema47"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema48"
      }
    }
  },
  "required": [
    "type",
    "attrs"
  ],
  "additionalProperties": false
}
Node variants · __schema45
{
  "$ref": "#/$defs/__schema18"
}
Node variants · __schema46
{
  "$ref": "#/$defs/__schema3"
}
Node variants · __schema47
{
  "$ref": "#/$defs/__schema8"
}
Node variants · __schema48
{
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "crossReference"
        },
        "attrs": {
          "type": "object",
          "properties": {
            "targetId": {
              "$ref": "#/$defs/__schema18"
            }
          },
          "required": [
            "targetId"
          ],
          "additionalProperties": false
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type",
        "attrs"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "text"
        },
        "text": {
          "type": "string",
          "minLength": 1
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type",
        "text"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "tab",
            "hardBreak"
          ]
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "citation"
        },
        "attrs": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema18"
            },
            "sourceId": {
              "$ref": "#/$defs/__schema18"
            }
          },
          "required": [
            "id",
            "sourceId"
          ],
          "additionalProperties": false
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type",
        "attrs"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "footnote"
        },
        "attrs": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema18"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4000
            }
          },
          "required": [
            "id",
            "text"
          ],
          "additionalProperties": false
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type",
        "attrs"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "pageField"
        },
        "attrs": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "enum": [
                "pageNumber",
                "totalPages"
              ]
            }
          },
          "required": [
            "field"
          ],
          "additionalProperties": false
        },
        "textStyle": {
          "$ref": "#/$defs/__schema49"
        },
        "annotations": {
          "$ref": "#/$defs/__schema50"
        }
      },
      "required": [
        "type",
        "attrs"
      ],
      "additionalProperties": false
    }
  ]
}
Node variants · __schema49
{
  "$ref": "#/$defs/__schema3"
}
array · __schema50
{
  "type": "array",
  "items": {
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "link"
          },
          "attrs": {
            "type": "object",
            "properties": {
              "href": {
                "type": "string",
                "maxLength": 4096,
                "pattern": "^(?:[Hh][Tt][Tt][Pp][Ss]?:\\/\\/[^\\s]+|[Mm][Aa][Ii][Ll][Tt][Oo]:[^\\s@]+@[^\\s]+|[Tt][Ee][Ll]:[+\\d][\\d ()-]*|#[a-zA-Z0-9_-]+)$"
              }
            },
            "required": [
              "href"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "type",
          "attrs"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "indexEntry"
          },
          "attrs": {
            "type": "object",
            "properties": {
              "term": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              }
            },
            "required": [
              "term"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "type",
          "attrs"
        ],
        "additionalProperties": false
      }
    ]
  }
}
heading · __schema51
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "heading"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        },
        "styleId": {
          "$ref": "#/$defs/__schema45"
        },
        "textStyle": {
          "$ref": "#/$defs/__schema46"
        },
        "paragraphStyle": {
          "$ref": "#/$defs/__schema47"
        },
        "level": {
          "type": "integer",
          "minimum": 1,
          "maximum": 6
        }
      },
      "required": [
        "id",
        "level"
      ],
      "additionalProperties": false
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema48"
      }
    }
  },
  "required": [
    "type",
    "attrs"
  ],
  "additionalProperties": false
}
bulletList / orderedList · __schema52
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "bulletList",
        "orderedList"
      ]
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        },
        "order": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema53"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
listItem · __schema53
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "listItem"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema43"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
string · __schema54
{
  "type": "string",
  "const": "cell"
}
id, anchor, caption, placement, … · __schema55
{
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/__schema18"
    },
    "anchor": {
      "type": "object",
      "properties": {
        "blockId": {
          "$ref": "#/$defs/__schema18"
        }
      },
      "required": [
        "blockId"
      ],
      "additionalProperties": false
    },
    "caption": {
      "type": "object",
      "properties": {
        "kind": {
          "$ref": "#/$defs/__schema16"
        },
        "alsoIn": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema16"
          }
        },
        "text": {
          "type": "string",
          "maxLength": 1000
        },
        "position": {
          "default": "below",
          "type": "string",
          "enum": [
            "above",
            "below"
          ]
        },
        "style": {
          "$ref": "#/$defs/__schema12"
        }
      },
      "required": [
        "kind",
        "text"
      ],
      "additionalProperties": false
    },
    "placement": {
      "type": "object",
      "properties": {
        "flow": {
          "default": "around",
          "type": "string",
          "enum": [
            "around",
            "through",
            "below"
          ]
        },
        "horizontalOffsetPercent": {
          "default": 0,
          "type": "number",
          "minimum": -1000,
          "maximum": 1000
        },
        "offsetXMm": {
          "type": "number",
          "minimum": -2000,
          "maximum": 2000
        },
        "offsetYMm": {
          "default": 0,
          "type": "number",
          "minimum": -2000,
          "maximum": 2000
        }
      },
      "additionalProperties": false
    },
    "sizing": {
      "type": "object",
      "properties": {
        "width": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "fixed",
                "auto",
                "fill"
              ]
            },
            "percent": {
              "default": 40,
              "type": "number",
              "minimum": 0.1,
              "maximum": 1000
            }
          },
          "required": [
            "mode"
          ],
          "additionalProperties": false
        },
        "height": {
          "type": "object",
          "properties": {
            "mode": {
              "$ref": "#/$defs/__schema56"
            },
            "valueMm": {
              "$ref": "#/$defs/__schema57"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "width",
        "height"
      ],
      "additionalProperties": false
    },
    "rotationDegrees": {
      "default": 0,
      "type": "number",
      "minimum": -360,
      "maximum": 360
    },
    "keepTableRowsTogether": {
      "type": "boolean"
    },
    "backgroundColor": {
      "$ref": "#/$defs/__schema6"
    },
    "border": {
      "$ref": "#/$defs/__schema58"
    },
    "margin": {
      "$ref": "#/$defs/__schema23"
    },
    "padding": {
      "$ref": "#/$defs/__schema23"
    }
  },
  "required": [
    "id",
    "placement",
    "sizing"
  ],
  "additionalProperties": false
}
string · __schema56
{
  "default": "auto",
  "type": "string",
  "enum": [
    "auto",
    "fixed"
  ]
}
number · __schema57
{
  "type": "number",
  "minimum": 0.05,
  "maximum": 2000
}
widthPx, color, style · __schema58
{
  "type": "object",
  "properties": {
    "widthPx": {
      "type": "number",
      "minimum": 0,
      "maximum": 12
    },
    "color": {
      "$ref": "#/$defs/__schema6"
    },
    "style": {
      "type": "string",
      "enum": [
        "solid",
        "dashed",
        "dotted"
      ]
    }
  },
  "required": [
    "widthPx",
    "color",
    "style"
  ],
  "additionalProperties": false
}
array · __schema59
{
  "type": "array",
  "prefixItems": [
    {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "cellReferenceList"
            },
            "attrs": {
              "$ref": "#/$defs/__schema60"
            }
          },
          "required": [
            "type",
            "attrs"
          ],
          "additionalProperties": false
        },
        {
          "$ref": "#/$defs/__schema61"
        },
        {
          "$ref": "#/$defs/__schema62"
        },
        {
          "$ref": "#/$defs/__schema63"
        },
        {
          "$ref": "#/$defs/__schema71"
        }
      ]
    }
  ],
  "items": false,
  "minItems": 1,
  "maxItems": 1
}
kind, title, titleStyle, entryStyle · __schema60
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "bibliography",
        "index"
      ]
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "titleStyle": {
      "$ref": "#/$defs/__schema12"
    },
    "entryStyle": {
      "$ref": "#/$defs/__schema12"
    }
  },
  "required": [
    "kind",
    "title"
  ],
  "additionalProperties": false
}
cellText · __schema61
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "cellText"
    },
    "content": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema43"
      }
    }
  },
  "required": [
    "type",
    "content"
  ],
  "additionalProperties": false
}
cellImage · __schema62
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "cellImage"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "src": {
          "$ref": "#/$defs/__schema30"
        },
        "alt": {
          "type": "string"
        },
        "widthPx": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "heightPx": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "lockAspectRatio": {
          "default": true,
          "type": "boolean"
        }
      },
      "required": [
        "src",
        "alt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "attrs"
  ],
  "additionalProperties": false
}
type, attrs, content · __schema63
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/$defs/__schema64"
    },
    "attrs": {
      "$ref": "#/$defs/__schema65"
    },
    "content": {
      "$ref": "#/$defs/__schema68"
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
string · __schema64
{
  "type": "string",
  "const": "cellTable"
}
headerRow, textAlignment, verticalAlignment, columnWidthsPercent · __schema65
{
  "type": "object",
  "properties": {
    "headerRow": {
      "default": false,
      "type": "boolean"
    },
    "textAlignment": {
      "$ref": "#/$defs/__schema11"
    },
    "verticalAlignment": {
      "$ref": "#/$defs/__schema66"
    },
    "columnWidthsPercent": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema67"
      }
    }
  },
  "additionalProperties": false
}
string · __schema66
{
  "type": "string",
  "enum": [
    "top",
    "center",
    "bottom"
  ]
}
number · __schema67
{
  "type": "number",
  "minimum": 1,
  "maximum": 100
}
array · __schema68
{
  "minItems": 1,
  "maxItems": 100,
  "type": "array",
  "items": {
    "$ref": "#/$defs/__schema69"
  }
}
tableRow · __schema69
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "tableRow"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema70"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
tableCell · __schema70
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "tableCell"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema18"
        },
        "rowSpan": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 100
        },
        "columnSpan": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 20
        },
        "coveredBy": {
          "$ref": "#/$defs/__schema18"
        },
        "verticalAlignment": {
          "$ref": "#/$defs/__schema66"
        },
        "backgroundColor": {
          "$ref": "#/$defs/__schema6"
        },
        "borders": {
          "type": "object",
          "properties": {
            "top": {
              "$ref": "#/$defs/__schema58"
            },
            "right": {
              "$ref": "#/$defs/__schema58"
            },
            "bottom": {
              "$ref": "#/$defs/__schema58"
            },
            "left": {
              "$ref": "#/$defs/__schema58"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema43"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
cellGroup · __schema71
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "cellGroup"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "mode": {
          "default": "free",
          "type": "string",
          "enum": [
            "free",
            "row",
            "column"
          ]
        },
        "alignment": {
          "default": "start",
          "type": "string",
          "enum": [
            "start",
            "center",
            "end"
          ]
        },
        "gapMm": {
          "default": 5,
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "distribution": {
          "default": "packed",
          "type": "string",
          "enum": [
            "packed",
            "even"
          ]
        },
        "minHeightMm": {
          "default": 0,
          "$ref": "#/$defs/__schema24"
        }
      },
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema72"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
Node variants · __schema72
{
  "$ref": "#/$defs/__schema73"
}
type, attrs, content · __schema73
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/$defs/__schema74"
    },
    "attrs": {
      "$ref": "#/$defs/__schema55"
    },
    "content": {
      "$ref": "#/$defs/__schema75"
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
string · __schema74
{
  "type": "string",
  "const": "cell"
}
array · __schema75
{
  "type": "array",
  "prefixItems": [
    {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "cellReferenceList"
            },
            "attrs": {
              "oneOf": [
                {
                  "$ref": "#/$defs/__schema60"
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "captions"
                    },
                    "categoryId": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "titleStyle": {
                      "$ref": "#/$defs/__schema12"
                    },
                    "entryStyle": {
                      "$ref": "#/$defs/__schema12"
                    }
                  },
                  "required": [
                    "kind",
                    "categoryId",
                    "title"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "type",
            "attrs"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "cellTableOfContents"
            },
            "attrs": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "maxLevel": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 6
                },
                "scope": {
                  "default": "document",
                  "type": "string",
                  "enum": [
                    "document",
                    "following"
                  ]
                },
                "showPageNumbers": {
                  "default": true,
                  "type": "boolean"
                },
                "showLeaders": {
                  "default": true,
                  "type": "boolean"
                },
                "styles": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "$ref": "#/$defs/__schema12"
                    },
                    "levels": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "1",
                          "2",
                          "3",
                          "4",
                          "5",
                          "6"
                        ]
                      },
                      "additionalProperties": {
                        "$ref": "#/$defs/__schema12"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "title",
                "maxLevel"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "type",
            "attrs"
          ],
          "additionalProperties": false
        },
        {
          "$ref": "#/$defs/__schema61"
        },
        {
          "$ref": "#/$defs/__schema62"
        },
        {
          "$ref": "#/$defs/__schema63"
        },
        {
          "$ref": "#/$defs/__schema71"
        }
      ]
    }
  ],
  "items": false,
  "minItems": 1,
  "maxItems": 1
}
section · __schema76
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "section"
    },
    "attrs": {
      "type": "object",
      "properties": {
        "sectionId": {
          "$ref": "#/$defs/__schema18"
        }
      },
      "required": [
        "sectionId"
      ],
      "additionalProperties": false
    },
    "content": {
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema77"
      }
    }
  },
  "required": [
    "type",
    "attrs",
    "content"
  ],
  "additionalProperties": false
}
Node variants · __schema77
{
  "oneOf": [
    {
      "$ref": "#/$defs/__schema44"
    },
    {
      "$ref": "#/$defs/__schema51"
    },
    {
      "$ref": "#/$defs/__schema52"
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "pageBreak"
        },
        "attrs": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema18"
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "type",
        "attrs"
      ],
      "additionalProperties": false
    },
    {
      "$ref": "#/$defs/__schema73"
    }
  ]
}