This is an automated email from the ASF dual-hosted git repository.
AlinsRan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new af8466ecb chore(deps): bump lua-resty-openapi-validator to 1.0.6
(#13728)
af8466ecb is described below
commit af8466ecbf6c1394895c015018f756e82a61fed3
Author: AlinsRan <[email protected]>
AuthorDate: Thu Jul 23 15:13:03 2026 +0800
chore(deps): bump lua-resty-openapi-validator to 1.0.6 (#13728)
---
apisix-master-0.rockspec | 2 +-
t/core/cjson-bundled.t | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/apisix-master-0.rockspec b/apisix-master-0.rockspec
index cbfea4e49..9d731ea08 100644
--- a/apisix-master-0.rockspec
+++ b/apisix-master-0.rockspec
@@ -47,7 +47,7 @@ dependencies = {
"lua-resty-hmac-ffi = 0.06-1",
"lua-resty-cookie = 0.4.1-1",
"lua-resty-session = 4.1.5-1",
- "lua-resty-openapi-validator = 1.0.5-1",
+ "lua-resty-openapi-validator = 1.0.6-1",
"opentracing-openresty = 0.1-0",
"lua-resty-radixtree = 2.9.2-0",
"lua-protobuf = 0.5.3-1",
diff --git a/t/core/cjson-bundled.t b/t/core/cjson-bundled.t
new file mode 100644
index 000000000..e4d0c80bc
--- /dev/null
+++ b/t/core/cjson-bundled.t
@@ -0,0 +1,44 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+use t::APISIX 'no_plan';
+
+repeat_each(1);
+no_long_string();
+no_root_location();
+
+run_tests();
+
+__DATA__
+
+=== TEST 1: cjson resolves to the OpenResty bundled copy, never the one under
deps/
+--- config
+ location /t {
+ content_by_lua_block {
+ local path = package.searchpath("cjson", package.cpath)
+ if not path then
+ ngx.say("BAD: cjson could not be resolved")
+ elseif path:find("/deps/", 1, true) then
+ ngx.say("BAD: cjson resolved from deps: ", path)
+ else
+ ngx.say("OK: cjson resolved from bundled")
+ end
+ }
+ }
+--- request
+GET /t
+--- response_body
+OK: cjson resolved from bundled