Add path parameter to biome_deserialize::json::deserialize_from_json_str
#1250
Replies: 4 comments 4 replies
-
Hey @NicholasLYang , looking at the code, I think it’s a bug. Feel free to submit a PR, |
Beta Was this translation helpful? Give feedback.
-
Hi @NicholasLYang, We could definitively add a Note that name has been added to name the deserialised value. This allows us to improve our diagnostics if an error occurs. All of our built-in deserializers pass name through deserializers and visitors, except for collections, in particular EDIT: could you give more context about your use-case? |
Beta Was this translation helpful? Give feedback.
-
I added a |
Beta Was this translation helpful? Give feedback.
-
@NicholasLYang |
Beta Was this translation helpful? Give feedback.
-
Hey, we're using
biome_deserialize
to process ourturbo.json
files and preserve span info. However, we also need to keep the path along with the span, since there can be multiple turbo.json files. I noticed that there is aname
field that is passed through the deserializer and therefore any visitor. Currently it's set to an empty string. Could we add a parameter todeserialize_from_json_str
to allow it to be customized? Or another function with that field set?Happy to submit a PR for this.
Thanks,
Nicholas
Beta Was this translation helpful? Give feedback.
All reactions