From ae4c889fa281f45254836596a8daee5ba9d36ba2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Sep 2024 11:05:58 +0200 Subject: [PATCH] Fix API documentation for project creation endpoint --- app/Http/Controllers/Api/ProjectController.php | 2 +- openapi.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ProjectController.php b/app/Http/Controllers/Api/ProjectController.php index 6aec31e9b..61bfe2976 100644 --- a/app/Http/Controllers/Api/ProjectController.php +++ b/app/Http/Controllers/Api/ProjectController.php @@ -167,7 +167,7 @@ class ProjectController extends Controller schema: new OA\Schema( type: 'object', properties: [ - 'uuid' => ['type' => 'string', 'description' => 'The name of the project.'], + 'name' => ['type' => 'string', 'description' => 'The name of the project.'], 'description' => ['type' => 'string', 'description' => 'The description of the project.'], ], ), diff --git a/openapi.yaml b/openapi.yaml index 482ff6f05..4d2f4d80b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3024,7 +3024,7 @@ paths: application/json: schema: properties: - uuid: + name: type: string description: 'The name of the project.' description: