-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
How to contribute genericSeq implementation? #45
Comments
Hello, Yes the tests are hosted on Thoth.Json repository to make sure that both libraries support the same API. If you need to test locally the test from your fork, you need to publish the forked version of Thoth.Json on github and then update Thoth.Json.Net/paket.dependencies Lines 11 to 17 in 6c375e1
Also, the generic seq has already been implemented in an unreleased version of Thoth.Json. That specific version of Thoth.Json will never be released because it was too ambitious and I didn't track correctly all the changes I made in it so I am afraid to break people JSON. I think, it can be a good idea to have a look at it because I think it follows the same API as the current implementation. Using reflection API is always hard to read especially with the need to use boxed/unboxed type to circle around F# limitation. Here are the places where to find the unreleased implementation: Note: The unreleased implementation use heavily compiler directive because the goal was to unify Thoth.Json and Thoth.Json.Net so you need to pick what code you want to pick depending on the target runtime. |
I tried your solution but it seems to be hurting the same wall I had in the past:
|
Hello!
I think I have figured out how to implement an Auto decoder for
seq<'t>
:However, I'm not sure how to contribute it.
Should I add tests to this repo first?
The text was updated successfully, but these errors were encountered: