Skip to content

multi-auth-Plugin schema validation incorrect #3289

@itbane

Description

@itbane

Issue description

When adding a multi-auth-Plugin (tested with consumer_group), the schema validation fails with an error:

failed to check the configuration of plugin multi-auth err: property "auth_plugins" validation failed: expect array to have at least 2 items

The exact same config via curl works (copy & pasted the docs example).

Expected behavior

The multi-auth-Plugin and consumer_group are added correctly.

How to Reproduce

  1. Create a new consumer_group object
  2. add multi-auth plugin
  3. Copy & paste the plugin config from the docs (https://apisix.apache.org/docs/apisix/plugins/multi-auth/)
  4. Add the plugin

Screenshots

Screenshot with settings:
Image

Environment

  • apisix version (cmd: apisix version): 3.14.1
  • OS (cmd: uname -a): docker-based
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have: bundled with apisix
  • Browser version, if have:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions