From bd49a35c32a6ccba1f66bc41e693c7dcc8378661 Mon Sep 17 00:00:00 2001 From: p-zielinski <82354717+p-zielinski@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:46:18 +0100 Subject: [PATCH] Update OpenAPI.json --- reference/OpenAPI.json | 60 ++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/reference/OpenAPI.json b/reference/OpenAPI.json index 69a0b58c3..15177e774 100644 --- a/reference/OpenAPI.json +++ b/reference/OpenAPI.json @@ -16108,8 +16108,10 @@ "description": "If the result is `FAILURE`, this parameter will provide a more expanded reason as to why the redemption failed." }, "order": { - "nullable": true, - "$ref": "#/components/schemas/OrderResponseNoCustomerData" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/OrderResponseNoCustomerData" + }] }, "channel": { "type": "object", @@ -16131,8 +16133,10 @@ } }, "customer": { - "nullable": true, - "$ref": "#/components/schemas/SimpleCustomer" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/SimpleCustomer" + }] }, "related_object_type": { "type": "string", @@ -16298,8 +16302,10 @@ "description": "If the result is `FAILURE`, this parameter will provide a more expanded reason as to why the redemption failed." }, "order": { - "nullable": true, - "$ref": "#/components/schemas/OrderResponseNoCustomerData" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/OrderResponseNoCustomerData" + }] }, "channel": { "type": "object", @@ -16321,8 +16327,10 @@ } }, "customer": { - "nullable": true, - "$ref": "#/components/schemas/SimpleCustomer" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/SimpleCustomer" + }] }, "related_object_type": { "type": "string", @@ -28209,36 +28217,44 @@ "type": "object", "properties": { "reward": { - "nullable": true, - "$ref": "#/components/schemas/Reward" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/Reward" + }] }, "customer": { - "nullable": true, - "$ref": "#/components/schemas/CustomerResponse" + "type": ["object", "null"], + "allOf": [{ + "$ref": "#/components/schemas/CustomerResponse" + }] }, "assignment_id": { - "type": "string", - "nullable": true, + "type": ["string", "null"], "description": "Unique reward assignment ID assigned by Voucherify." }, "voucher": { + "type": ["object", "null"], "description": "Defines of the voucher.", - "nullable": true, - "$ref": "#/components/schemas/Voucher" + "allOf": [{ + "$ref": "#/components/schemas/Voucher" + }] }, "product": { + "type": ["object", "null"], "description": "Defines of the product.", - "nullable": true, - "$ref": "#/components/schemas/ProductResponse" + "allOf": [{ + "$ref": "#/components/schemas/ProductResponse" + }] }, "sku": { + "type": ["object", "null"], "description": "Defines of the sku.", - "nullable": true, - "$ref": "#/components/schemas/SkuResponse" + "allOf": [{ + "$ref": "#/components/schemas/SkuResponse" + }] }, "loyalty_tier_id": { - "type": "string", - "nullable": true, + "type": ["string", "null"], "description": "Unique loyalty tier ID assigned by Voucherify." } },