gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

positional array item definitions #628

Open hauntingEcho opened 6 years ago

hauntingEcho commented 6 years ago

I'm currently attempting to allow form creators to frame sections of fields, in a way that is not semantically meaningful to the data itself. In order to do so cleanly, it would be very helpful to be able to use something like the array style of item definition from JSON Schema draft 3 or the most current specification. This will allow, for example, an "address" field to be addressed using JSONPath as "$[*].address" instead of needing to know if it's in "$.shipping_info.address" or "$.contact_info.address"