[openstreetmap/openstreetmap-website] Increase may key and value max length (#2025)
Tom Hughes
notifications at github.com
Tue Sep 20 20:05:09 UTC 2022
I can't actually find any documentation of exactly what the rails validator polices but my guess is that it's the ruby string length which is probably codepoints rather than bytes or grapheme clusters.
So 255 UTF-16 values while wrong isn't totally terrible as characters outside the BMP will be relatively rare, and it will reject strings that the API would allow rather than allowing strings that the API will reject.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-1252848444
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/2025/1252848444 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220920/f05bc969/attachment.htm>
More information about the rails-dev
mailing list