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

Selects of sub-schemas as autocomplete components #361

Closed watterm closed 1 month ago

watterm commented 2 years ago

We're trying to use conditional sub-schemas with the autocomplete display, but it stays a VSelect component. Is there something wrong with the schema below or is this currently not possible?

We also tried with >20 entries, for which I attached a file, but didn't change anything.

{
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "select": {
            "type": "object",
            "title": "Selection Test",
            "x-display": "autocomplete",
            "oneOf": [
                {
                    "type": "object",
                    "title": "V1",
                    "properties": {
                        "key": {
                            "const": "v1",
                        },
                        "additionalInfo1": {
                            "type": "string",
                            "title": "additionalInfo1"
                        }
                    },
                },
            ],
        }
    }
}

schema.txt