问题描述
我创建了一个模型,用于为 POST 路由定义数据发送。
我目前无法为此属性放置数组数组
/**
* @OA\Property(
* type="array",* description="Which devices will receive the notification.",* collectionFormat="multi",* @OA\Items(
* @OA\Property(property="device_id",type="string",example="20013fe6bcc820c"),* @OA\Property(property="extra_fields",type="string"),* )
* )
*/
public array $devices;
在正文中,我只有一张桌子,我希望有可能有多个设备...我希望有可能将 json 放在 extra_fields 键中,我也不能在那里
“设备”:[ { "device_id": "gthte7r478484zef","extra_fields": "字符串" } ]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)