Re:AsyncAPI – OpenAPI-like specification for event-driven ar...
by verdverm on Monday March 30, 2020 @03:53PM
(#22731644)
cuelang is great for this, I highly recommend spending some time. It's not the easiest to on board yet, jump in slack though and we'll be happy to help.
The project we are building on top of cuelang may be of interest: https://github.com/hofstadter-io/hof
I'm working on what can be pretty well reduced to an AST builder. I have nodes of certain types which come with a set of relevant properties as well as the set of types that you're allowed to nest. I'm looking for a markup language to express these schemas so that I can generate the UI components (given parent node X, generate a widget with a form that can be used to submit legal children) and perform validation (given AST tree coming from the client, validate it server-side before persisting it)
Currently using JSON schema but it's very verbose. Any ideas?