by ComputerGuru · 2y ago · 0 comments
I had a thought in my reply [0] on this that actually might let him eat his cake and have it too in this regard. I think you can heavily abuse serde::de::Visitor to schema validate without actually parsing (or with less parsing, at any rate). I went into more detail in my comment but I wanted to ping you (@duped).
Or, use sonic_rs::LazyValue if you want to parse json on demand as you traverse it.