Open Mario54 opened 7 years ago
@Mario54 Is there any mashape-supported plugins with an array type property? I couldn't find any.
I don't think so. This is a custom plugin. But it is supported by Kong: https://getkong.org/docs/0.10.x/plugin-development/plugin-configuration/.
Given that plugins developed by Mashape don't use this, I understand that it wouldn't be a priority, but I thought it would worth reporting the bug.
To be more precise, Kong-dashboard does support config properties of the "array" type. But only array of strings. Not array of objects.
I could take a look at how to work on supporting array of objects, but without a plugin with such a configuration type, it's hard to me to work on that and test it.
If you could provide a docker image of a Kong instance with your custom plugin installed, that would be great.
GET apis/<api-id>/plugins/<plugin-id>
Notice the config
allowed_access_domains
which is an array. In Kong dashboard, it shows up as[object Object]
in the field. More importantly, if I save the plugin, "[object Object]" is sent to the Kong API and saved as so.GET apis/<api-id>/plugins/<plugin-id>
(after saving)