package = "kong-lua-resty-ljsonschema"
version = "1.3.0-1"

source = {
   url = "git+https://github.com/Kong/lua-resty-ljsonschema",
   tag = "1.3.0"
}

description = {
   summary = "JSON Schema data validator",
   detailed = [[
      This module is a data validator that implements JSON Schema draft 4.
      Given a JSON schema, it will generate a validator function that can be used
      to validate any kind of data (not limited to JSON).
   ]],
   homepage="https://github.com/Kong/lua-resty-ljsonschema",
   license = "MIT/X11"
}

dependencies = {
   "lua >= 5.1",
   "net-url",
   -- "lua-cjson", disabled, see https://github.com/openresty/lua-cjson/issues/96
}

build = {
   type = "builtin",
   modules = {
      ["resty.ljsonschema.init"] = "src/resty/ljsonschema/init.lua",
      ["resty.ljsonschema.store"] = "src/resty/ljsonschema/store.lua",
      ["resty.ljsonschema.metaschema"] = "src/resty/ljsonschema/metaschema.lua",
      ["resty.ljsonschema.utf8"] = "src/resty/ljsonschema/utf8.lua",
   }
}
