How to filter by enums withou namespacing #953
Answered
by
KenitoInc
petrkasnal
asked this question in
Q&A
-
Hi, is it possible filter my data by enum value without use fullnamespace in url? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
KenitoInc
Jul 5, 2023
Replies: 2 comments
-
I'm not sure if this is supported. Any ideas @KenitoInc, @xuzhg , @ElizabethOkerio, @gathogojr ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is supported in odata core. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
petrkasnal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is supported in odata core.
We have a
StringAsEnumResolver
https://github.com/OData/odata.net/blob/master/src/Microsoft.OData.Core/UriParser/Resolver/StringAsEnumResolver.csLook at this test https://github.com/OData/odata.net/blob/4414000c0da72b22ff3c4a96f51cbf35f2316bca/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/UriParser/EnumFilterFunctionalTests.cs#L263