Open jason-fox opened 9 months ago
Yeah, well aware. Misunderstanding back in 2018. For Orion-LD, we need to work out an approach on how to fix this.
IMO, the value of "value" belongs to the user and thus is sacred and should never ever be modified in any way. However, unfortunately, the API spec of NGSI-LD states otherwise and yes, this is an important bug (undetected by external users since ... always - note that Jason is a colleague of mine in the FIWARE Foundation :() and we need to find a good way of expanding those attribute values, via a DB adaption script, or something similar.
Create an Entity with a Property whose
value
is a JSON Object.The supplied User
@context
includes subattribute term mappings as shown:Then receive the entities by
type
as shown without supplying a User@context
:Orion returns:
Since
address.value
is just a JSON-LD@value
, the attributes of the object should undergo expansion. The expected response is: