In jsonschema we have not keyword, but how can I use it in Lua?
For example, We have jsonschema:
"dependencies": {
"field_2": { "not": { "required": ["field_3"] } },
"field_3": { "not": { "required": ["field_2"] } }
}
How do we represent it in Lua, I try like below but it doesn't work:
dependencies = {
field_2 = {
["not"] = {
required = {
"field_3"
}
}
},
field_3 = {
["not"] = {
required = {
"field_2"
}
}
},
}
Can someone help me?
In jsonschema we have
notkeyword, but how can I use it in Lua?For example, We have jsonschema:
How do we represent it in Lua, I try like below but it doesn't work:
Can someone help me?