Closed thomaseizinger closed 1 year ago
Can you add one more test case? sweat_smile
A struct with a
Vec<String>
field should have the field deserialized tovec!["", "test"]
for the inputfield=&field=test
.
Done!
I added one more that I think makes sense!
Thanks a lot for finding such a good and clean solution and covering it with lots of tests! :)
I must admit I don't 100% understand how it all works, but the fact that only the two
deserialize_option
methods were changed makes me very confident that there are no weird accidental behavior changes from this.
I think apart from dtolnay himself, nobody really 100% understands how serde works.
This has been released in v0.1.1 :)
This series of patches handles optional values in various situations properly.
It is an updated version of https://github.com/jplatte/serde_html_form/pull/4.