This is work in progress
Renders form based on JSON Schema
Published in gh-pages: https://1602.github.io/json-form/
Development progress:
- text editing
- flat object editing
- validation (inline errors only, so far)
- material design styles
- demo for two use-cases: text editing, flat object editing
- editing of number and boolean
- customizable widgets
- password field
- mark required fields with *
Next steps will be some of those (not necessarily in this order):
- radiogroup widget for enum
- optional field indication (configurable alternative to required)
- dealing with
undefined
(erase property) - multiline editing
- editing as json
- form layout customisation
- editing array of items
- editing dictionary (object with additionalItems = true)
- display of object-level errors
- expandable mode for large/nested forms
- Install dependencies
yarn
- Run local dev server to facilitate hot module reloading
yarn dev
All sources live in ./src
, package code that will be published to a registry is in ./src/Json/Form.elm
, legacy code (with lots of feature covered in a slightly odd way lives here: ./src/LegacyFormComponent.elm
)
Contributors welcome, submit an issue to open a discussion.