我不知道为什么这行不通。医生说:
/**
* @api {get} /user/:id
* @apiSuccess {Boolean} active Specify if the account is active.
* @apiSuccess {Object} profile User profile information.
* @apiSuccess {Number} profile.age Users age.
* @apiSuccess {String} profile.image Avatar-Image.
*/
这是我的代码
* @apiParam {Object} file
* @apiParam {String} file.bucket
* @apiParam {String} file.key
* @apiParam {String} file.name
*
* @apiParamExample {json} Request:
* {
* "file": {
* "bucket": "testmediabucket1",
* "key": "key2",
* "name": "klassefoto.jpg"
* }
* }
*
* @apiSuccessExample
* true
PowerShell 给我以下错误:@apiParamExample 和 @apiParam 不匹配!参数 'file.bucket' 不存在,以及'file.key'和'file.name'。