apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

bug: when create a route with kafka-logger, the plugin's option is missing field.

Open idbeta opened this issue 6 years ago • 2 comments

  • 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. image

idbeta avatar Nov 12 '20 04:11 idbeta

Duplicate as most of other plugins, need some time to build the schema that could work with react-jsonschema-form.

juzhiyuan avatar Nov 12 '20 05:11 juzhiyuan

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
        }
    }
}

liuxiran avatar Nov 17 '20 09:11 liuxiran