Open grillorafael opened 7 years ago
@grillorafael ,
Check out https://github.com/pantsel/konga#2-cant-addedit-some-plugin-properties.
You just need to press enter after every value you type. That's how konga deals with most of Kong's Api array params.
So I have an api parameter called eventTypes
and a value can be:
eventTypes=event1,event2
what I did there was to write eventTypes:event1,event2
then hit enter. When I open the UI again that is what it shows up:
I can select comma values but it doesn't show up again and after I edit and open again and it doesn't seem to be working (passing this parameter through) it show up like that and sends only the first chip.
I can double check tomorrow
Hmm, how about adding a chip for each eventType (eventTypes:event1 eventTypes:event2)?
That should work.
This would probably work but this will generate multiple parameters with the same name (Which is valid) but doesn't cover the comma separated ones
And btw, thanks for building Konga. Is working really well in the company here :)
@grillorafael , thanks. Glad to help. I'll look into this issue and see what i can do about it. Thanks for the contribution with pointing it out. Obviously there are edge case scenarios that might not work as expected and I really need issues like this to point them out 👍 .
Feel free to post if you stumble across anything else. I'll deal with them asap.
Currently on the UI we can't have comma in the parameter but within kong request it allows us to do that.
https://getkong.org/plugins/request-transformer/
At the moment the UI breaks as two parameters instead of one.