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": {
+ "accepted": {
+ "description": "Revisions accepted.",
+ "type": "integer"
+ },
+ "address_map": {
+ "description": "Old address -> new address of every paragraph whose address changed.",
+ "type": "object"
+ },
+ "applied": {
+ "description": "Edits applied (a count), or for style kinds one entry per style op.",
+ "type": [
+ "integer",
+ "array"
+ ]
+ },
+ "backup": {
+ "description": "Path of the backup taken before the write.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "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"
+ },
+ "merged_paragraphs": {
+ "description": "Paragraphs joined by resolving paragraph marks.",
+ "type": "integer"
+ },
+ "op_id": {
+ "description": "Undo-log id of this write (history.undo / history.restore).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "preview": {
+ "description": "One entry per edit: what changes where.",
+ "items": {
+ "description": "A previewed edit.",
+ "properties": {
+ "action": {
+ "description": "accept or reject (revision kinds).",
+ "type": "string"
+ },
+ "after": {
+ "description": "Text after.",
+ "type": "string"
+ },
+ "at": {
+ "description": "Where it applies.",
+ "type": "string"
+ },
+ "before": {
+ "description": "Text before.",
+ "type": "string"
+ },
+ "op": {
+ "description": "Index of the edit in ops.",
+ "type": "integer"
+ },
+ "revisions": {
+ "description": "Revisions it resolves (revision kinds).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "rejected": {
+ "description": "Revisions rejected.",
+ "type": "integer"
+ },
+ "revisions": {
+ "description": "The revisions resolved (capped; see revisions_omitted).",
+ "items": {
+ "description": "A resolved revision.",
+ "properties": {
+ "action": {
+ "description": "accept or reject.",
+ "type": "string"
+ },
+ "at": {
+ "description": "Paragraph address.",
+ "type": "string"
+ },
+ "author": {
+ "description": "Its author.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Revision id.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Revision type (insert, delete, mark_insert, format...).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "revisions_omitted": {
+ "description": "Resolved revisions left out of the list.",
+ "type": "integer"
+ },
+ "sha256": {
+ "description": "sha256 of the file after the write (pass as expect.sha256 next).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "warnings": {
+ "description": "Notes on what the write could not do as asked.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "applied",
+ "dry_run"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}