OData / ODataSamples

Samples: For ODataLib, OData Web API, RESTier, etc.
http://odata.github.io/
Other
296 stars 223 forks source link

V2/Northwind not conforming to OData V2 specification if `$top` is included due to missing `"results"` #154

Open boghyon opened 2 years ago

boghyon commented 2 years ago

Similar to the issue https://github.com/OData/ODataSamples/issues/119, the reference service Northwind does currently not comply with the OData V2 specification if the request URL contains the system query option $top.

boghyon commented 1 year ago

@ralfhandl @mikepizzo Could you confirm whether the "results" property is a MUST in the above case with $top? Or is it optional? V2 sample services by SAP do include the "results" property even with $top expectedly.

ralfhandl commented 1 year ago

That's surprising behavior. The query options $top and $skip should just change the included entities and not change the response shape.