changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "additionalProperties": false,
- "properties": {
- "cacheState": {
- "enum": [
- "empty",
- "populated"
- ],
- "type": "string"
- },
- "completeness": {
- "enum": [
- "complete",
- "unknown"
- ],
- "type": "string"
- },
- "expiresAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "favorites": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "name": {
- "maxLength": 250,
- "minLength": 1,
- "type": "string"
- },
- "price": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "const": "EUR",
- "type": "string"
- },
- "minorUnits": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "currency",
- "minorUnits"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "productId": {
- "maxLength": 200,
- "minLength": 1,
- "pattern": "^\\d+$",
- "type": "string"
- },
- "productSlug": {
- "anyOf": [
- {
- "maxLength": 200,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "productId",
- "productSlug",
- "name",
- "price",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "fetchedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "freshness": {
- "enum": [
- "fresh",
- "stale"
- ],
- "type": "string"
- },
- "source": {
- "enum": [
- "cache",
- "website"
- ],
- "type": "string"
- }
- },
- "required": [
- "favorites",
- "fetchedAt",
- "completeness",
- "source",
- "freshness",
- "expiresAt",
- "cacheState"
- ],
- "type": "object"
- },
- "status": {
- "enum": [
- "success",
- "empty",
- "partial"
- ],
- "type": "string"
- }
- },
- "required": [
- "status",
- "data"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "anyOf": [
- {
- "enum": [
- "invalid_data",
- "invalid_input",
- "not_authenticated",
- "upstream_unavailable",
- "not_found",
- "sale_rules_unknown",
- "quantity_below_minimum",
- "cart_change_rejected",
- "cart_change_unconfirmed",
- "cache_unavailable",
- "order_details_unavailable",
- "cancelled",
- "deadline_exceeded",
- "server_closed",
- "queue_full"
- ],
- "type": "string"
- },
- {
- "enum": [
- "internal_error",
- "invalid_result"
- ],
- "type": "string"
- }
- ]
- },
- "issues": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path",
- "code"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "mutation": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "outcome": {
- "const": "not_applied",
- "type": "string"
- }
- },
- "required": [
- "outcome"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "outcome": {
- "const": "unknown",
- "type": "string"
- },
- "recovery": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "get_cart",
- "type": "string"
- },
- "automaticReplay": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "action",
- "automaticReplay"
- ],
- "type": "object"
- }
- },
- "required": [
- "outcome",
- "recovery"
- ],
- "type": "object"
- }
- ]
- },
- "status": {
- "const": "error",
- "type": "string"
- }
- },
- "required": [
- "status",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "cacheState": {
+ "enum": [
+ "empty",
+ "populated"
+ ],
+ "type": "string"
+ },
+ "completeness": {
+ "enum": [
+ "complete",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "expiresAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "favorites": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "maxLength": 250,
+ "minLength": 1,
+ "type": "string"
+ },
+ "price": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ "per": {
+ "enum": [
+ "item",
+ "piece",
+ "kg",
+ "l"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "productId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "productSlug": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "productId",
+ "productSlug",
+ "name",
+ "price",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fetchedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale"
+ ],
+ "type": "string"
+ },
+ "source": {
+ "enum": [
+ "cache",
+ "website"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "favorites",
+ "fetchedAt",
+ "completeness",
+ "source",
+ "freshness",
+ "expiresAt",
+ "cacheState"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "enum": [
+ "success",
+ "empty",
+ "partial"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "data"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "anyOf": [
+ {
+ "enum": [
+ "invalid_data",
+ "invalid_input",
+ "not_authenticated",
+ "upstream_unavailable",
+ "not_found",
+ "sale_rules_unknown",
+ "quantity_below_minimum",
+ "cart_change_rejected",
+ "cart_change_unconfirmed",
+ "cache_unavailable",
+ "order_details_unavailable",
+ "cancelled",
+ "deadline_exceeded",
+ "server_closed",
+ "queue_full",
+ "browser_unavailable"
+ ],
+ "type": "string"
+ },
+ {
+ "enum": [
+ "internal_error",
+ "invalid_result"
+ ],
+ "type": "string"
+ }
+ ]
+ },
+ "issues": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "code"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "mutation": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "outcome": {
+ "const": "not_applied",
+ "type": "string"
+ }
+ },
+ "required": [
+ "outcome"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "outcome": {
+ "const": "unknown",
+ "type": "string"
+ },
+ "recovery": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "get_cart",
+ "type": "string"
+ },
+ "automaticReplay": {
+ "const": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "action",
+ "automaticReplay"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "outcome",
+ "recovery"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "status": {
+ "const": "error",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "error"
+ ],
+ "type": "object"
+ }
+]