我尝试添加一个任意类型的嵌套数组。 这些是我的注释:
* @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
关于php - 如何修复 ErrorException : @OA\Items() is required when @OA\Property() has type "array"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53947062/