changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "api": {
+ "description": "API version (1.0).",
+ "type": "string"
+ },
+ "doc": {
+ "description": "The document read or written: path, sha256 and paragraph count.",
+ "properties": {
+ "characters": {
+ "description": "text.normalize of a text string: its length.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "Body paragraphs.",
+ "type": "integer"
+ },
+ "path": {
+ "description": "Path of the document.",
+ "type": "string"
+ },
+ "sha256": {
+ "description": "sha256 of the file (pass as expect.sha256 to a write).",
+ "type": "string"
+ },
+ "source": {
+ "description": "A .txt/.md/.odt source's format, encoding and split mode; \"text\" for a text string (text.normalize).",
+ "type": [
+ "object",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "next": {
+ "description": "Cursor for the next page (pass as cursor), or null.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ok": {
+ "description": "Always true on success.",
+ "type": "boolean"
+ },
+ "op": {
+ "description": "The operation that ran.",
+ "type": "string"
+ },
+ "result": {
+ "description": "What the operation returns.",
+ "properties": {
+ "headings": {
+ "description": "This page of headings, in document order.",
+ "items": {
+ "additionalProperties": true,
+ "description": "A heading (layout facts may add keys).",
+ "properties": {
+ "at": {
+ "description": "Paragraph address, p<n>#<fingerprint> (story-prefixed in notes/headers).",
+ "type": "string"
+ },
+ "blank_before": {
+ "description": "Empty paragraphs right before it.",
+ "type": "integer"
+ },
+ "centred": {
+ "description": "Whether it is centred.",
+ "type": "boolean"
+ },
+ "kind": {
+ "description": "Header/footer kind: default, first or even.",
+ "type": "string"
+ },
+ "level": {
+ "description": "Heading level, 1-9.",
+ "type": "integer"
+ },
+ "note": {
+ "description": "A note's id, displayed number and the body paragraph holding its mark.",
+ "properties": {
+ "id": {
+ "description": "Note id.",
+ "type": "integer"
+ },
+ "number": {
+ "description": "Displayed number.",
+ "type": "string"
+ },
+ "of": {
+ "description": "Address of the paragraph holding the mark.",
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "page_break_before": {
+ "description": "Whether it starts a page.",
+ "type": "boolean"
+ },
+ "section": {
+ "description": "Section (1-based) whose header or footer this is.",
+ "type": "integer"
+ },
+ "story": {
+ "description": "Story kind outside the body: footnote, endnote, header or footer.",
+ "type": "string"
+ },
+ "style": {
+ "description": "Paragraph style id.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "style_name": {
+ "description": "Paragraph style display name.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "text": {
+ "description": "Heading text, whitespace collapsed, clipped at 160 characters.",
+ "type": "string"
+ },
+ "truncated": {
+ "description": "True when text was clipped.",
+ "type": "boolean"
+ },
+ "used_by_sections": {
+ "description": "Sections that show this header or footer.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "total": {
+ "description": "Items in the whole list, across pages.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "headings"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}