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": {
+ "additionalProperties": true,
+ "description": "What the operation returns.",
+ "properties": {
+ "at": {
+ "description": "Paragraph address, p<n>#<fingerprint> (story-prefixed in notes/headers).",
+ "type": "string"
+ },
+ "blank_before": {
+ "description": "Empty paragraphs right before it.",
+ "type": "integer"
+ },
+ "centred": {
+ "description": "Whether it is centred.",
+ "type": "boolean"
+ },
+ "empty": {
+ "description": "No visible text.",
+ "type": "boolean"
+ },
+ "format": {
+ "description": "Direct paragraph formatting (alignment, indent, spacing...).",
+ "type": "object"
+ },
+ "heading_level": {
+ "description": "1-9 for a heading, null for a body paragraph.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kind": {
+ "description": "Header/footer kind: default, first or even.",
+ "type": "string"
+ },
+ "length": {
+ "description": "Length of the whole text, in code points.",
+ "type": "integer"
+ },
+ "note": {
+ "description": "A note's id, displayed number and the body paragraph holding its mark.",
+ "properties": {
+ "id": {
+ "description": "Note id.",
+ "type": "integer"
+ },
+ "number": {
+ "description": "Displayed number.",
+ "type": "string"
+ },
+ "of": {
+ "description": "Address of the paragraph holding the mark.",
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "number": {
+ "description": "Paragraph number (1-based) in its story.",
+ "type": "integer"
+ },
+ "offset": {
+ "description": "Where this page of text starts in the paragraph.",
+ "type": "integer"
+ },
+ "page_break_before": {
+ "description": "Whether it starts a page.",
+ "type": "boolean"
+ },
+ "runs": {
+ "description": "Spans of the text with direct character formatting.",
+ "items": {
+ "additionalProperties": true,
+ "description": "A span: start/end offsets plus its formatting (bold, italic, font...).",
+ "properties": {
+ "end": {
+ "description": "End offset.",
+ "type": "integer"
+ },
+ "start": {
+ "description": "Start offset.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "start",
+ "end"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "section": {
+ "description": "Section (1-based) whose header or footer this is.",
+ "type": "integer"
+ },
+ "story": {
+ "description": "Story kind outside the body: footnote, endnote, header or footer.",
+ "type": "string"
+ },
+ "style": {
+ "description": "Paragraph style id.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "style_name": {
+ "description": "Paragraph style display name.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "text": {
+ "description": "This page of the text.",
+ "type": "string"
+ },
+ "used_by_sections": {
+ "description": "Sections that show this header or footer.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "at",
+ "number",
+ "length",
+ "style",
+ "style_name",
+ "format",
+ "offset",
+ "text",
+ "runs"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}