Properties not present in a request payload are already interpreted as having the default value (if defined in $metadata) or the null value (if nullable and without default value).
Why not allow the same for responses.
Properties not present in a request payload are already interpreted as having the default value (if defined in $metadata) or the null value (if nullable and without default value).
Why not allow the same for responses.
Assuming that the value of omitted properties is null or default values seems dangerous.
There may be multiple reasons that a service omits values; there may be permissions issues, certain properties may be expensive compute, etc.
We should say that, in the absence of $select, services may return a subset of properties defined in the $metadata. If $select is specified, each property must be returned or an error generated.
Client should never make assumptions about missing properties.