jsonschema.generate_validator({
type = "object",
properties = {
["$id"] = { type = "string" }
}
})
Now (0.9.5) fails with:
.../lib/openresty/luajit/share/lua/5.1/jsonschema/store.lua:199: attempt to concatenate field '$id' (a table value)
stack traceback:
.../lib/openresty/luajit/share/lua/5.1/jsonschema/store.lua:199: in function 'walk'
.../lib/openresty/luajit/share/lua/5.1/jsonschema/store.lua:235: in function 'walk'
.../lib/openresty/luajit/share/lua/5.1/jsonschema/store.lua:240: in function 'new'
/usr/lib/openresty/luajit/share/lua/5.1/jsonschema.lua:323: in function 'codectx'
/usr/lib/openresty/luajit/share/lua/5.1/jsonschema.lua:1139: in function 'generate_main_validator_ctx'
/usr/lib/openresty/luajit/share/lua/5.1/jsonschema.lua:1163: in function 'generate_validator'
Example, worked in 0.8:
Now (0.9.5) fails with:
I found this when checking validation against draft 7 metaschema from http://json-schema.org/draft-07/schema