-
Notifications
You must be signed in to change notification settings - Fork 47
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
DateOnly type not serialized #608
Comments
Branch issues/other/i608 created! |
Hey there @moshekar thank you for the kind words and for writing in. This is a good point, we do not currently support |
Well this is a pickle. It appears that
Please let me know how that looks to you and/or any further questions around this and I will further assist. 👍 |
Nevermind, I feel silly now! This is possible w/ .NET Standard after all and only thought to search after posting the above 😅 https://stackoverflow.com/a/70961343 I will see if I can get that incorporated using the converter from above.
|
Ah I spoke too soon, this library is not official and I am hesitant to add a new dependency at this stage if it's not directly from Microsoft. However, if there are others that ask for this going forward (and some time passes) I will consider this. I feel having an extension as the above for .NET6+ scenarios is the best path for now. I am open to further dialogue around this. 👍 |
Thank you very much @Mike-E-angelo . If anyone needs, I created a short extension class to use with your solution easily:
Then just add to the serializer:
Thanks again! |
Sure thing @moshekar happy to get a win here :) |
Sounds like we resolved this issue as best we could considering the circumstances. As we cannot viably add |
Hi,
First, thank you for this amazing project.
I found that the
DateOnly
type do not serialize and produces an empy tag:Produces:
<?xml version="1.0" encoding="utf-8"?><TestClass xmlns="clr-namespace:..."><DateOfBirth /></TestClass>
How to fix this?
Thanks.
The text was updated successfully, but these errors were encountered: