ajv-validator / ajv-validator/ajv
Boolean "is true" validation?
未關閉
typescript
- 主要語言
- TypeScript
- 星號
- 14.8k
- 分支
- 1k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**What version of Ajv are you using? Does the issue happen if you use the latest version?**
"ajv": "^8.11.0",
**Your javascript code**
```javascript
{
type: "object",
properties: {
userDataProcessing: {
type: "boolean", const: true, nullable: false
}
},
required: ["userDataProcessing"]
}
```
body :
{
}
How to validate boolean isTrue. Why const is not working? Maybe it is possible but it is not documented.
貢獻指南
評估
這個 Issue 還沒有評估資料。