Support booleans and numbers for query values #141
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
qol
Improvements that make usage smoother, without introducing new functionality
It'd be nice if non-string values in a
query
were automatically stringified:Right now, this gives an error because
true
is a boolean and it expects a string. It'd be nice if booleans, ints and floats all deserialized into their stringified version.I think the best way to do this would be to implement
Deserialize
manually forTemplate
. I would put the implementation in cereal.rs to keep all the serde stuff in one place. This has the added effect of automatically supporting bools/ints/floats for any other templated value (body, profile value, etc.) which is probably good but needs a bit more critical thought to be sure.The text was updated successfully, but these errors were encountered: