changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "additionalProperties": false,
- "properties": {
- "cartItemId": {
- "maxLength": 200,
- "minLength": 1,
- "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
- "type": "string"
- },
- "confirmedQuantity": {
- "additionalProperties": false,
- "properties": {
- "unit": {
- "enum": [
- "un",
- "kg",
- "g",
- "l",
- "ml"
- ],
- "type": "string"
- },
- "value": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "value",
- "unit"
- ],
- "type": "object"
- },
- "disposition": {
- "enum": [
- "removed",
- "already_absent"
- ],
- "type": "string"
- },
- "outcome": {
- "const": "confirmed",
- "type": "string"
- },
- "productId": {
- "maxLength": 200,
- "minLength": 1,
- "pattern": "^\\d+$",
- "type": "string"
- },
- "requested": {
- "additionalProperties": false,
- "properties": {
- "unit": {
- "enum": [
- "un",
- "kg",
- "g",
- "l",
- "ml"
- ],
- "type": "string"
- },
- "value": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "value",
- "unit"
- ],
- "type": "object"
- }
- },
- "required": [
- "productId",
- "requested",
- "outcome",
- "confirmedQuantity"
- ],
- "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": {
+ "cartItemId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
+ "type": "string"
+ },
+ "confirmedQuantity": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "enum": [
+ "un",
+ "kg",
+ "g",
+ "l",
+ "ml"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "disposition": {
+ "enum": [
+ "removed",
+ "already_absent"
+ ],
+ "type": "string"
+ },
+ "outcome": {
+ "const": "confirmed",
+ "type": "string"
+ },
+ "productId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "requested": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "enum": [
+ "un",
+ "kg",
+ "g",
+ "l",
+ "ml"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "productId",
+ "requested",
+ "outcome",
+ "confirmedQuantity"
+ ],
+ "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"
+ }
+]