bughelp wanted
仓库指标
- 星标
- (13,175 个星标)
- PR 合并指标
- (平均合并 3天 17小时) (30 天内合并 32 个 PR)
描述
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
Given the following schema:
{
"type": "number",
"if": {
"const": 13
},
"then": false
}
Value 13 is a valid value.
Expected Behavior
In JSON Schema, false equals {"not": {}} link to spec
Thus, the schema above with value 13 should be invalid.
Steps To Reproduce
- Playground example
- Input value 13
- Click Submit
Expected: validation fails
Actual: Form submitted
If you click "Raw validate", you can see the AJV validation error.
Environment
Playground
Anything else?
Please note that if false is replaced with {"not": {}}, everything works as expected: playground