I expect something working smoothly but it is not the case. If I select a value and remove the value (by clicking on the clear icon), I got the following error (must be a string):
Is it really expected? Note that this field is not marked as required in the schema.
As a workaround, I have to use the following spec (type accepts "null" and I added the null value in enum ):
Helo,
I am trying to make a simple selector "clearable". So I tried to add to my schema the following line:
"layout": { "props": { "clearable": true } }
.So my spec is something like:
I expect something working smoothly but it is not the case. If I select a value and remove the value (by clicking on the clear icon), I got the following error (![Screenshot 2024-06-07 at 07 55 49](https://github.com/koumoul-dev/vuetify-jsonschema-form/assets/1707229/bb328a87-d0a1-45df-ad38-ab62b03a7b0c)
must be a string
):Is it really expected? Note that this field is not marked as required in the schema.
As a workaround, I have to use the following spec (
type
accepts"null"
and I added thenull
value inenum
):Even if this workaround is working, I end up with a selector which contains a![Screenshot 2024-06-07 at 08 02 57](https://github.com/koumoul-dev/vuetify-jsonschema-form/assets/1707229/db57f9d4-d212-415b-9887-07c7b73b45a7)
null
entry and so is not slick.Is it possible to simply support this simple schema without errors?
Otherwise, someone has maybe a better workaround.
Thank you for your help!