wolf4ood / gremlin-rs

Gremlin Rust
Apache License 2.0
108 stars 30 forks source link

Fix direct embedding of json values within decoded data for `GraphSON::V3`. #215

Open voxelbee opened 3 months ago

voxelbee commented 3 months ago

I have added a test that shows the existing problem when a GraphSON object gets decoded it could have direct serde_json::Value objects within it. This will cause a decoding failure as the existing code only checks for Bool and String directly. I have added checks for Null, Number and Array and the decoding of them into their contained real values.