nic-chen commented on issue #2433:
URL: https://github.com/apache/apisix/issues/2433#issuecomment-709678753
@membphis
example, add create_time and update_time for `service`
```
local timestamp_def = {
type = "integer",
}
_M.service = {
type = "object",
properties = {
id = id_schema,
plugins = plugins_schema,
upstream = upstream_schema,
upstream_id = id_schema,
name = {type = "string", maxLength = 50},
desc = {type = "string", maxLength = 256},
script = {type = "string", minLength = 10, maxLength = 102400},
labels = {
description = "key/value pairs to specify attributes",
type = "object",
patternProperties = {
[".*"] = label_value_def
},
maxProperties = 16
},
create_time = timestamp_def,
update_time = timestamp_def
},
additionalProperties = false,
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]