apisix-dashboard
apisix-dashboard copied to clipboard
bug: when create a route with kafka-logger, the plugin's option is missing field.
- Why do you submit this issue?
- [ ] Question or discussion
- [x] Bug
- [ ] Requirements
- [ ] Feature or performance improvement
- [ ] Other
when create a route with kafka-logge, the plugin's option is missing field.

Duplicate as most of other plugins, need some time to build the schema that could work with react-jsonschema-form.
broker_list in fe plugin component needs to be transformed schema, from
{
"properties": {
...
"broker_list": {
"type": "object"
}
}
}
to
{
"properties": {
...
"broker_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"host": {
"type": "string"
},
"port": {
"type": "integer"
}
},
"required": ["host", "port"],
"minItems": 1
}
}
}