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.