changedInput schema / properties / edits / items / oneOf
Previous value: -[
- {
- "properties": {
- "kind": {
- "const": "create",
- "type": "string"
- },
- "path": {
- "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- },
- "text": {
- "description": "The whole page: its YAML front matter, with a `type` and a `title`, then its body in markdown.",
- "maxLength": 1000000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "path",
- "text"
- ],
- "type": "object"
- },
- {
- "properties": {
- "fields": {
- "additionalProperties": {},
- "description": "Front-matter fields to set, by key, each to its new value; null removes one. The rest of the front matter stays as written.",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "kind": {
- "const": "edit",
- "type": "string"
- },
- "path": {
- "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- },
- "replacements": {
- "description": "Changes to the page's body, in order.",
- "items": {
- "properties": {
- "new": {
- "description": "What replaces it; empty removes it.",
- "type": "string"
- },
- "old": {
- "description": "Text in the page's body, exactly as get_concept gives it, found exactly once: include enough around it.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "old",
- "new"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "kind",
- "path"
- ],
- "type": "object"
- },
- {
- "properties": {
- "files": {
- "description": "Whether its files move with it (true by default).",
- "type": "boolean"
- },
- "from": {
- "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "move",
- "type": "string"
- },
- "to": {
- "description": "Its new path: a new folder, a new file name, or both.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "from",
- "to"
- ],
- "type": "object"
- },
- {
- "properties": {
- "kind": {
- "const": "deprecate",
- "type": "string"
- },
- "path": {
- "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- },
- "successor": {
- "description": "The page that replaces it, if one: its page will say so.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "path"
- ],
- "type": "object"
- },
- {
- "properties": {
- "files": {
- "description": "Whether its files go too (true by default).",
- "type": "boolean"
- },
- "kind": {
- "const": "delete",
- "type": "string"
- },
- "path": {
- "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
- "maxLength": 1024,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "path"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "kind": {
+ "const": "create",
+ "type": "string"
+ },
+ "path": {
+ "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ },
+ "text": {
+ "description": "The whole page: its YAML front matter, with a `type` and a `title` (never `generated` or `verified`, which OKForest sets), then its body in markdown.",
+ "maxLength": 1000000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "path",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "fields": {
+ "additionalProperties": {},
+ "description": "Front-matter fields to set, by key, each to its new value; null removes one. The rest of the front matter stays as written. `generated` and `verified` aren't among them: OKForest sets them when the change is applied.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "kind": {
+ "const": "edit",
+ "type": "string"
+ },
+ "path": {
+ "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ },
+ "replacements": {
+ "description": "Changes to the page's body, in order.",
+ "items": {
+ "properties": {
+ "new": {
+ "description": "What replaces it; empty removes it.",
+ "type": "string"
+ },
+ "old": {
+ "description": "Text in the page's body, exactly as get_concept gives it, found exactly once: include enough around it.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "old",
+ "new"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "path"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "files": {
+ "description": "Whether its files move with it (true by default).",
+ "type": "boolean"
+ },
+ "from": {
+ "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "move",
+ "type": "string"
+ },
+ "to": {
+ "description": "Its new path: a new folder, a new file name, or both.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "from",
+ "to"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "kind": {
+ "const": "deprecate",
+ "type": "string"
+ },
+ "path": {
+ "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ },
+ "successor": {
+ "description": "The page that replaces it, if one: its page will say so.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "path"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "files": {
+ "description": "Whether its files go too (true by default).",
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "delete",
+ "type": "string"
+ },
+ "path": {
+ "description": "A page's path in the tree, as get_concept gives it: `customers/acme-corp.md`.",
+ "maxLength": 1024,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "path"
+ ],
+ "type": "object"
+ }
+]