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": {
+ "address_map": {
+ "description": "Old address -> new address (null if deleted) for this page.",
+ "type": "object"
+ },
+ "changes": {
+ "description": "This page of change records (unchanged paragraphs that kept their address are left out).",
+ "items": {
+ "description": "One aligned change.",
+ "properties": {
+ "count": {
+ "description": "With collapse_runs: unchanged paragraphs this record stands for.",
+ "type": "integer"
+ },
+ "kind": {
+ "description": "unchanged, modified, inserted, deleted, moved, split or merged.",
+ "type": "string"
+ },
+ "moved": {
+ "description": "True when it also moved.",
+ "type": "boolean"
+ },
+ "new": {
+ "description": "New addresses involved.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "old": {
+ "description": "Old addresses involved.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "similarity": {
+ "description": "Text similarity, 0-1, for a modified paragraph.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "new": {
+ "description": "The later version.",
+ "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"
+ },
+ "old": {
+ "description": "The earlier version.",
+ "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"
+ },
+ "summary": {
+ "description": "Paragraphs per alignment kind.",
+ "properties": {
+ "deleted": {
+ "description": "Deleted.",
+ "type": "integer"
+ },
+ "inserted": {
+ "description": "Inserted.",
+ "type": "integer"
+ },
+ "merged": {
+ "description": "Joined.",
+ "type": "integer"
+ },
+ "modified": {
+ "description": "Edited in place.",
+ "type": "integer"
+ },
+ "moved": {
+ "description": "Moved.",
+ "type": "integer"
+ },
+ "split": {
+ "description": "Split in two or more.",
+ "type": "integer"
+ },
+ "unchanged": {
+ "description": "Unchanged.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "total": {
+ "description": "Change records in all pages.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "old",
+ "new",
+ "summary",
+ "total",
+ "changes",
+ "address_map"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}