You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inside this folder I create class OpenApiSpec.php with next content
<?php
namespace App\Openapi;
use OpenApi\Attributes as OA;
use Symfony\Component\PropertyInfo\Type;
class OpenApiSpec
{
}
#[OA\Response(
response: 'create',
description: 'Info about Rule',
content: new OA\JsonContent(
.....some description here.....
type: Type::BUILTIN_TYPE_OBJECT
)
)]
class RuleResponse{}
User Warning: $ref "#/components/responses/create" not found for @OA\Response() in \App\Controller\RuleController->create() in /var/www/app/src/Controller/RuleController.php
But according to swagger-php examples it should work.
What am I doing wrong?
PS:
Symfony 6.2
NelmioApiDocBundle 4.11
The text was updated successfully, but these errors were encountered:
Hi!
I'm trying to get behavior like in pure swagger-php (zircote/swagger-php#788).
What I did:
Then I use it in controller like this
But I always get errors like
But according to swagger-php examples it should work.
What am I doing wrong?
PS:
Symfony 6.2
NelmioApiDocBundle 4.11
The text was updated successfully, but these errors were encountered: