Multiple fields stucture when sent for update
Steps to reproduce
As discussed here: blox/invoicing#9, the structure of our multiple fields are probably not standard, and not working properly.
Expected behavior
When we update an invoice with some batches, we send:
{
"@id": "https://api.test6.startinblox.com/customer-invoices/2/",
"batches": [
{
"@id": "https://api.test6.startinblox.com/batchs/1/",
"title": "...",
}
],
"@context": { ... }
}
What's happening?
Instead, we should send:
{
"@id": "https://api.test6.startinblox.com/customer-invoices/2/",
"batches": {
"@id": "https://api.test6.startinblox.com/customer-invoices/2/batches/" // optional
"ldp:contains": [
{
"@id": "https://api.test6.startinblox.com/batchs/1/",
"title": "...",
}
]
},
"@context": { ... }
}
Your Environment
- Library version: 0.17
- Targeted application: Hubl (invoicing blox)