json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

maxLength i18n zh_CN msg can not understand

Open fei33423 opened this issue 2 years ago • 1 comments

https://github.com/networknt/json-schema-validator/blob/3ff32ee3fbb1c6287c6dfeda14a8bdeb965ef6c3/src/main/resources/jsv-messages.properties#L24C1-L24C49

maxLength = {0}: may only be {1} characters long

i think should use "must " similar as minLength. should be

maxLength = {0}: must be at most {1} characters long
minLength = {0}: must be at least {1} characters long

also other i18n should be fix.

fei33423 avatar Jul 12 '23 08:07 fei33423

@fei33423 Are you willing to submit a pull request?

fdutton avatar Jul 29 '23 21:07 fdutton

The maxLength messages were changed to the following

maxLength = {0}: must be at most {1} characters long
minLength = {0}: must be at least {1} characters long
maxLength = {0}: 长度不得超过 {1} 个字符
maxLength = {0}: 长度必须至少为 {1} 个字符

justin-tay avatar Jun 03 '24 08:06 justin-tay

@justin-tay Thanks for the confirmation. This issue is closed.

stevehu avatar Jun 03 '24 15:06 stevehu