Skip to content

Commit

Permalink
Merge pull request #580 from voucherifyio/pz/remove-nullable
Browse files Browse the repository at this point in the history
pz/remove-nullable
  • Loading branch information
p-zielinski authored Nov 30, 2023
2 parents 1505ce8 + bd49a35 commit 6aa349e
Showing 1 changed file with 38 additions and 22 deletions.
60 changes: 38 additions & 22 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -16131,8 +16133,10 @@
}
},
"customer": {
"nullable": true,
"$ref": "#/components/schemas/SimpleCustomer"
"type": ["object", "null"],
"allOf": [{
"$ref": "#/components/schemas/SimpleCustomer"
}]
},
"related_object_type": {
"type": "string",
Expand Down Expand Up @@ -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",
Expand All @@ -16321,8 +16327,10 @@
}
},
"customer": {
"nullable": true,
"$ref": "#/components/schemas/SimpleCustomer"
"type": ["object", "null"],
"allOf": [{
"$ref": "#/components/schemas/SimpleCustomer"
}]
},
"related_object_type": {
"type": "string",
Expand Down Expand Up @@ -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."
}
},
Expand Down

0 comments on commit 6aa349e

Please sign in to comment.