You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if schema.required and #schema.required == 0 then
-- return false if the input data is not empty
ctx:stmt(sformat('if %s ~= 1 then', datakind))
ctx:stmt( ' return false, "the input data should be an empty table"')
ctx:stmt( 'end')
end
I found this code in jsonschema.lua
if this, when I have a schema
and a json object
such will return an err: the input data should be an empty table
The text was updated successfully, but these errors were encountered: