-
Notifications
You must be signed in to change notification settings - Fork 170
ODataException when entity has DateOnly or TimeOnly member #1294
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
Comments
Duplicate: |
I don't think they are quite the same. Serialization of DateOnly members has been working for me using Microsoft.AspNetCore.OData 8.2.5. I've included an image of the response I get when I query my test environment: And an image of the response I receive when I get (minus the When I upgrade my development environment to 9 rc1 and execute the same requests, I get: And: I think the error might be related to this piece of code in Changing There are many places that check |
Or merge my PR: #1296 |
i vote for fixing this problem and Full Support of DateOnly and TimeOnly |
The PR was merged and I can confirm that my issue has been resolved. |
Assemblies affected
Microsoft.AspNetCore.OData 9.0.0-rc.1
Microsoft.OData.Core 8.0.0-rc.1
Describe the bug
Cannot GET or POST entities that contain DateOnly and TimeOnly types after upgrading to v9 rc1
Error
Here is the error stacktrace:
Reproduce steps
I've created a sample repo: https://github.com/andygjp/DateOnlySerializationError
Expected behavior
I should be able to GET and POST entities that have DateOnly and TimeOnly types
The text was updated successfully, but these errors were encountered: