CardanoSolutions / ogmios

❇️ A WebSocket JSON/RPC bridge for Cardano
https://ogmios.dev
Mozilla Public License 2.0
304 stars 90 forks source link

Support Compact Serialization in TS client #51

Closed rhyslbw closed 2 years ago

rhyslbw commented 3 years ago

https://ogmios.dev/mini-protocols/local-chain-sync/#compact-serialization

KtorZ commented 3 years ago

Note: I haven't found a good way to document / specify the absent fields in the JSON-schema. I didn't want to resort to marking them as optional, and I don't really want to go down the path of maintaining two spec files for each mode. Possibly, the "compact" one could be generated from the first one with some mask overlay to limit the cost of it.

Or maybe there's some fancy operator in the latest JSON-schema spec which could help (currently using draft 7 but there has been an actual first version published recently).

While am I saying all that? Because I think it'll end up causing issue with the TypeScript client's types.

KtorZ commented 2 years ago

Closing until further re-assessment.