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": {
+ "adopted": {
+ "description": "Whether the store was moved to the document.",
+ "type": "boolean"
+ },
+ "candidates": {
+ "description": "When several stores match: pass one as `store`; nothing moved.",
+ "items": {
+ "description": "An orphan store.",
+ "properties": {
+ "doc": {
+ "description": "Path of the document it last recorded.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "doc_id": {
+ "description": "Id of that document's history, null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "entries": {
+ "description": "Log entries.",
+ "type": "integer"
+ },
+ "last_time": {
+ "description": "Time of the last entry (ISO 8601).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sha_matched": {
+ "description": "Its last recorded state is this file.",
+ "type": "boolean"
+ },
+ "store": {
+ "description": "Store folder.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "dry_run": {
+ "description": "True when nothing was written (a preview).",
+ "type": "boolean"
+ },
+ "entries": {
+ "description": "Log entries it holds.",
+ "type": "integer"
+ },
+ "from": {
+ "description": "The orphan store adopted.",
+ "type": "string"
+ },
+ "op_id": {
+ "description": "Log entry noting the adoption.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sha_matched": {
+ "description": "The file is the store's last recorded state.",
+ "type": "boolean"
+ },
+ "store": {
+ "description": "Where the store lives now (or would).",
+ "type": "string"
+ },
+ "would_move": {
+ "description": "dry_run: the store that would move.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "adopted"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}