Skip to content

json-tools/json-form

 
 

Repository files navigation

This is work in progress

json-form

Renders form based on JSON Schema

image

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

Setup for development

  1. Install dependencies
yarn
  1. Run local dev server to facilitate hot module reloading
yarn dev

Project structure

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.

About

Lightweight form generator, using JSON Schema.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •