Describe the bug
rules with the schema {const: null} don't validate successfully when the respective property doesn't exist
To Reproduce
Steps to reproduce the behavior:
- check out this repo on the specific branch: https://github.com/Felix-Puetz/jsonforms-vue-example/tree/bug/const-null-returns-true-on-empty-object
- run
npm install in it
- run
npm run serve in it
- launch the given url in your browser
Example schema:
{
type: "object",
properties: {
name: { type: "string" },
mail: { type: "string" },
},
required: ["name", "mail"],
};
Example uischema:
{
type: "VerticalLayout",
elements: [
{
scope: "#/properties/name",
type: "Control",
},
{
scope: "#/properties/mail",
type: "Control",
rule: {
condition: {
scope: "#/properties/name",
schema: {
const: null
},
},
effect: "DISABLE",
},
},
]
}
Expected behavior
mail field should be disabled when name is not present in data
Screenshots

Browser (please complete the following information):
- Browser all (latest release)
Used Setup (please complete the following information):
All info present in my repository
Additional context
spoke to @sdirix and he confirmed
Describe the bug
rules with the schema
{const: null}don't validate successfully when the respective property doesn't existTo Reproduce
Steps to reproduce the behavior:
npm installin itnpm run servein itExample schema:
Example uischema:
Expected behavior
mail field should be disabled when
nameis not present in dataScreenshots
Browser (please complete the following information):
Used Setup (please complete the following information):
All info present in my repository
Additional context
spoke to @sdirix and he confirmed