4 ms·
You made my point, in that it is a slightly more involved process over say Python. I didn't say that it's a "problem" or "impossible", just that it is making yo
by PartiallyTyped 3y ago
You made my point, in that it is a slightly more involved process over say Python. I didn't say that it's a "problem" or "impossible", just that it is making your life slightly harder.
Something that I am interested in doing is generating a json schema at runtime, and then parsing some incoming json to see if that matches the target schema. Do you know of any crate already providing this kind of functionality?
- Permik 3y agoWould something like Valico fit the bill? https://crates.io/crates/valico https://crates.io/crates/valico When looking for crates lib.rs is an excellent search utility for searching crates that you would need. For example: https://lib.rs/search?q=json https://lib.rs/search?q=json
- PartiallyTyped 3y agoTIL lib.rs exists :D I think it fits the bill. I was doing this on python side and aimed to use Pydantic and this looks close enough.