Copilot commented on code in PR #11822:
URL: https://github.com/apache/apisix/pull/11822#discussion_r2275729910
##########
apisix/schema_def.lua:
##########
@@ -104,7 +104,7 @@ local labels_def = {
local rule_name_def = {
type = "string",
- maxLength = 100,
+ maxLength = 256,
Review Comment:
Consider defining this as a named constant (e.g., `MAX_RULE_NAME_LENGTH =
256`) to improve maintainability and make it easier to adjust in the future.
This would also make the relationship between the schema definition and test
values more explicit.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]