gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
26 stars 7 forks source link

Rust `Schema` type needs ToSchema #845

Open James-Mart opened 1 week ago

James-Mart commented 1 week ago

In order to wrap Events::setSchema (needed to call it inline from Rust services), the Schema type needs to implement ToSchema.

I took a quick look at this and it seemed to get complicated quickly, as it implies that IndexMap and AnyType also both need to implement ToSchema.

swatanabe commented 2 days ago

It won't actually be called, so unimplemented!() will work for now.