TBD54566975 / web5-rs

Apache License 2.0
6 stars 4 forks source link

Consider exposing a JSON Schema crate (or some set of functionality) #137

Open KendallWeihe opened 2 months ago

KendallWeihe commented 2 months ago

Spurred from here https://github.com/TBD54566975/tbdex-rs/issues/54 but also we have a broad array of use cases for JSON Schema's throughout our suite of SDKs. Consider designing functionality here in web5-rs which can be exposed to all the various use cases.

Also, an answer may be that we should use an existing open source lib, but we should consider how we could leverage such a solution for non-Rust language through our bindings initiative.

KendallWeihe commented 2 months ago

Adjacent to this, we have run into a number of cases where serializing JSON strings (& base64 encoding?) have had slight differences in terms of the canonical ordering of properties, so we should consider exposing some feature set which offers a consistent solution for this.