Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持了请求校验字符串长度的规则 #498

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

aninZz
Copy link
Contributor

@aninZz aninZz commented Jan 12, 2023

{"Moment":{"MUST": "userId","VERIFY":{"userId&{}":">0,<=10000","content{L}":">1,<=10"}}}

规则依然是定义在VERIFY里,key通过content{L} 大括号中间增加了一个L标识为校验length,value依然是通过> >= < <= 配置
"content{L}":">1,<=10"代表 content的长度大于1并且小于等于10

@TommyLemon TommyLemon merged commit ced3fb9 into Tencent:master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants