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": {
+ "sections": {
+ "description": "Each section, in order.",
+ "items": {
+ "description": "A section's page setup.",
+ "properties": {
+ "break": {
+ "description": "Section break: nextPage, oddPage, evenPage or continuous.",
+ "type": "string"
+ },
+ "even_and_odd": {
+ "description": "Different even and odd headers (document-wide).",
+ "type": "boolean"
+ },
+ "footers": {
+ "description": "Header or footer story per kind (null: inherited from the previous section).",
+ "properties": {
+ "default": {
+ "description": "Story key of the default one, e.g. hdr1.default.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Story key of the even-page one.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "Story key of the first-page one.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "headers": {
+ "description": "Header or footer story per kind (null: inherited from the previous section).",
+ "properties": {
+ "default": {
+ "description": "Story key of the default one, e.g. hdr1.default.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Story key of the even-page one.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "Story key of the first-page one.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "page_numbers": {
+ "description": "Page numbering.",
+ "properties": {
+ "format": {
+ "description": "Number format (decimal, lowerRoman...).",
+ "type": "string"
+ },
+ "start": {
+ "description": "Restart value, or null to continue.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "section": {
+ "description": "Section number (1-based).",
+ "type": "integer"
+ },
+ "title_page": {
+ "description": "Different first page.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "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"
+}