We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, i trying use diferrent responses for one status code, but only one response generated, in doc:
#[OpenApi\Response(factory: ErrorUnauthenticatedResponse::class, statusCode: 401)] #[OpenApi\Response(factory: ErrorForbiddenResponse::class, statusCode: 401)]
my code:
#[OpenApi\Operation(id: 'feedback-store', tags: ['Others'], method: 'POST')] #[OpenApi\Parameters(factory: XParameters::class)] #[OpenApi\RequestBody(factory: FeedbackStoreRequestBody::class)] #[OpenApi\Response(factory: FeedbackResponse::class, statusCode: 204)] #[OpenApi\Response(factory: CaptchaErrorResponse::class, statusCode: 422)] #[OpenApi\Response(factory: FeedbackValidationErrorResponse::class, statusCode: 422)] public function __invoke(FeedbackRequest $request): Response {}
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
i trying use diferrent responses for one status code, but only one response generated, in doc:
my code:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: