membphis commented on code in PR #11772:
URL: https://github.com/apache/apisix/pull/11772#discussion_r1855951754


##########
apisix/plugins/jwt-auth.lua:
##########
@@ -48,7 +48,12 @@ local schema = {
         hide_credentials = {
             type = "boolean",
             default = false
-        }
+        },
+        key_claim_name = {
+            type = "string",
+            default = "key",
+            minLength = "1",

Review Comment:
   this wrong, we should use `minLength = 1`, it should be a number
   
   https://json-schema.org/understanding-json-schema/reference/string
   
   <img width="876" alt="image" 
src="https://github.com/user-attachments/assets/e4c7a0d9-b837-4e05-a350-6ccd0dc894c4";>
   



-- 
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]

Reply via email to