changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "additionalProperties": false,
- "properties": {
- "customerAuthenticated": {
- "type": "boolean"
- },
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "cartItemId": {
- "anyOf": [
- {
- "maxLength": 200,
- "minLength": 1,
- "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "minLength": 1,
- "type": "string"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "const": "EUR",
- "type": "string"
- },
- "minorUnits": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "currency",
- "minorUnits"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "basis": {
- "enum": [
- "unit",
- "line",
- "unknown"
- ],
- "type": "string"
- }
- },
- "required": [
- "amount",
- "basis"
- ],
- "type": "object"
- },
- "productId": {
- "maxLength": 200,
- "minLength": 1,
- "pattern": "^\\d+$",
- "type": "string"
- },
- "quantity": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "quantity": {
- "additionalProperties": false,
- "properties": {
- "unit": {
- "enum": [
- "un",
- "kg",
- "g",
- "l",
- "ml"
- ],
- "type": "string"
- },
- "value": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "value",
- "unit"
- ],
- "type": "object"
- },
- "status": {
- "const": "known",
- "type": "string"
- }
- },
- "required": [
- "status",
- "quantity"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "rawText": {
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "enum": [
- "missing",
- "unsupported_unit",
- "unrecognized_format",
- "invalid_value"
- ],
- "type": "string"
- },
- "status": {
- "const": "unknown",
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "status",
- "value",
- "rawText"
- ],
- "type": "object"
- }
- ]
- }
- },
- "required": [
- "productId",
- "cartItemId",
- "name",
- "quantity",
- "price"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "total": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "const": "EUR",
- "type": "string"
- },
- "minorUnits": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "currency",
- "minorUnits"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "customerAuthenticated",
- "items",
- "total"
- ],
- "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": {
+ "customerAuthenticated": {
+ "type": "boolean"
+ },
+ "items": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "cartItemId": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "minLength": 1,
+ "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "kind": {
+ "enum": [
+ "product",
+ "bag"
+ ],
+ "type": "string"
+ },
+ "lineTotal": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "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"
+ },
+ "quantity": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "quantity": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "enum": [
+ "un",
+ "kg",
+ "g",
+ "l",
+ "ml"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "known",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "quantity"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "rawText": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "enum": [
+ "missing",
+ "unsupported_unit",
+ "unrecognized_format",
+ "invalid_value"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "const": "unknown",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "value",
+ "rawText"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "productId",
+ "cartItemId",
+ "name",
+ "kind",
+ "quantity",
+ "price",
+ "lineTotal"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totals": {
+ "additionalProperties": false,
+ "properties": {
+ "bags": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "delivery": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "deposit": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "discounts": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "grandTotal": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "products": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "const": "EUR",
+ "type": "string"
+ },
+ "minorUnits": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "currency",
+ "minorUnits"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "products",
+ "bags",
+ "deposit",
+ "delivery",
+ "discounts",
+ "grandTotal"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "customerAuthenticated",
+ "items",
+ "totals"
+ ],
+ "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"
+ }
+]