#What version of xstate is the JSON output of stately?

1 messages · Page 1 of 1 (latest)

wheat void
#

Since for the JSON option for stately's output I can't toggle between versions, which version of xstate is it given in?

opaque comet
#

Honestly it's currently just an abstract representation of the digraph in JSON that's somewhat compatible with XState. We are going to refine this soon, though.

What are your expectations? i.e. what is your use-case for wanting to use the JSON rather than JS/TS right now?

wheat void
# opaque comet Honestly it's currently just an abstract representation of the digraph in JSON t...

I'm doing a form app where domain experts can create a form using stately (information about the form fields etc is embedded in meta). Similar to swagger, my application has a text-field for passing in the json, and the app renders the form and interprets the machine.
Also I'm using clojurescript so JS/TS is not really helpful.

That's why it's also important for us to have an API that can expose that JSON

Also I noticed that the schema of the JSON changes constantly, and i have to rewrite my code