问题描述
我定义了我的模型架构,我想在数组属性中引用其中一个,并带有其他属性。如果我没有额外的属性,我当然可以这样做:
* @OA\Response(
* response=200,* description="",* @OA\JsonContent(
* @OA\Property(property="data",type="object",allOf={
* @OA\Schema(ref="#/components/schemas/Site"),* @OA\Schema(
* @OA\Property(property="groups",type="array",@OA\Items(ref="#/components/schemas/Group")
* )
* })
* )
* ),
但是我想要做的是这样的:
* @OA\Response(
* response=200,@OA\Items(
* @OA\Schema(ref="#/components/schemas/Group"),* @OA\Property(property="additional_property",type="string")
* )
* )
* })
* )
* ),
这可能吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)