I'm using L5 Swagger from DarkOnLine to generate Swagger docs using OpenApi schematics.
To use schema I can do
@OA\Property(property="certification", type="array", @OA\Items(ref="#/components/schemas/Certification"))
and it works perfectly fine and shows as
"certification": [
    {
      "certification_id": 0,
      "name": "string"
    }
  ],
. But it creates an array block with square brackets with multiple objects inside it.
How do I use the same working but lose the array. Something like
@OA\Property(property="certification", type="object", @OA\Items(ref="#/components/schemas/Certification")),
so as to remove square brackets and show only object like.
"certification": {
      "certification_id": 0,
      "name": "string"
 }
 
     
    