(Comes from PR #3498)
NGSIv2 doesn't provide information about partial updates. For instance, if I do an update with attribute A and B, but B doesn't exist in the entity, A is updated and response is like this:
{"error":"NotFound", "description":"The entity does not have such an attribute"}
More information could be provided. Two alternatives:
- Use the "description" string for that (in a similar way "PartialUpdates" does, in NGSIv2-client forwarding scenarios). This way is compliant with NGSIv2 (as description is for humands and may vary between implementations).
- Use new fields in the JSON. This way is not compliant with NGSIv2 (as new fields cannot be introduced in error responses) but it could be part of the next review (NGSI v2.1) in a backward compatible mode (new fields doesn't hurt to old implementations).
This information could be used to provide better responses in "PartialUpdate" messages in CPr-NGSIv2 forwarding scenarios (see #3498 for more details) but only in the second case (as in the first one, as we say, description is not formal and may vary between implementations).
(Comes from PR #3498)
NGSIv2 doesn't provide information about partial updates. For instance, if I do an update with attribute A and B, but B doesn't exist in the entity, A is updated and response is like this:
More information could be provided. Two alternatives:
This information could be used to provide better responses in "PartialUpdate" messages in CPr-NGSIv2 forwarding scenarios (see #3498 for more details) but only in the second case (as in the first one, as we say, description is not formal and may vary between implementations).