void () { @Language("JSON") String schema = """ { "properties": { "foo": { "allOf": [ { "type": "object" }, { "oneOf": [ { "type": "object", "properties": { "provider": { "enum": ["script"] }, "foo21": {} } }, { "type": "object", "properties": { "provider": { "enum": ["npm"] }, "foo11": {} } } ] } ] } } }"""; doTest(schema, """ { "foo": { "provider": "npm" } }"""); doTest(schema, """ { "foo": { "provider": "script" } }"""); doTest(schema, """ { "foo": { "provider": <warning>"etwasanderes"</warning> } }"""); }