Tweak examples to return empty arrays as [] instead of null
This commit is contained in:
parent
cc7da9d69e
commit
712564001c
@ -54,7 +54,7 @@ paths:
|
|||||||
summary: List containing one product with many null attributes
|
summary: List containing one product with many null attributes
|
||||||
description: |-
|
description: |-
|
||||||
Most product attributes are optional on a database level and can thus be null; this example shows that all attributes as defined in the schema are always represented in the response, even if null. \
|
Most product attributes are optional on a database level and can thus be null; this example shows that all attributes as defined in the schema are always represented in the response, even if null. \
|
||||||
**Empty lists/arrays show up as null, not as "[]"!**
|
**Empty lists/arrays show up as "[]", not as null!**
|
||||||
value:
|
value:
|
||||||
{
|
{
|
||||||
"Entries": [
|
"Entries": [
|
||||||
@ -64,8 +64,8 @@ paths:
|
|||||||
"productName": null,
|
"productName": null,
|
||||||
"productDescription": null,
|
"productDescription": null,
|
||||||
"productCategory": null,
|
"productCategory": null,
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": null,
|
"sellableTouchPointIds": [],
|
||||||
"amountInclTax": null,
|
"amountInclTax": null,
|
||||||
"imageReference": null,
|
"imageReference": null,
|
||||||
"productPageUrl": null,
|
"productPageUrl": null,
|
||||||
@ -94,7 +94,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
1,
|
1,
|
||||||
2
|
2
|
||||||
@ -127,7 +127,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
3,
|
3,
|
||||||
4
|
4
|
||||||
@ -160,7 +160,7 @@ paths:
|
|||||||
"isTravelProduct": true,
|
"isTravelProduct": true,
|
||||||
"name": "Afgekocht reisrecht"
|
"name": "Afgekocht reisrecht"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchpointIds": [
|
"sellableTouchpointIds": [
|
||||||
4
|
4
|
||||||
],
|
],
|
||||||
@ -192,7 +192,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
3,
|
3,
|
||||||
4
|
4
|
||||||
|
|||||||
@ -54,7 +54,7 @@ paths:
|
|||||||
summary: List containing one product with many null attributes
|
summary: List containing one product with many null attributes
|
||||||
description: |-
|
description: |-
|
||||||
Most product attributes are optional on a database level and can thus be null; this example shows that all attributes as defined in the schema are always represented in the response, even if null. \
|
Most product attributes are optional on a database level and can thus be null; this example shows that all attributes as defined in the schema are always represented in the response, even if null. \
|
||||||
**Empty lists/arrays show up as null, not as "[]"!**
|
**Empty lists/arrays show up as "[]", not as null!**
|
||||||
value:
|
value:
|
||||||
{
|
{
|
||||||
"Entries": [
|
"Entries": [
|
||||||
@ -64,8 +64,8 @@ paths:
|
|||||||
"productName": null,
|
"productName": null,
|
||||||
"productDescription": null,
|
"productDescription": null,
|
||||||
"productCategory": null,
|
"productCategory": null,
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": null,
|
"sellableTouchPointIds": [],
|
||||||
"amountInclTax": null,
|
"amountInclTax": null,
|
||||||
"imageReference": null,
|
"imageReference": null,
|
||||||
"productPageUrl": null,
|
"productPageUrl": null,
|
||||||
@ -94,7 +94,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
1,
|
1,
|
||||||
2
|
2
|
||||||
@ -127,7 +127,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
3,
|
3,
|
||||||
4
|
4
|
||||||
@ -160,7 +160,7 @@ paths:
|
|||||||
"isTravelProduct": true,
|
"isTravelProduct": true,
|
||||||
"name": "Afgekocht reisrecht"
|
"name": "Afgekocht reisrecht"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchpointIds": [
|
"sellableTouchpointIds": [
|
||||||
4
|
4
|
||||||
],
|
],
|
||||||
@ -192,7 +192,7 @@ paths:
|
|||||||
"isTravelProduct": false,
|
"isTravelProduct": false,
|
||||||
"name": "Barcode"
|
"name": "Barcode"
|
||||||
},
|
},
|
||||||
"tokenTypes": null,
|
"tokenTypes": [],
|
||||||
"sellableTouchPointIds": [
|
"sellableTouchPointIds": [
|
||||||
3,
|
3,
|
||||||
4
|
4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user