Multiple checkbox enum with references
alb3ric opened this issue · comments
Hello,
I'm trying to display a multiple checkbox choice for an enum. But if my enum is a reference it is not rendering it as a multiple checkbox. Here is my example :
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Paramètres fonctionnels",
"type": "object",
"additionalProperties": false,
"properties": {
"With Ref" : {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/Colors"
}
},
"Without Ref" : {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["Red","Blue","Yellow" ]
}
}
},
"definitions": {
"Colors": {
"type": "string",
"description": "",
"x-enumNames": [
"Red",
"Blue",
"Yellow"
],
"enum": [
"Red",
"Blue",
"Yellow"
]
}
}
}
You can see it here :