Null and sparse fields
Test rendering when optional values are null or missing.
View payload and cURL
Headers
none
Body
{
"id": "case_sparse",
"display_name": null,
"metadata": {},
"items": [
null,
{
"id": "item_1"
},
{}
]
}
Create with cURL
curl -i 'https://stubpoint.dev/api/endpoints' -H 'Content-Type: application/json' -d '{
"body": "{\n \"id\": \"case_sparse\",\n \"display_name\": null,\n \"metadata\": {},\n \"items\": [null, {\"id\": \"item_1\"}, {}]\n}",
"content_type": "application/json",
"headers": null,
"methods": [
"GET"
],
"status": 200
}'