-
Notifications
You must be signed in to change notification settings - Fork 9
Description
To be used together with #319
Some options include:
- own custom implementation
- Alpaca forms
- json-schema-forms
Some comments after initial testing:
The existing packages that I've tested aren't yet that enticing. I'm trying to focus on options that are as lean as possible, not necessarily linked to a specific javascript framework, and fully client side. Many jsonschema implementations provided here: https://json-schema.org/implementations.html.
I've tested https://github.com/hblanko/json-schema-forms and http://www.alpacajs.org/, both seem to not be maintained actively.
Alpaca loads bootstrap, jquery, handlebars and alpaca from a CDN. And then a simple JS script is needed to instantiate the form from a schema object. Example code shown here: http://www.alpacajs.org/tutorial.html
Something to take into account is referenced schemas ($ref fields) and how they are resolved. These aren't dealt with seamlessly with the tested packages. In both cases I had to update data or reference urls or data locations in order for it to work correctly. And if there are referenced schemas, there could also be additional files to supply together with the top-level schema.
Other useful tools: