You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NGSI-LD spec specifies that GET /ngsi-ld/v1/types returns a EntityTypeList type, unless details=true is specified.
But it returns an empty JSONarray when EntityTypeList is empty.
$ curl orion-ld:1026/ngsi-ld/v1/types
[]
I think that it should returns an empty JSONobject or an JSONobject including a empty typeList as shown:
Yes, you are probably right. I will look into this.
The response type of GET /types was recently changed and while the normal case (some type found) has been changed to return what the NGSI-LD API spec now states, this corner-case was probably forgotten.
I promise to look into this and if we (well, you :)) are right, to fix it ASAP!
NGSI-LD spec specifies that
GET /ngsi-ld/v1/types
returns aEntityTypeList
type, unless details=true is specified.But it returns an empty JSONarray when EntityTypeList is empty.
I think that it should returns an empty JSONobject or an JSONobject including a empty typeList as shown:
or
I tested this using Orion 0.6.1.
The text was updated successfully, but these errors were encountered: