changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "citation": {
- "properties": {
- "accessDate": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "author": {
- "type": "string"
- },
- "formats": {
- "properties": {
- "apa": {
- "type": "string"
- },
- "bibtex": {
- "type": "string"
- },
- "harvard": {
- "type": "string"
- },
- "plain": {
- "type": "string"
- }
- },
- "required": [
- "plain",
- "apa",
- "harvard",
- "bibtex"
- ],
- "type": "object"
- },
- "sourcesChecked": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "version": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "author",
- "title",
- "url",
- "formats",
- "accessDate"
- ],
- "type": "object"
- },
- "codeLength": {
- "type": "integer"
- },
- "counts": {
- "required": [
- "objects",
- "levels"
- ],
- "type": "object"
- },
- "diff": {
- "properties": {
- "added": {
- "items": {
- "required": [
- "id",
- "c"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "changed": {
- "items": {
- "required": [
- "id",
- "c",
- "fields"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "removed": {
- "items": {
- "required": [
- "id",
- "c"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "added",
- "removed",
- "changed"
- ],
- "type": "object"
- },
- "document": {
- "description": "The edited drawing: send it (or the link) back to edit it again.",
- "required": [
- "schema",
- "units",
- "counters",
- "levels",
- "types",
- "entities",
- "assumed",
- "updatedAt"
- ],
- "type": "object"
- },
- "doors": {
- "description": "Every door's hand: the wall end its leaf hangs at (start or end, from the wall's start) and the face it opens toward (left or right going start to end, y up on plan). stored false: the drawing holds no hand for it, and the canvas draws it hinged at its start, opening left.",
- "items": {
- "properties": {
- "hinge": {
- "enum": [
- "start",
- "end"
- ]
- },
- "id": {
- "type": "string"
- },
- "stored": {
- "type": "boolean"
- },
- "swing": {
- "enum": [
- "left",
- "right"
- ]
- },
- "wall": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "wall",
- "hinge",
- "swing",
- "stored"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "engine": {
- "type": "object"
- },
- "from": {
- "description": "What the drawing arrived as: link, document, or the form of a new drawing (house, commands, template …).",
- "type": "string"
- },
- "language": {
- "description": "Only with a lang other than en: the answer's language (es-US, fr-CA or pt-BR), whether its links may name the translated pages (spanishLinks for es-US; localeLinks for fr-CA and pt-BR, where an unpublished page still links in English), and the honest machine-translation label.",
- "properties": {
- "englishPages": {
- "description": "Site page addresses in this answer that open the ENGLISH page, because the translated page is not published yet (the words in the answer may still be translated).",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "label": {
- "type": "object"
- },
- "lang": {
- "enum": [
- "es-US",
- "fr-CA",
- "pt-BR"
- ]
- },
- "localeLinks": {
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "spanishLinks": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "licence": {
- "properties": {
- "attribution": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "url",
- "attribution"
- ],
- "type": "object"
- },
- "link": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Opens the edited drawing on the canvas as a new project's; null when too large for a link."
- },
- "links": {
- "required": [
- "canvas",
- "drawing",
- "page"
- ],
- "type": "object"
- },
- "note": {
- "type": "string"
- },
- "notice": {
- "type": "string"
- },
- "quantities": {
- "properties": {
- "changed": {
- "description": "The canvas dock's rows whose quantity moved (null: the row is new, or gone), in both unit systems.",
- "items": {
- "properties": {
- "after": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "before": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "calculator": {
- "type": "string"
- },
- "change": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "key": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "otherSystem": {
- "anyOf": [
- {
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "section": {
- "type": "string"
- },
- "unit": {
- "type": "string"
- }
- },
- "required": [
- "key",
- "section",
- "label",
- "unit",
- "before",
- "after",
- "change",
- "otherSystem",
- "calculator"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "labourHours": {
- "description": "The labour band the canvas gives the drawing, before and after: hours for planning, not a price.",
- "properties": {
- "after": {
- "properties": {
- "high": {
- "type": "number"
- },
- "likely": {
- "type": "number"
- },
- "low": {
- "type": "number"
- }
- },
- "required": [
- "low",
- "likely",
- "high"
- ],
- "type": "object"
- },
- "before": {
- "properties": {
- "high": {
- "type": "number"
- },
- "likely": {
- "type": "number"
- },
- "low": {
- "type": "number"
- }
- },
- "required": [
- "low",
- "likely",
- "high"
- ],
- "type": "object"
- }
- },
- "required": [
- "before",
- "after"
- ],
- "type": "object"
- },
- "unchanged": {
- "type": "integer"
- }
- },
- "required": [
- "changed",
- "unchanged",
- "labourHours"
- ],
- "type": "object"
- },
- "schema": {
- "description": "The canvas document schema the edited drawing is in.",
- "type": "integer"
- },
- "steps": {
- "description": "What each operation did, as the canvas says it.",
- "items": {
- "properties": {
- "index": {
- "type": "integer"
- },
- "op": {
- "type": "string"
- },
- "said": {
- "type": "string"
- }
- },
- "required": [
- "index",
- "op",
- "said"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "system": {
- "enum": [
- "metric",
- "imperial"
- ]
- },
- "tooLong": {
- "type": "string"
- }
- },
- "required": [
- "engine",
- "system",
- "from",
- "steps",
- "diff",
- "quantities",
- "counts",
- "schema",
- "document",
- "link",
- "codeLength",
- "note",
- "links",
- "citation",
- "licence",
- "notice"
- ],
- "type": "object"
- },
- {
- "properties": {
- "citation": {
- "description": "The one citation line, built from the answer's own data.",
- "type": "string"
- },
- "detail": {
- "const": "summary"
- },
- "language": {
- "description": "Only with a lang other than en: the answer's language (es-US, fr-CA or pt-BR), whether its links may name the translated pages (spanishLinks for es-US; localeLinks for fr-CA and pt-BR, where an unpublished page still links in English), and the honest machine-translation label.",
- "properties": {
- "englishPages": {
- "description": "Site page addresses in this answer that open the ENGLISH page, because the translated page is not published yet (the words in the answer may still be translated).",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "label": {
- "type": "object"
- },
- "lang": {
- "enum": [
- "es-US",
- "fr-CA",
- "pt-BR"
- ]
- },
- "localeLinks": {
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "spanishLinks": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "lines": {
- "description": "The result lines, as the report's table gives them.",
- "items": {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- "type": "array"
- },
- "more": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "notes": {
- "description": "What a professional must decide, when to call one, a false-friend warning, that adoption is local: kept in every summary.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "open": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "detail",
- "tool",
- "title",
- "lines",
- "notes",
- "citation",
- "url",
- "open",
- "more"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "baseRev": {
+ "description": "The revision of the drawing the edits were applied to.",
+ "type": "string"
+ },
+ "citation": {
+ "properties": {
+ "accessDate": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "author": {
+ "type": "string"
+ },
+ "formats": {
+ "properties": {
+ "apa": {
+ "type": "string"
+ },
+ "bibtex": {
+ "type": "string"
+ },
+ "harvard": {
+ "type": "string"
+ },
+ "plain": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "plain",
+ "apa",
+ "harvard",
+ "bibtex"
+ ],
+ "type": "object"
+ },
+ "sourcesChecked": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "author",
+ "title",
+ "url",
+ "formats",
+ "accessDate"
+ ],
+ "type": "object"
+ },
+ "codeLength": {
+ "type": "integer"
+ },
+ "counts": {
+ "required": [
+ "objects",
+ "levels"
+ ],
+ "type": "object"
+ },
+ "diff": {
+ "properties": {
+ "added": {
+ "items": {
+ "required": [
+ "id",
+ "c"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "changed": {
+ "items": {
+ "required": [
+ "id",
+ "c",
+ "fields"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "removed": {
+ "items": {
+ "required": [
+ "id",
+ "c"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "added",
+ "removed",
+ "changed"
+ ],
+ "type": "object"
+ },
+ "document": {
+ "description": "The edited drawing (JSON Schema: https://craftquantities.com/schemas/canvas-drawing-5.json): send it (or the link) back to edit it again.",
+ "required": [
+ "schema",
+ "units",
+ "counters",
+ "levels",
+ "types",
+ "entities",
+ "assumed",
+ "updatedAt"
+ ],
+ "type": "object"
+ },
+ "documentSchema": {
+ "description": "The JSON Schema the document follows.",
+ "type": "string"
+ },
+ "doors": {
+ "description": "Every door's hand: the wall end its leaf hangs at (start or end, from the wall's start) and the face it opens toward (left or right going start to end, y up on plan). stored false: the drawing holds no hand for it, and the canvas draws it hinged at its start, opening left.",
+ "items": {
+ "properties": {
+ "hinge": {
+ "enum": [
+ "start",
+ "end"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "stored": {
+ "type": "boolean"
+ },
+ "swing": {
+ "enum": [
+ "left",
+ "right"
+ ]
+ },
+ "wall": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "wall",
+ "hinge",
+ "swing",
+ "stored"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "engine": {
+ "type": "object"
+ },
+ "from": {
+ "description": "What the drawing arrived as: link, document, or the form of a new drawing (house, commands, template …).",
+ "type": "string"
+ },
+ "language": {
+ "description": "Only with a lang other than en: the answer's language (es-US, fr-CA or pt-BR), whether its links may name the translated pages (spanishLinks for es-US; localeLinks for fr-CA and pt-BR, where an unpublished page still links in English), and the honest machine-translation label.",
+ "properties": {
+ "englishPages": {
+ "description": "Site page addresses in this answer that open the ENGLISH page, because the translated page is not published yet (the words in the answer may still be translated).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "label": {
+ "type": "object"
+ },
+ "lang": {
+ "enum": [
+ "es-US",
+ "fr-CA",
+ "pt-BR"
+ ]
+ },
+ "localeLinks": {
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "spanishLinks": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "licence": {
+ "properties": {
+ "attribution": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url",
+ "attribution"
+ ],
+ "type": "object"
+ },
+ "link": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Opens the edited drawing on the canvas as a new project's; null when too large for a link."
+ },
+ "links": {
+ "required": [
+ "canvas",
+ "drawing",
+ "page"
+ ],
+ "type": "object"
+ },
+ "note": {
+ "type": "string"
+ },
+ "notice": {
+ "type": "string"
+ },
+ "quantities": {
+ "properties": {
+ "changed": {
+ "description": "The canvas dock's rows whose quantity moved (null: the row is new, or gone), in both unit systems.",
+ "items": {
+ "properties": {
+ "after": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "before": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "calculator": {
+ "type": "string"
+ },
+ "change": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "otherSystem": {
+ "anyOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "section": {
+ "type": "string"
+ },
+ "unit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "section",
+ "label",
+ "unit",
+ "before",
+ "after",
+ "change",
+ "otherSystem",
+ "calculator"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "labourHours": {
+ "description": "The labour band the canvas gives the drawing, before and after: hours for planning, not a price.",
+ "properties": {
+ "after": {
+ "properties": {
+ "high": {
+ "type": "number"
+ },
+ "likely": {
+ "type": "number"
+ },
+ "low": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "low",
+ "likely",
+ "high"
+ ],
+ "type": "object"
+ },
+ "before": {
+ "properties": {
+ "high": {
+ "type": "number"
+ },
+ "likely": {
+ "type": "number"
+ },
+ "low": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "low",
+ "likely",
+ "high"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "before",
+ "after"
+ ],
+ "type": "object"
+ },
+ "unchanged": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "changed",
+ "unchanged",
+ "labourHours"
+ ],
+ "type": "object"
+ },
+ "rev": {
+ "description": "The edited drawing's revision: send it as baseRev with the next edit, so an edit to a drawing changed meanwhile is refused rather than written over the change.",
+ "type": "string"
+ },
+ "schema": {
+ "description": "The canvas document schema the edited drawing is in.",
+ "type": "integer"
+ },
+ "steps": {
+ "description": "What each operation did, as the canvas says it.",
+ "items": {
+ "properties": {
+ "index": {
+ "type": "integer"
+ },
+ "op": {
+ "type": "string"
+ },
+ "said": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "op",
+ "said"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "system": {
+ "enum": [
+ "metric",
+ "imperial"
+ ]
+ },
+ "tooLong": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "engine",
+ "system",
+ "from",
+ "steps",
+ "diff",
+ "quantities",
+ "counts",
+ "schema",
+ "baseRev",
+ "rev",
+ "documentSchema",
+ "document",
+ "link",
+ "codeLength",
+ "note",
+ "links",
+ "citation",
+ "licence",
+ "notice"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "citation": {
+ "description": "The one citation line, built from the answer's own data.",
+ "type": "string"
+ },
+ "detail": {
+ "const": "summary"
+ },
+ "language": {
+ "description": "Only with a lang other than en: the answer's language (es-US, fr-CA or pt-BR), whether its links may name the translated pages (spanishLinks for es-US; localeLinks for fr-CA and pt-BR, where an unpublished page still links in English), and the honest machine-translation label.",
+ "properties": {
+ "englishPages": {
+ "description": "Site page addresses in this answer that open the ENGLISH page, because the translated page is not published yet (the words in the answer may still be translated).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "label": {
+ "type": "object"
+ },
+ "lang": {
+ "enum": [
+ "es-US",
+ "fr-CA",
+ "pt-BR"
+ ]
+ },
+ "localeLinks": {
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "spanishLinks": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "lines": {
+ "description": "The result lines, as the report's table gives them.",
+ "items": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "more": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notes": {
+ "description": "What a professional must decide, when to call one, a false-friend warning, that adoption is local: kept in every summary.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "open": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "detail",
+ "tool",
+ "title",
+ "lines",
+ "notes",
+ "citation",
+ "url",
+ "open",
+ "more"
+ ],
+ "type": "object"
+ }
+]