I suggest one more form field type value 'undefined'/'json-value' (or similar) to enable some part of the data to be any JSON value. Useful when client should determine the data structure and you do not want to put it all in a string.
{
"href": "http://example.io/tasks",
"method": "POST",
"rel": [
"create-form"
],
"value": [
{
"name": "description",
"type": "string"
},
{
"name": "customData",
"type": "undefined" // or "json-value" or similar
}
]
}
I suggest one more form field type value 'undefined'/'json-value' (or similar) to enable some part of the data to be any JSON value. Useful when client should determine the data structure and you do not want to put it all in a string.