[fix] - throw error when number id is passed to an Unit
Closed this issue · 0 comments
ilyichv commented
By default when a number is passed as id
of an Unit
, a new uuid
is generated.
body
{
"id": 123,
"label": "test_2"
}
response
{
"content": {
"arke_id": "string",
"default_string": null,
"format": "attribute",
"helper_text": null,
"id": "73d14628-f96d-11ed-8a77-acde48001122",
"inserted_at": "2023-05-23T13:26:40Z",
"is_primary": false,
"label": "test_2",
"max_length": null,
"metadata": {},
"min_length": null,
"multiple": false,
"nullable": true,
"only_run_time": false,
"persistence": "arke_parameter",
"required": false,
"unique": false,
"updated_at": "2023-05-23T13:26:40Z",
"values": null
},
"messages": []
}
We agreed with @dorianmercatante that it should return an error in this cases.