您需要在文档中查找数字的关键字 https://ajv.js.org/json-schema.html#keywords-for-numbers
{type: "number", maximum: 5}
Run Code Online (Sandbox Code Playgroud)
或者
{type: "number", exclusiveMinimum: 5}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3431 次 |
| 最近记录: |