OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
63 stars 101 forks source link

V4 Northwind sample doesn't accept unquoted type names in cast/isof #135

Open EvanIreland opened 7 years ago

EvanIreland commented 7 years ago

For this request:

http://services.odata.org/V4/Northwind/Northwind.svc/Products?$filter=(ProductID eq cast(1,Edm.Int32))

server responds with 400 Bad request

However, this works with the server

http://services.odata.org/V4/Northwind/Northwind.svc/Products?$filter=ProductID eq cast(1, 'Edm.Int32')

OData V4 ABNF requires that type name be unquoted. So the sample service needs fixing.