-
Notifications
You must be signed in to change notification settings - Fork 4
Open
OData/odataorg.github.io
#386Description
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-odata/670aaf17-aafe-47ef-89fe-010e40373471 demands a results element in a response that describes a collection of primitive values:
; OData 2.0 response Verbose JSON representation of a collection of EDMSimpleType values:
entityCollPrimValueInVJson2 = quotation-mark "results" quotation-mark
name-seperator
begin-array
entityPropertyValueInVJson
; see section 2.2.6.3.8
*(value-seperator entityPropertyValueInVJson)
end-array
-
Where does this document specify the
delement that wraps responses? -
However, https://www.odata.org/documentation/odata-version-2-0/json-format/, section 16 specifies a different format for an operations response that describes a collection of primitive values:
{ "d" : [ 0, 1, 2 ] }But the Microsoft Learn document does not mention a different format for operations responses. Which is correct?
-
Also, section 12 of the odata.org document contains a syntactically wrong example:
{ "d" : { "results": { "Name": "Bread" }
boghyon50gY
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Open