-
Notifications
You must be signed in to change notification settings - Fork 22
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
NodaTimeDefaultJsonConverter doesn't seem to work with Interval #135
Comments
Will look into this over the weekend. It looks like it's expected to work, given that an interval converter is specified in https://github.com/nodatime/nodatime.serialization/blob/main/src/NodaTime.Serialization.SystemTextJson/NodaTimeDefaultJsonConverterFactory.cs |
Okay, I think I've worked out what's going on - ish. It does go into the NodaIntervalConverter, but then when we call Basically I'll need to add a field to NodaIntervalConverter and NodaDateIntervalConverter so they each have a converter to use when reading/writing. It's not immediately clear to me what should happen if the caller has provided a |
…erval and DateInterval Fixes nodatime#135
Hi, I can't seem to get
NodaTimeDefaultJsonConverter
to work withInterval
.I added kaydensigh@ab0aef9 to
NodaTimeDefaultJsonConverterAttributeTest.RoundTrip
and the test fails with:Is this expected?
The text was updated successfully, but these errors were encountered: