3 ms·
I've been working on something similar, also struggeling with `io-ts`. However, I want the schema to be serializable (possibly compatible with json schema) so t
by Gehinnn 7y ago
I've been working on something similar, also struggeling with `io-ts`. However, I want the schema to be serializable (possibly compatible with json schema) so that a rich ecosystem of tools can be build upon it.
There is still a long way to go though.
My library `@hediet/cli` [1] uses this technology to offer a browser based UI for CLI applications [2].
In the long term, I want to replace my use of `io-ts` with this technology in my JSON RPC implementation [3], so that I can implement something similar to Swagger for JSON RPC.
I always felt the possibilities of JSON Schema are not really explored, which I think might be due to bad design of JSON Schema (it's really hard to consider all these denormalizations, it's like HTML 20 years ago).
I'll have a more detailed look at your library once I find time!
[1] https://github.com/hediet/ts-cli/blob/master/cli/README.md https://github.com/hediet/ts-cli/blob/master/cli/README.md
[2] https://github.com/hediet/ts-cli/blob/master/cli/docs/gui.png https://github.com/hediet/ts-cli/blob/master/cli/docs/gui.pn...
[3] https://github.com/hediet/typed-json-rpc https://github.com/hediet/typed-json-rpc