FIWARE / context.Orion-LD

Context Broker and CEF building block for context data management which supports both the NGSI-LD and the NGSI-v2 APIs
https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.06.01_60/gs_CIM009v010601p.pdf
GNU Affero General Public License v3.0
50 stars 42 forks source link

array of object (URIs) is not supported for relationships #34

Closed jmcanterafonseca closed 5 years ago

jmcanterafonseca commented 5 years ago

See test at

https://github.com/Fiware/NGSI-LD_Tests/blob/master/contextProvision/create_entity_test.js#L239

const entity = {
      'id': 'urn:ngsi-ld:T:' + new Date().getTime(),
      'type': 'T',
      'AR1': {
        'type': 'Relationship',
        'object': ['urn:ngsi-ld:T:1234', 'urn:ngsi-ld:T:5678']
      }
    };
kzangeli commented 5 years ago

This works just fine, see the functest of PR https://github.com/FIWARE/context.Orion-LD/pull/49

jmcanterafonseca commented 5 years ago

orion-LD is crashing ... with the example

jmcanterafonseca commented 5 years ago

tested against http://orion.lab.fiware.org:1027 and it worked