-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Documentation is deprecated #2322
Comments
can you provide the correct version? I'm also struggling with this |
This is the version I have added via composer. But the |
I just checked and the workign version for me is: use Nelmio\ApiDocBundle\Annotation\Model;
#[OA\Response(
response: 200,
description: "Returns the list of customers",
content: new OA\JsonContent(
type: "array",
items: new OA\Items(ref: new Model(type: Customer::class))
)
)] under
|
swagger-php provides 2 use OpenApi/Annotations as OA And one for attributes (the one you are using) use OpenApi/Attributes as OA I think you are using the wrong namespace (and thus the wrong class), updating your import should fix this issue. |
Version
4.28.0
Description
The documentation is deprecated.
For example,
is not correct.
Please update the docs.
The text was updated successfully, but these errors were encountered: