apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: Modify labels length(修改labels长度)

Open wzhlinux opened this issue 1 year ago • 0 comments

Description

我添加 labels 标签时遇到了报错,信息如下: {"error_msg":"invalid configuration: property "labels" validation failed: failed to validate appkey (matching ".*"): string too long, expected at most 64, got 75"} 我发现通过apisix/apisix/schema_def.lua可以修改长度 local label_value_def = { description = "value of label", type = "string", pattern = [[^\S+$]], maxLength = 128, minLength = 1 }

我想知道如果修改为128是否会有出现异常

Environment

  • APISIX version (run apisix version): 3.2.2
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

wzhlinux avatar Aug 28 '24 09:08 wzhlinux