odata
odata copied to clipboard
Unable to create filter for Enum value
Hi,
I tried to compose a filter for an enum value, but was not successful.
How do I correctly filter for an enum value?
I tried sth. like: http://localhost:8080/example.svc/Schools?$filter=type eq 'SECONDARY' and http://localhost:8080/example.svc/Schools?$filter=type eq SDL.OData.Example.SchoolType'SECONDARY' but I always get "The URI contains an incorrectly specified $filter option"
What am I doing wrong?
Does anybody found a workaround? (except change type to String)
@vinayknl may I ask you to add bug label to this issue? Seems, this is one of major limitation of using SDL.