forked from jdesgats/ljsonschema
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlua-resty-ljsonschema-scm-1.rockspec
More file actions
42 lines (36 loc) · 1.31 KB
/
lua-resty-ljsonschema-scm-1.rockspec
File metadata and controls
42 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
local package_name = "lua-resty-ljsonschema"
local package_version = "scm"
local rockspec_revision = "1"
local github_account_name = "Tieske"
local github_repo_name = package_name
local git_checkout = package_version == "scm" and "master" or package_version
package = package_name
version = package_version .. "-" .. rockspec_revision
source = {
url = "git://github.com/"..github_account_name.."/"..github_repo_name..".git",
branch = git_checkout
}
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/"..github_account_name.."/"..github_repo_name,
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",
}
}