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": {
+ "page_basis": {
+ "description": "With pages: model, or rendered+model when Word's page marks are used.",
+ "type": "string"
+ },
+ "page_count": {
+ "description": "With pages: estimated page count.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "This page of paragraphs, in document order.",
+ "items": {
+ "description": "A paragraph.",
+ "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"
+ },
+ "cell": {
+ "description": "Inside a table: where.",
+ "properties": {
+ "col": {
+ "description": "Grid column (0-based).",
+ "type": "integer"
+ },
+ "row": {
+ "description": "Row (0-based).",
+ "type": "integer"
+ },
+ "table": {
+ "description": "Table number.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "centred": {
+ "description": "Whether it is centred.",
+ "type": "boolean"
+ },
+ "empty": {
+ "description": "No visible text.",
+ "type": "boolean"
+ },
+ "heading_level": {
+ "description": "1-9 for a heading, null for a body paragraph.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kind": {
+ "description": "Header/footer kind: default, first or even.",
+ "type": "string"
+ },
+ "normalized": {
+ "description": "With normalized: the text as text.normalize gives it.",
+ "type": "string"
+ },
+ "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"
+ ]
+ },
+ "number": {
+ "description": "Paragraph number (1-based) in its story.",
+ "type": "integer"
+ },
+ "page": {
+ "description": "With pages: estimated page (body paragraphs).",
+ "type": "integer"
+ },
+ "page_break_before": {
+ "description": "Whether it starts a page.",
+ "type": "boolean"
+ },
+ "page_label": {
+ "description": "Page number as printed.",
+ "type": [
+ "integer",
+ "string"
+ ]
+ },
+ "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": "Full text.",
+ "type": "string"
+ },
+ "used_by_sections": {
+ "description": "Sections that show this header or footer.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "rendered_marks": {
+ "description": "With pages: rendered page-break marks found.",
+ "type": "integer"
+ },
+ "total": {
+ "description": "Items in the whole list, across pages.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "paragraphs"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}