我试图添加一个任意类型的嵌套数组。 这是我的注释:
* @OA\Property(
* @OA\Schema(
* type="array",
* @OA\Items(
* type="array",
* @OA\Items(type={})
* )
* ),
* description="bla bla bla"
* )
我试图添加一个任意类型的嵌套数组。 这是我的注释:
* @OA\Property(
* @OA\Schema(
* type="array",
* @OA\Items(
* type="array",
* @OA\Items(type={})
* )
* ),
* description="bla bla bla"
* )
我已经找到了解决方案:
* @OA\Property(
* type="array",
* @OA\Items(
* type="array",
* @OA\Items()
* ),
* description="bla bla bla"
* )
这个问题是 @OA\Schema
@OA\Parameter(
name="",
in="path",
@OA\Schema(type="string"),
required=true,
description=""
),
@OA\Items(type={})
替换为@OA\Items()
,会发生什么? - Helen