Directory

← Back

eco-json-schema-form

Polymer's json schema form builder

Author

Contributors

Rating

[ This description is mirrored from README.md at github.com/DimShadoWWW/eco-json-schema-form on 2019-05-22 ]

eco-json-schema-form

Polymer 1.0 JSON Schema form builder

Description

This repository provides elements that take in a JSON schema and generates a DOM tree of inputs linked to the object described by the schema.

See the component page for more information.

TODO:

  • Being able to set an initial value (eg, providing an instance of the schema for modification) - currently only supports new instances
  • Create an element that provides a single entry point, so there is no need to choose between <eco-json-schema-object> and <eco-json-schema-array>
  • Specifying which fields to show

Supported

wizard:

Including eco-json-schema-wizard.html the first level objects will be treated as wizard pages, with a Next and Previous buttons

type: number

  • multipleOf
  • maximum
  • exclusiveMaximum
  • minimum
  • exclusiveMinimum

type: string

  • maxLength
  • minLength
  • pattern

type: array

  • items - object
  • items - array
  • additionalItems - boolean
  • additionalItems - object
  • maxItems
  • minItems
  • uniqueItems

type: object

  • maxProperties
  • minProperties
  • required
  • additionalProperties - boolean
  • additionalProperties - object
  • properties
  • patternProperties
  • dependencies, value is an object
  • dependencies, value is an array

misc

  • enum - number / integer
  • enum - string
  • enum - array
  • enum - object
  • allOf
  • anyOf
  • oneOf
  • not
  • definitions
  • title
  • description
  • default
  • format - date-time
  • format - email
  • format - hostname
  • format - ipv4
  • format - ipv6
  • format - uri

Links

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • iron-flex-layout#PolymerElements/iron-flex-layout#^1.3.1
  • iron-icons#PolymerElements/iron-icons#^1.1.3
  • paper-checkbox#PolymerElements/paper-checkbox#^1.4.1
  • paper-dropdown-menu#PolymerElements/paper-dropdown-menu#^1.4.1
  • paper-icon-button#PolymerElements/paper-icon-button#^1.1.3
  • paper-input#PolymerElements/paper-input#^1.1.20
  • paper-item#PolymerElements/paper-item#^1.2.1
  • paper-menu#PolymerElements/paper-menu#^1.2.2
  • paper-input-image#^1.1.1
  • app-localize-behavior#^0.10.0
  • polymer#Polymer/polymer#^1.7.0
  • iron-pages#PolymerElements/iron-pages#^1.0.8
  • iron-validator-behavior#PolymerElements/iron-validator-behavior#^1.0.1
  • geo-location#^1.0.6
  • google-map#GoogleWebComponents/google-map#^1.1.13
Released
2016-10-29
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 1.0+
Browser
Browser Independent
Online