From 65b9996749d8c5c4cc369b94c11cdfa604117394 Mon Sep 17 00:00:00 2001 From: Aleksei Zarubin Date: Wed, 7 Jul 2021 09:10:12 +0500 Subject: [PATCH] fix(specs): request body schema ref --- src/ValueObjects/Specs/Requests/Batch/BatchStoreRequest.php | 2 +- src/ValueObjects/Specs/Requests/Batch/BatchUpdateRequest.php | 2 +- src/ValueObjects/Specs/Requests/StoreRequest.php | 2 +- src/ValueObjects/Specs/Requests/UpdateRequest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ValueObjects/Specs/Requests/Batch/BatchStoreRequest.php b/src/ValueObjects/Specs/Requests/Batch/BatchStoreRequest.php index e3ab6fe7..9195dd1d 100644 --- a/src/ValueObjects/Specs/Requests/Batch/BatchStoreRequest.php +++ b/src/ValueObjects/Specs/Requests/Batch/BatchStoreRequest.php @@ -31,7 +31,7 @@ public function toArray(): array 'resources' => [ 'type' => 'array', 'items' => [ - '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}Resource", + '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}", ] ] ] diff --git a/src/ValueObjects/Specs/Requests/Batch/BatchUpdateRequest.php b/src/ValueObjects/Specs/Requests/Batch/BatchUpdateRequest.php index aea0a81d..c4f0ad05 100644 --- a/src/ValueObjects/Specs/Requests/Batch/BatchUpdateRequest.php +++ b/src/ValueObjects/Specs/Requests/Batch/BatchUpdateRequest.php @@ -31,7 +31,7 @@ public function toArray(): array 'resources' => [ 'type' => 'array', 'items' => [ - '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}Resource", + '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}", ] ] ] diff --git a/src/ValueObjects/Specs/Requests/StoreRequest.php b/src/ValueObjects/Specs/Requests/StoreRequest.php index edb072b0..88b955c9 100644 --- a/src/ValueObjects/Specs/Requests/StoreRequest.php +++ b/src/ValueObjects/Specs/Requests/StoreRequest.php @@ -26,7 +26,7 @@ public function toArray(): array 'content' => [ 'application/json' => [ 'schema' => [ - '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}Resource", + '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}", ], ], ], diff --git a/src/ValueObjects/Specs/Requests/UpdateRequest.php b/src/ValueObjects/Specs/Requests/UpdateRequest.php index 33d2f2ce..35e8dc36 100644 --- a/src/ValueObjects/Specs/Requests/UpdateRequest.php +++ b/src/ValueObjects/Specs/Requests/UpdateRequest.php @@ -26,7 +26,7 @@ public function toArray(): array 'content' => [ 'application/json' => [ 'schema' => [ - '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}Resource", + '$ref' => "#/components/schemas/{$this->resourceComponentBaseName}", ], ], ],