koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
546 stars 155 forks source link

nullable 1 item enum are made const and should not #347

Open AntoineMontane opened 2 years ago

AntoineMontane commented 2 years ago

Hi !

Nullable 1 item enum should be able to be either the 1 item or nothing.

Due to https://github.com/koumoul-dev/vuetify-jsonschema-form/blob/7b125496ac05bf8201a87c233085997f97216247/lib/utils/schema.js#L55 nullable single item enum are made const and not visible at all.

Should add one more condition on ! nullable.

Antoine