Skip to content

Commit dba6a00

Browse files
committed
refactor: simplifies JSON body to string
1 parent 940e07d commit dba6a00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Providers/Http/DTO/Request.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,8 @@ public static function getJsonSchema(): array
307307
'description' => 'The request headers.',
308308
],
309309
self::KEY_BODY => [
310-
'type' => ['string', 'array', 'object', 'null'],
311-
'description' => 'The request body. Always a string when serialized. ' .
312-
'Can be a string, array, or object when deserializing.',
310+
'type' => ['string'],
311+
'description' => 'The request body.',
313312
],
314313
],
315314
'required' => [self::KEY_METHOD, self::KEY_URI, self::KEY_HEADERS],

0 commit comments

Comments
 (0)