Merge pull request #1207 from tangcent/master

opti: tag of interface could be addAndUpCommonField
This commit is contained in:
sean1025 2019-07-15 13:55:10 +08:00 committed by GitHub
commit 7c9e6bd541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,8 @@ class interfaceController extends baseController {
api_opened: 'boolean',
req_body_is_json_schema: 'string',
res_body_is_json_schema: 'string',
markdown: 'string'
markdown: 'string',
tag: 'array'
};
this.schemaMap = {
@ -148,8 +149,7 @@ class interfaceController extends baseController {
method: minLengthStringField,
catid: 'number',
switch_notice: 'boolean',
message: minLengthStringField,
tag: 'array'
message: minLengthStringField
},
addAndUpCommonField
),