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": {
+ "adoptable": {
+ "description": "Orphan stores whose history this document could take back (history.adopt).",
+ "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"
+ },
+ "backup": {
+ "description": "Path of the backup just taken.",
+ "type": "string"
+ },
+ "hint": {
+ "description": "What to do with adoptable.",
+ "type": "string"
+ },
+ "op_id": {
+ "description": "Log entry noting the open, or null if the file is as last logged.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "store": {
+ "description": "The document's store folder (backups and log).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "backup",
+ "op_id",
+ "store"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}