未验证 提交 b8b95730 编写于 作者: L linju-json 提交者: GitHub

Update schema.md

上级 1c1afdba
......@@ -101,8 +101,8 @@ properties里的字段列表,每个字段都有很多可以设置的属性,
|exclusiveMaximum|boolean|是否排除 maximum|
|minimum|number|如果bsonType为数字时,可接受的最小值|
|exclusiveMinimum|boolean|是否排除 minimum|
|minLength|number|最小长度|
|maxLength|number|最大长度|
|minLength|number|限制字符串或数组的最小长度|
|maxLength|number|限制字符串或数组的最大长度|
|trim|String|去除空白字符,支持 none|both|start|end,默认none,仅bsonType="string"时有效|
|format|'url'|'email'|数据格式,不符合格式的数据无法入库。目前只支持'url'和'email',未来会扩展其他格式|
|pattern|String|正则表达式,如设置为手机号的正则表达式后,不符合该正则表达式则校验失败,无法入库|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册