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": {
+ "mirror_margins": {
+ "description": "Mirrored margins.",
+ "type": "boolean"
+ },
+ "sections": {
+ "description": "Each section, in order.",
+ "items": {
+ "description": "A section of the plan.",
+ "properties": {
+ "break": {
+ "description": "nextPage, oddPage, evenPage or continuous.",
+ "type": "string"
+ },
+ "first_page_different": {
+ "description": "Different first page.",
+ "type": "boolean"
+ },
+ "footer": {
+ "description": "Text per kind; {PAGE}, {NUMPAGES} and {chapter} stand for fields; null: inherited.",
+ "properties": {
+ "default": {
+ "description": "Default (odd) pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Even pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "First page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "from": {
+ "description": "Paragraph address, p<n>#<fingerprint> (story-prefixed in notes/headers).",
+ "type": "string"
+ },
+ "header": {
+ "description": "Text per kind; {PAGE}, {NUMPAGES} and {chapter} stand for fields; null: inherited.",
+ "properties": {
+ "default": {
+ "description": "Default (odd) pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Even pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "First page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "numbering": {
+ "description": "Page numbering.",
+ "properties": {
+ "format": {
+ "description": "decimal, lowerRoman, upperRoman, lowerLetter, upperLetter...",
+ "type": "string"
+ },
+ "shown": {
+ "description": "A page number is printed (checked, not set).",
+ "type": "boolean"
+ },
+ "start": {
+ "description": "Restart value, or null to continue.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "two_sided": {
+ "description": "Different even and odd headers.",
+ "type": "boolean"
+ },
+ "version": {
+ "description": "Plan format version (1).",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "two_sided",
+ "mirror_margins",
+ "sections"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}