diff --git a/src/Annotations/RequestBody.php b/src/Annotations/RequestBody.php index 83d08fbb..e5e3c697 100644 --- a/src/Annotations/RequestBody.php +++ b/src/Annotations/RequestBody.php @@ -58,7 +58,7 @@ class RequestBody extends AbstractAnnotation * The key is a media type or media type range and the value describes it. For requests that match multiple keys, * only the most specific key is applicable. e.g. text/plain overrides text/*. * - * @var array|JsonContent|XmlContent|Attachable + * @var array|MediaType|JsonContent|XmlContent|Attachable */ public $content = Generator::UNDEFINED; diff --git a/src/Attributes/RequestBody.php b/src/Attributes/RequestBody.php index 35ac38f1..e1d56fab 100644 --- a/src/Attributes/RequestBody.php +++ b/src/Attributes/RequestBody.php @@ -13,17 +13,17 @@ class RequestBody extends OA\RequestBody { /** - * @param string|class-string|object|null $ref - * @param array|JsonContent|XmlContent|Attachable|null $content - * @param array|null $x - * @param Attachable[]|null $attachables + * @param string|class-string|object|null $ref + * @param array|MediaType|JsonContent|XmlContent|Attachable|null $content + * @param array|null $x + * @param Attachable[]|null $attachables */ public function __construct( string|object|null $ref = null, ?string $request = null, ?string $description = null, ?bool $required = null, - array|JsonContent|XmlContent|Attachable|null $content = null, + array|MediaType|JsonContent|XmlContent|Attachable|null $content = null, // annotation ?array $x = null, ?array $attachables = null