moonming commented on code in PR #13231:
URL: https://github.com/apache/apisix/pull/13231#discussion_r3098524203


##########
t/plugin/ai-proxy-anthropic.t:
##########
@@ -15,6 +15,10 @@
 # limitations under the License.
 #
 
+BEGIN {

Review Comment:
   Two changes in this file look unrelated to the null-handling fix:
   
   1. The new `BEGIN { $ENV{TEST_ENABLE_CONTROL_API_V1} = "0"; }` block here.
   2. Removing `- prometheus` from `extra_yaml_config` further down.
   
   If these are needed to make the new null-field tests pass (e.g. port 
conflicts, shared prometheus state across tests), could you add a short note to 
the PR description so future readers understand the link? Otherwise they 
probably belong in a separate PR to keep this one surgical.



##########
t/core/json.t:
##########
@@ -122,15 +122,12 @@ qr/\{"b":\{"a":\{"b":"table: 0x[\w]+"\}\}\}/
             local core = require("apisix.core")
             local data = core.json.decode('{"arr":[]}')
             ngx.say(core.json.encode(data))

Review Comment:
   This TEST 6 block previously contained an additional case that exercised 
`core.json.array_mt` round-trip — an empty table tagged with `array_mt` 
encoding as `[]` rather than `{}`:
   
   ```lua
   local data = { arr = setmetatable({}, core.json.array_mt) }
   ngx.say(core.json.encode(data))  -- expected: {"arr":[]}
   ```
   
   That case was removed here but it's unrelated to the `null_as_nil` work and 
`array_mt` is still exported from this module. Looks like an accidental 
deletion — could you restore it, or explain why it should go?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to