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"
+ },
+ "date": {
+ "description": "Revision date (UTC, ISO 8601).",
+ "type": "string"
+ },
+ "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"
+ },
+ "output": {
+ "description": "The redline written.",
+ "properties": {
+ "path": {
+ "description": "Its path.",
+ "type": "string"
+ },
+ "sha256": {
+ "description": "Its sha256.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "revisions": {
+ "description": "Tracked changes in the redline.",
+ "type": "integer"
+ },
+ "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"
+ }
+ },
+ "required": [
+ "old",
+ "new",
+ "output",
+ "summary",
+ "revisions",
+ "author",
+ "date"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}