diff --git a/README.md b/README.md index 71708fb..a659cdf 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Install - [api7/jsonschema](https://github.com/api7/jsonschema) — JSON Schema Draft 4/6/7 validation - [lua-resty-radixtree](https://github.com/api7/lua-resty-radixtree) — radix tree path routing -- [lua-cjson](https://github.com/openresty/lua-cjson) — JSON encoding/decoding +- [lua-cjson](https://github.com/openresty/lua-cjson) — JSON encoding/decoding (bundled with OpenResty, not installed via LuaRocks) > install by luarocks diff --git a/rockspec/lua-resty-openapi-validator-1.0.6-1.rockspec b/rockspec/lua-resty-openapi-validator-1.0.6-1.rockspec new file mode 100644 index 0000000..9c6d4a4 --- /dev/null +++ b/rockspec/lua-resty-openapi-validator-1.0.6-1.rockspec @@ -0,0 +1,38 @@ +package = "lua-resty-openapi-validator" +version = "1.0.6-1" + +source = { + url = "git+https://github.com/api7/lua-resty-openapi-validator.git", + tag = "v1.0.6", +} + +description = { + summary = "Pure Lua OpenAPI request validator for OpenResty", + detailed = [[ + Validates HTTP requests against OpenAPI 3.0 and 3.1 specifications + using lua-resty-radixtree for path matching and api7/jsonschema for + schema validation. No Go FFI or external processes required. + ]], + homepage = "https://github.com/api7/lua-resty-openapi-validator", + license = "Apache-2.0", +} + +dependencies = { + "lua >= 5.1", + "jsonschema", + "lua-resty-radixtree", +} + +build = { + type = "builtin", + modules = { + ["resty.openapi_validator"] = "lib/resty/openapi_validator/init.lua", + ["resty.openapi_validator.loader"] = "lib/resty/openapi_validator/loader.lua", + ["resty.openapi_validator.refs"] = "lib/resty/openapi_validator/refs.lua", + ["resty.openapi_validator.normalize"] = "lib/resty/openapi_validator/normalize.lua", + ["resty.openapi_validator.router"] = "lib/resty/openapi_validator/router.lua", + ["resty.openapi_validator.params"] = "lib/resty/openapi_validator/params.lua", + ["resty.openapi_validator.body"] = "lib/resty/openapi_validator/body.lua", + ["resty.openapi_validator.errors"] = "lib/resty/openapi_validator/errors.lua", + }, +} diff --git a/rockspec/lua-resty-openapi-validator-master-0.1-0.rockspec b/rockspec/lua-resty-openapi-validator-master-0.1-0.rockspec index d6f4fb5..6913357 100644 --- a/rockspec/lua-resty-openapi-validator-master-0.1-0.rockspec +++ b/rockspec/lua-resty-openapi-validator-master-0.1-0.rockspec @@ -17,7 +17,6 @@ dependencies = { "lua >= 5.1", "jsonschema", "lua-resty-radixtree", - "lua-cjson", } build = {