Hi,
I'm trying to build a form using json-schama form component, for property using oneOf
in the schema, it auto-generates a dropdown for all the options, it's good but the title of each option is Option 1
, Option 2
, is there any way to customize it?
I tried description
or $id
for the object elements inside oneOf
but it didn't work.
{
"properties": {
"hello": {
"description": "hello world",
"oneOf": [
{"description": "Type1", "$id": "type1", "type": "number"},
{"description": "Type2", "$name": "type2", "type": "string", "enum": ["abc"]}
]
}
}
}
Thanks in advance.