cosmos / ibc-proto-rs

Rust Protobuf definitions and gRPC clients for interacting with Cosmos SDK, IBC and Interchain Security
Apache License 2.0
45 stars 26 forks source link

Implement `JsonSchema` for `Any` #156

Closed Farhad-Shabani closed 11 months ago

Farhad-Shabani commented 11 months ago

Background

To make domain message types in ibc-rs usable within the Sovereign SDK module interface, it was necessary to implement the JsonSchema for these types. Within this context, some client message types (e.g. here) involve fields of the Any for which we have already defined a helper type called AnySchema. Though, ideally, it would be efficient to obtain the JsonSchema derivation directly for the Any type in ibc-proto-rs.