Skip to Content
Mar 23, 2020 at 12:22 PM

Update virtual and @readonly fields


Dear CAP Team,

Not sure whether it is a bug or a feature: When I'm sending PUT requests to update virtual fields or fields annotated with @readonly, updating is not happening (correct!), but the response status is 200 OK. So, the http client gets no indication that he is trying to work against the model. (cds version 3.31.2 on Node.js). The response body shows 'null' as value of such fields. The client needs to compare request and response to figure out that something didn't work as expected.

I would consider such request to result in an error, but I don't know what others think about it ... ?