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": {
+ "count": {
+ "description": "Fields listed.",
+ "type": "integer"
+ },
+ "fields": {
+ "description": "Every field, story by story, in document order.",
+ "items": {
+ "description": "A field.",
+ "properties": {
+ "at": {
+ "description": "Address of its paragraph (comment:<id> in a comment).",
+ "type": "string"
+ },
+ "citation": {
+ "description": "A reference-manager citation (never changed by field.update).",
+ "type": "boolean"
+ },
+ "code": {
+ "description": "Instruction code.",
+ "type": "string"
+ },
+ "in": {
+ "description": "textbox when inside a text box.",
+ "type": "string"
+ },
+ "result": {
+ "description": "Result text shown.",
+ "type": "string"
+ },
+ "stale": {
+ "description": "Marked dirty, or a placeholder result: needs updating.",
+ "type": "boolean"
+ },
+ "story": {
+ "description": "body, comments, or the story key (fn3, hdr1.default...).",
+ "type": "string"
+ },
+ "type": {
+ "description": "Field type (PAGE, TOC, REF, ADDIN ZOTERO_ITEM, CITATION...).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "fields",
+ "count"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}