-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OData enum values use string values #221
Comments
Version 2.0.0 solves this issue |
Hmm I am still getting the same type conversion error, did this fix deffo make it into 2.0.0? |
Yes can you send me the error that you get? |
The JSON value could not be converted to Blackbot.Model.Prospects.ProspectStatus. Path: $.value[0].Status | LineNumber: 0 | BytePositionInLine: 324.
I'll have a bit more of a poke about this evening |
Have simplified my test page. shared:
controller
page:
|
aha..
It's not customising the deserialiser. Might need adding here, too?
|
OData/WebApi#1785
The default conversion for enums in OData is to use the string values...
Need to add
new JsonStringEnumConverter(null)
to AddOdataSupport converters.
The text was updated successfully, but these errors were encountered: