-
Notifications
You must be signed in to change notification settings - Fork 71
Schema generated for default empty arrays is not valid #108
Copy link
Copy link
Closed as not planned
Description
In the case you pass the type [array] the schema has the default value "[]" that is a String not an Array
## @section tittle
## @param features [array] list of features to enable
features: []{
"title": "Chart Values",
"type": "object",
"properties": {
"features": {
"type": "array",
"description": "list of features to enable",
"default": "[]",
"items": {
"type": "string"
}
}
}
}If you do not set the type, the default value in the schema is correct, but items does not have type
## @section tittle
## @param features
features: []{
"title": "Chart Values",
"type": "object",
"properties": {
"features": {
"type": "array",
"description": "",
"default": [],
"items": {}
}
}
}Reactions are currently unavailable