mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Fix the docs
This commit is contained in:
parent
7803c7365e
commit
ed33ee8e4a
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user