monkeyDluffy6017 commented on code in PR #10232:
URL: https://github.com/apache/apisix/pull/10232#discussion_r1335333837


##########
apisix/admin/resource.lua:
##########
@@ -49,7 +49,41 @@ local function split_typ_and_id(id, sub_path)
 end
 
 
-function _M:check_conf(id, conf, need_id, typ)
+local function check_create_update_time(conf)
+    local not_allow_create_time = "forbidden create_time in request body"
+    local not_allow_update_time = "forbidden update_time in request body"
+
+    if conf.create_time then
+        return not_allow_create_time
+    end

Review Comment:
   Is it possible to define a check list and sequentially check for properties 
that should not exist? like
   ```
   local forbidden_properties = {create_time, update_time}
   ```



-- 
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