fix(api): correct OpenAPI schema annotations for array items

- Replace OA\Schema with OA\Items for array items in DatabasesController
- Replace OA\Items with OA\Schema for array type properties in GithubController
- Update generated OpenAPI documentation files (openapi.json and openapi.yaml)
This commit is contained in:
Andras Bacsai
2025-09-30 11:19:39 +02:00
parent 323bff5632
commit db2d44ca1f
4 changed files with 1451 additions and 5 deletions

View File

@@ -219,9 +219,9 @@ class GithubController extends Controller
schema: new OA\Schema(
type: 'object',
properties: [
'repositories' => new OA\Items(
'repositories' => new OA\Schema(
type: 'array',
items: new OA\Schema(type: 'object')
items: new OA\Items(type: 'object')
),
]
)
@@ -335,9 +335,9 @@ class GithubController extends Controller
schema: new OA\Schema(
type: 'object',
properties: [
'branches' => new OA\Items(
'branches' => new OA\Schema(
type: 'array',
items: new OA\Schema(type: 'object')
items: new OA\Items(type: 'object')
),
]
)