Skip to content

bug: there is a bug in the schema check of nodes when admin-api saves the upstream configuration. #10455

Description

@yujiapingyu

Current Behavior

image
nodes_schema中的port不是必须的呀,辛苦修复一下,会导致通过admin api put上游时,如果node是array形式,无法通过校验!

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

  1. 运行APISIX;
  2. 给admin api发送请求:
    image

Environment

  • APISIX version (run apisix version):3.4.1
  • Operating system (run uname -a):23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 arm64
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.5.0
  • APISIX Dashboard version, if relevant:3.0.0
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions