Skip to content

Extra information about partial updates in responses #3499

@fgalan

Description

@fgalan

(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:

  1. 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).
  2. 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).

Metadata

Metadata

Assignees

Labels

APIv2.1To be included in a potential NGSI v2.1 API versionbacklog

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions