fix(consumer): keep the id field for compatibility (#2829)

This commit is contained in:
罗泽轩 2020-11-24 11:02:44 +08:00 committed by GitHub
parent d7593a0ac3
commit c8823d0eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -559,7 +559,9 @@ _M.consumer = {
}, },
create_time = timestamp_def, create_time = timestamp_def,
update_time = timestamp_def, update_time = timestamp_def,
desc = {type = "string", maxLength = 256} desc = {type = "string", maxLength = 256},
-- deprecate fields, will be removed soon
id = id_schema,
}, },
required = {"username"}, required = {"username"},
additionalProperties = false, additionalProperties = false,