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": {
+ "characters": {
+ "description": "Characters in the body.",
+ "type": "integer"
+ },
+ "comments": {
+ "description": "Comments.",
+ "type": "integer"
+ },
+ "empty_paragraphs": {
+ "description": "Body paragraphs with no visible text.",
+ "type": "integer"
+ },
+ "fonts": {
+ "description": "Fonts named in the body and styles, most used first (top 20).",
+ "items": {
+ "description": "A font.",
+ "properties": {
+ "font": {
+ "description": "Font name.",
+ "type": "string"
+ },
+ "uses": {
+ "description": "References.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "footnotes": {
+ "description": "Footnotes.",
+ "type": "integer"
+ },
+ "headings": {
+ "description": "Heading paragraphs.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "Body paragraphs.",
+ "type": "integer"
+ },
+ "revisions": {
+ "description": "Tracked changes in the body.",
+ "properties": {
+ "by_type": {
+ "description": "Revision type -> count.",
+ "type": "object"
+ },
+ "total": {
+ "description": "All of them.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "stories": {
+ "description": "With stories: the same counts for notes and for headers/footers.",
+ "properties": {
+ "headers": {
+ "description": "Counts for one story kind.",
+ "properties": {
+ "characters": {
+ "description": "Characters.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "Paragraphs.",
+ "type": "integer"
+ },
+ "stories": {
+ "description": "Stories (notes, or header/footer parts).",
+ "type": "integer"
+ },
+ "words": {
+ "description": "Words.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "notes": {
+ "description": "Counts for one story kind.",
+ "properties": {
+ "characters": {
+ "description": "Characters.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "Paragraphs.",
+ "type": "integer"
+ },
+ "stories": {
+ "description": "Stories (notes, or header/footer parts).",
+ "type": "integer"
+ },
+ "words": {
+ "description": "Words.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "styles_in_use": {
+ "description": "Distinct styles used.",
+ "type": "integer"
+ },
+ "tables": {
+ "description": "Tables (w:tbl), nested included.",
+ "type": "integer"
+ },
+ "words": {
+ "description": "Words in the body (whitespace-separated).",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "paragraphs",
+ "empty_paragraphs",
+ "words",
+ "characters",
+ "headings",
+ "tables",
+ "comments",
+ "revisions",
+ "footnotes",
+ "styles_in_use",
+ "fonts"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}