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
538 stars 154 forks source link

Warning with "default" value #438

Open boutils opened 3 weeks ago

boutils commented 3 weeks ago

Hello, I am trying to use a simple selector.

This is the schema I am using:

{
  "type": "object",
  "properties": {
    "indicator": {
      "type": "string",
      "default": "aa",
      "enum": ["aa", "bb"]
    }
  }
}

Note that it seems to work correctly, but I can see in my browser console the following warning (several times in a row): Screenshot 2024-06-07 at 07 42 40

Is this schema wrong? Or is it a bug?

Thanks in advance for your help.