diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index d73523f..80e19d3 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -45,7 +45,9 @@ jobs: - uses: leafo/gh-actions-luarocks@v4 - name: dependencies - run: make dev + run: | + make dev + luarocks install lua-cjson - name: test run: busted --lua=lua --Xoutput "--color" diff --git a/.github/workflows/openresty.yml b/.github/workflows/openresty.yml index 1926d67..02562b4 100644 --- a/.github/workflows/openresty.yml +++ b/.github/workflows/openresty.yml @@ -44,7 +44,9 @@ jobs: withLuaPath: "/usr/local/openresty/luajit/" - name: dependencies - run: make dev + run: | + make dev + luarocks install lua-cjson - name: test run: busted diff --git a/CHANGELOG.md b/CHANGELOG.md index 653519f..e751828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ The scope of what is covered by the version number excludes: ## Version history -### 1.2.0-2 (19-Oct-2023) +### 1.2.0-2 (24-Oct-2024) - this rockspec update was lost on 1.2.0 release (see 1.1.6-2 below), applying it again. This is not a real release (has no tag), since it doesn't change any code. It only updates diff --git a/docs/examples/coercion.lua.html b/docs/examples/coercion.lua.html index 3f04e37..7a20446 100644 --- a/docs/examples/coercion.lua.html +++ b/docs/examples/coercion.lua.html @@ -95,7 +95,7 @@

coercion.lua

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/examples/format_attributes.lua.html b/docs/examples/format_attributes.lua.html index d4b1209..f74002a 100644 --- a/docs/examples/format_attributes.lua.html +++ b/docs/examples/format_attributes.lua.html @@ -91,7 +91,7 @@

format_attributes.lua

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/examples/getting_started.lua.html b/docs/examples/getting_started.lua.html index a9bd7b9..e8b1fd6 100644 --- a/docs/examples/getting_started.lua.html +++ b/docs/examples/getting_started.lua.html @@ -85,7 +85,7 @@

getting_started.lua

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/index.html b/docs/index.html index d68b21c..7d5f009 100644 --- a/docs/index.html +++ b/docs/index.html @@ -106,7 +106,7 @@

Examples

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/modules/resty.ljsonschema.html b/docs/modules/resty.ljsonschema.html index 7c9c448..e7a61b6 100644 --- a/docs/modules/resty.ljsonschema.html +++ b/docs/modules/resty.ljsonschema.html @@ -253,7 +253,7 @@

Returns:

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/modules/resty.ljsonschema.metaschema.html b/docs/modules/resty.ljsonschema.metaschema.html index f123b0b..58cf2cf 100644 --- a/docs/modules/resty.ljsonschema.metaschema.html +++ b/docs/modules/resty.ljsonschema.metaschema.html @@ -98,7 +98,7 @@

Usage:

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html index ff5181e..5d4fcf4 100644 --- a/docs/topics/01-introduction.md.html +++ b/docs/topics/01-introduction.md.html @@ -206,7 +206,7 @@

1.7 Development

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/topics/02-format-attributes.md.html b/docs/topics/02-format-attributes.md.html index 12eb884..514ccdc 100644 --- a/docs/topics/02-format-attributes.md.html +++ b/docs/topics/02-format-attributes.md.html @@ -80,7 +80,7 @@

2. Format attributes

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html index 8d45171..8ad0768 100644 --- a/docs/topics/CHANGELOG.md.html +++ b/docs/topics/CHANGELOG.md.html @@ -94,6 +94,15 @@

Releasing new versions

Version history

+

1.2.0-2 (24-Oct-2024)

+ + +

1.2.0 (23-Oct-2024)

+

1.1.6-2 (19-Oct-2023)

+ +

1.1.6 (21-Sep-2023)

@@ -223,7 +239,7 @@

7-Jun-2019 Forked from https://github.com/jdesgats/ljsonschema

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html index c8f5ad8..f7fee2e 100644 --- a/docs/topics/LICENSE.md.html +++ b/docs/topics/LICENSE.md.html @@ -84,7 +84,7 @@

Copyright (c) 2017 Julien Desgats, 2019-2024 Thijs Schreijer

generated by LDoc 1.5.0 -Last updated 2024-10-23 10:01:23 +Last updated 2024-10-24 09:22:08
diff --git a/rockspecs/lua-resty-ljsonschema-1.2.0-2.rockspec b/rockspecs/lua-resty-ljsonschema-1.2.0-2.rockspec new file mode 100644 index 0000000..3593480 --- /dev/null +++ b/rockspecs/lua-resty-ljsonschema-1.2.0-2.rockspec @@ -0,0 +1,42 @@ +local package_name = "lua-resty-ljsonschema" +local package_version = "1.2.0" +local rockspec_revision = "2" +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", + } +}