apiParam (пример) и объекты - PullRequest
0 голосов
/ 01 октября 2018

Я не знаю, почему это не сработает.Документ говорит:

/**
 * @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 '.

...