当我尝试访问 requestBody 时,它给了我错误无法访问未定义。
然后我通过打印req.swagger.params进行检查,它看起来像这样:
{ _id:
{ path: '/v0/users/config/{_id}',
schema: [Object],
originalValue: '123',
value: '123' },
undefined:
{ path: '/v0/users/config/{_id}',
schema: [Object],
originalValue: [Object],
value: [Object] } }
无法理解 requestBody 出现未定义键名的原因。
我现在如何访问 requestBody?