$ luarocks install jsonschema-gitless
This library provides a jsonschema draft 4, draft 6, draft 7 validator for Lua/LuaJIT.
Given an JSON schema, it will generates a validator function that can be used
to validate any kind of data (not limited to JSON).
Base on https://github.com/jdesgats/jsonschema .