spacewander commented on issue #3380:
URL: https://github.com/apache/apisix/issues/3380#issuecomment-764428267


   Hey guys. Something you don't make it correct from the beginning:
   
https://github.com/api7/jsonschema/blob/b9375642eb2da0f20486a38025e511a12687b5d4/lib/jsonschema.lua#L365
   The Lua implementation doesn't use `#` to get the length of data. Instead, 
it counts the string length instead of the string bytes.
   
   > If we need to limit the length of use input characters, we'd better limit 
the string length instead of string byte length
   
   Yes. We have already done this.
   
   Maybe there is something else causes the problem.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to