brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
606 stars 168 forks source link

"pretty" enum display strings aren't working in bootstrap #127

Closed rlamorea closed 6 years ago

rlamorea commented 6 years ago

Although it looks like issue #85 provided the means to add a "display" map for enums, it doesn't appear that this works when generating the selection list through json-forms-bootstrap.

(You can see this by adding a "display" spec in the json-forms demo input).

For what it is worth, though, "display" is also non-standard json-schema. It seems that the preferred method to add descriptors to enumerated values is via "oneOf" - as described in this issue: https://github.com/json-schema-org/json-schema-spec/issues/520