From ed33ee8e4a8841ce2c174a60fe2a7c3df955a53e Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Tue, 31 May 2022 14:09:25 +0200 Subject: [PATCH] Fix the docs --- Resources/doc/index.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index 69873b7..2cc8c94 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -380,17 +380,16 @@ General PHP objects return $this->items; } - .. code-block:: php - .. configuration-block:: + .. configuration-block:: - .. code-block:: php-annotations + .. code-block:: php-annotations - @OA\Schema(ref=@Model(type="App\Response\ItemResponse", groups=["Default"])), + @OA\Schema(ref=@Model(type="App\Response\ItemResponse", groups=["Default"])), - .. code-block:: php-attributes + .. code-block:: php-attributes - #[OA\Schema(ref: new Model(type: App\Response\ItemResponse::class, groups: ['Default']))] + #[OA\Schema(ref: new Model(type: App\Response\ItemResponse::class, groups: ['Default']))] It will generate two different component schemas (ItemResponse, ItemResponse2), even though Default and blank are the same. This is by design.