From 2922481404afe31f3522395c2be7a3e90e06d2e2 Mon Sep 17 00:00:00 2001 From: Xavier Leune Date: Mon, 6 Jan 2025 15:35:33 +0100 Subject: [PATCH] docs: Fix examples for RequestBody --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 76203f2a4..deb90afc9 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -389,10 +389,10 @@ that property type to not be nullable, for example. #[OA\Response(response: 200, content: new Model(type: UserDto::class, groups: ["default"]))] // Similarly, this will make the username `required` in the create schema - #[OA\RequestBody(new Model(type: UserDto::class, groups: ["create"]))] + #[OA\RequestBody(content: new Model(type: UserDto::class, groups: ["create"]))] // But for updates, the `username` property will not be required - #[OA\RequestBody(new Model(type: UserDto::class, groups: ["update"]))] + #[OA\RequestBody(content: new Model(type: UserDto::class, groups: ["update"]))] .. tip::