You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "wzhlinux (via GitHub)" <gi...@apache.org> on 2024/08/28 09:20:18 UTC
[I] help request: Modify labels length(修改labels长度) [apisix]
wzhlinux opened a new issue, #11536:
URL: https://github.com/apache/apisix/issues/11536
### 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`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org