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": {
+ "author": {
+ "description": "Revision author stamped on the changes.",
+ "type": "string"
+ },
+ "backup": {
+ "description": "Path of the backup taken before the write.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "changed": {
+ "description": "set_update_on_open: whether the setting changed.",
+ "type": "boolean"
+ },
+ "date": {
+ "description": "Revision date (UTC, ISO 8601).",
+ "type": "string"
+ },
+ "dry_run": {
+ "description": "True when nothing was written (a preview).",
+ "type": "boolean"
+ },
+ "footprint": {
+ "description": "Part name -> the paragraphs or items it touched in that part.",
+ "type": "object"
+ },
+ "op_id": {
+ "description": "Undo-log id of this write (history.undo / history.restore).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "revision_ids": {
+ "description": "w:id of every revision this write created.",
+ "items": {
+ "type": [
+ "integer",
+ "string"
+ ]
+ },
+ "type": "array"
+ },
+ "set_update_on_open": {
+ "description": "True when w:updateFields was set instead.",
+ "type": "boolean"
+ },
+ "sha256": {
+ "description": "sha256 of the file after the write (pass as expect.sha256 next).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "skipped": {
+ "description": "Fields left as they are, with why: SECTIONPAGES, SECTION and NOTEREF (LibreOffice keeps their cached results), every INDEX (rebuild it in Word, F9), a REF that resolves to an error or to nothing, and fields not paired with LibreOffice's.",
+ "items": {
+ "description": "A skipped field.",
+ "properties": {
+ "at": {
+ "description": "Its address.",
+ "type": "string"
+ },
+ "reason": {
+ "description": "Why it was not recomputed.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Field type.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "unchanged": {
+ "description": "Fields whose result was already right.",
+ "type": "integer"
+ },
+ "updated": {
+ "description": "Fields whose result changed.",
+ "items": {
+ "description": "An updated field.",
+ "properties": {
+ "after": {
+ "description": "Result paragraphs after.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "at": {
+ "description": "Paragraph address, p<n>#<fingerprint> (story-prefixed in notes/headers).",
+ "type": "string"
+ },
+ "before": {
+ "description": "Result paragraphs before.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "code": {
+ "description": "Field code.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Field type (TOC, PAGE, REF...).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "written": {
+ "description": "Whether the document was written.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "dry_run",
+ "updated",
+ "skipped",
+ "footprint"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}