Skip to content

Form builder libaries

adimascio edited this page May 6, 2019 · 2 revisions

Forms in VQB

We use forms to create / edit pipeline steps. Each step definition is associated to a JSONSchema and we want forms to be created automatically as much as possible (e.g. create a text input for a "small string", a dropdown for oneOf types). We also want constraints to be checked automatically. We also need the libary to be flexible enough to be customizable:

  • we need to be able to use a custom widget for a given field,
  • we need to be able to use custom styles.

Existing libraries

Some VueJS libraries exist that automatically transform a json schema definition into a form:

NOTE: https://github.com/vue-generators/vue-form-generator generates forms but doesn't rely on jsonschema.

Choices

Despite being a nice library, https://gitlab.com/formschema/native was left out because we found it too hard to customize its output.

External references

Mozilla maintains this react library that targets the same goal.

Clone this wiki locally