Request-transformer plugin db-less mode

Hello,
We are using kong:2.0.2-alpine version in DB-less mode.
Trying to use request-transformer plugin and following docs to enable it on a route:

Following use case shows that documented solution is not working.
Is it the product bug, documentation problem, or something else?

simple example to reproduce:
services:

init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:431: error parsing declarative config file /etc/kong/declarative.yaml:
kong_1 | in ‘services’:
kong_1 | - in entry 1 of ‘services’:
kong_1 | in ‘routes’:
kong_1 | - in entry 1 of ‘routes’:
kong_1 | in ‘plugins’:
kong_1 | - in entry 1 of ‘plugins’:
kong_1 | in ‘config’:
kong_1 | in ‘add.querystring’: unknown field

seems like a misunderstanding the docs.
the plugin works with:
config:
add:
querystring:
- new-param:some_value

I can confirm this. The document is wrong with db-less mode config.

It should be something like this

plugins:
- name: request-transformer
  config:
    add:
      headers:
      - key:value

© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ