changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "diff": {
- "additionalProperties": false,
- "properties": {
- "baseVersion": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "baseVersionId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "payload": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "segments": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "op": {
- "enum": [
- "equal",
- "insert",
- "delete"
- ],
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "op",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "stats": {
- "additionalProperties": false,
- "properties": {
- "added": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "removed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "added",
- "removed"
- ],
- "type": "object"
- },
- "strategy": {
- "const": "text",
- "type": "string"
- }
- },
- "required": [
- "strategy",
- "segments",
- "stats"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "rows": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "op": {
- "enum": [
- "equal",
- "insert",
- "delete"
- ],
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "op",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "stats": {
- "additionalProperties": false,
- "properties": {
- "added": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "removed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "added",
- "removed"
- ],
- "type": "object"
- },
- "strategy": {
- "const": "rows",
- "type": "string"
- }
- },
- "required": [
- "strategy",
- "rows",
- "stats"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "versionId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "versionId",
- "baseVersionId",
- "baseVersion",
- "payload"
- ],
- "type": "object"
- }
- },
- "required": [
- "diff"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "content": {
- "additionalProperties": false,
- "properties": {
- "consistency": {
- "const": "live-hash-guarded",
- "type": "string"
- },
- "mimeType": {
- "const": "application/json",
- "type": "string"
- },
- "resourceUri": {
- "type": "string"
- },
- "sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "totalBytes": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "resourceUri",
- "sha256",
- "totalBytes",
- "mimeType",
- "consistency"
- ],
- "type": "object"
- }
- },
- "required": [
- "content"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "diff": {
+ "additionalProperties": false,
+ "properties": {
+ "baseVersion": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "baseVersionId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "payload": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "segments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "op": {
+ "enum": [
+ "equal",
+ "insert",
+ "delete"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "stats": {
+ "additionalProperties": false,
+ "properties": {
+ "added": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "removed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unit": {
+ "description": "What added and removed count: words for a text diff; lines for a CSV diff, the header line included, an edited row counted as one removed and one added.",
+ "enum": [
+ "words",
+ "lines"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "added",
+ "removed",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "strategy": {
+ "const": "text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "strategy",
+ "segments",
+ "stats"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "rows": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "op": {
+ "enum": [
+ "equal",
+ "insert",
+ "delete"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "stats": {
+ "additionalProperties": false,
+ "properties": {
+ "added": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "removed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unit": {
+ "description": "What added and removed count: words for a text diff; lines for a CSV diff, the header line included, an edited row counted as one removed and one added.",
+ "enum": [
+ "words",
+ "lines"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "added",
+ "removed",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "strategy": {
+ "const": "rows",
+ "type": "string"
+ }
+ },
+ "required": [
+ "strategy",
+ "rows",
+ "stats"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "versionId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "versionId",
+ "baseVersionId",
+ "baseVersion",
+ "payload"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "diff"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "additionalProperties": false,
+ "properties": {
+ "consistency": {
+ "const": "live-hash-guarded",
+ "type": "string"
+ },
+ "mimeType": {
+ "const": "application/json",
+ "type": "string"
+ },
+ "resourceUri": {
+ "type": "string"
+ },
+ "sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "totalBytes": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "resourceUri",
+ "sha256",
+ "totalBytes",
+ "mimeType",
+ "consistency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "type": "object"
+ }
+]