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": {
+ "paragraphs": {
+ "description": "This page of entries.",
+ "items": {
+ "description": "One paragraph, or one part of a very long one.",
+ "properties": {
+ "at": {
+ "description": "Paragraph address (absent for `text`).",
+ "type": "string"
+ },
+ "from": {
+ "description": "Normalised offset where this entry's text begins.",
+ "type": "integer"
+ },
+ "offset_map": {
+ "description": "Two-way offset map, as runs [index, value, count] or [index, value, count, 0].",
+ "properties": {
+ "to_normalized": {
+ "description": "Original -> normalised offsets.",
+ "items": {
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "to_original": {
+ "description": "Normalised -> original offsets.",
+ "items": {
+ "type": "array"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "part": {
+ "description": "Part k of a split paragraph.",
+ "type": "integer"
+ },
+ "parts": {
+ "description": "Parts the paragraph was split into.",
+ "type": "integer"
+ },
+ "start": {
+ "description": "Where the entry's text begins in the paragraph's visible text.",
+ "type": "integer"
+ },
+ "text": {
+ "description": "Normalised text.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "total": {
+ "description": "Paragraphs (or text strings) in the selection.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "paragraphs"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}