Skip to content
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

Throw tags taking precedence over OpenApiResponse attribute #525

Closed
cnizzardini opened this issue Jul 14, 2023 · 0 comments · Fixed by #531
Closed

Throw tags taking precedence over OpenApiResponse attribute #525

cnizzardini opened this issue Jul 14, 2023 · 0 comments · Fixed by #531
Labels
bug Something isn't working

Comments

@cnizzardini
Copy link
Owner

Describe the bug
Throw tags taking precedence over OpenApiResponse attribute.

To Reproduce

    /**
     * @throws \Cake\Http\Exception\BadRequestException
     */
    #[OpenApiResponse(schemaType: 'string', statusCode: '400', description: 'Bad Request')]
    public function api(): \Cake\Http\Response

Expected behavior
Attribute should take precedence.

Version and Platform (please complete the following information):

  • OS/Platform: Linux
  • CakePHP: latest
  • SwaggerBake Version: latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant