Fix the docs

This commit is contained in:
Guilhem Niot 2022-05-31 14:09:25 +02:00 committed by GitHub
parent 7803c7365e
commit ed33ee8e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.