json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

how to remove empty option from drop down. #926

Closed sandeepbhatt closed 6 years ago

sandeepbhatt commented 7 years ago

Hi , I want to remove empty option from json:from which is created through below json

{ "type": "object", "required": ["editors_used"], "properties": { "editors_used": { "type": "array", "title": "What editors do you use?", "minItems": 1, "items": { "type": "string", "enum": [ "vim", "emacs", "sublime", "kate" ],"default":"vim" }, "additionalItems": false } } }

Anthropic commented 7 years ago

What do you mean? You require 1 item in order to be valid, what empty option are you talking about?

Anthropic commented 6 years ago

I need a gist of what you are doing to be able to help, this doesn't provide enough information for me to support your issue.

The example demo has a "Save to Gist" button you can use to create one from a schema and form definition.