Defining a Form UI in JSON schema
user interface - Customisable GUI for generating JSON - Stack Overflow
Json schema form UI builder library
Help sharing JSON schema between UI & backend services
GraphQL like someone else said, OR make an NPM package you can use in both locations.
More on reddit.comVideos
Hey,
I‘m building an app that requires flexible form definitions via a JSON schema. The required fields are already covered, but the look and feel needs to be defined in an editorUI schema as well. For this I‘m evaluating the following options:
JSON Schema (www.json-schema.org) together with react-json-schema-form (https://github.com/rjsf-team/react-jsonschema-form)
JSON Forms (www.jsonforms.io)
a custom array structure resembling the
createElementattributes
It seems like the first two options are very flexible but the schema it self seems complex to comprehend. I‘m looking for a solution that is easily writable as well.
My requirements are:
mapping of my form inputs to components (e.g. text input, select, textarea etc.)
grouping of inputs in horizontal or vertical groups
conditional logic (showing or hiding groups/inputs depending on other fields)
Do you have any recommendations?
Thanks!
» npm install @ui-schema/ui-schema
The answer for this question is already answered here.
Link: GUI-based or Web-based JSON editor that works like property explorer
I created a tool specifically for this purpose called Mock Turtle. It lets you import a JSON Schema and will produce a GUI tree that conforms to the schema.
You can customise the fields in the tree with various data types (e.g. name, address, email, etc.). It will then generate random JSON data based on your tree.
You can also save a tree that you have created/customised and import it again later for reuse.
