Handle malformed request bodies more gracefully
currently, the following request will 500:
curl http://localhost:8080/api/datasets \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ..." \
-d '{"label":"Label","description":"Description","source":{}}'
{
"timestamp":"2021-03-06 11:23:13",
"status":500,
"error":"Invalid property 'source.code' of bean class [eu.sshopencloud.marketplace.dto.datasets.DatasetCore]: Bean property 'source.code' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?"
}
Malformed request body data like source:{}
could be handled more gracefully. wdyt?