Just started exploring the wit format.
I see that the wit format prohibits recursion (https://github.com/bytecodealliance/wit-bindgen/blob/main/WIT.md#name-resolution). Given this limitation, is it possible to define types required to define a JSON structure (say as an equivalent of https://docs.serde.rs/serde_json/enum.Value.html)?
Not currently. Wit is aiming to enable developers to describe specific APIs, rather than to accept arbitrary dynamically-typed values that downstream users subsequently recognize as specific APIs.
Thanks for the clarification.
That link doesn't work for me
Last updated: Dec 23 2024 at 13:07 UTC