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

Feat/add empty responses #172

Merged
merged 3 commits into from
Aug 3, 2021
Merged

Feat/add empty responses #172

merged 3 commits into from
Aug 3, 2021

Conversation

kevinccbsg
Copy link
Member

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Test

Description:

This PR allows the option to provide an empty response in the OpenAPI Docs. This is possible using the OpenAPI yml.

In order to do this, we have to use this comment.

/**
 * GET /api/v1
 * @summary This is the summary of the endpoint
 * @return 200 - success response - application/json
 * @return 400 - Bad request response
 */

This closes #165

Copy link
Member

@bri06 bri06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinccbsg kevinccbsg merged commit c2aac84 into master Aug 3, 2021
@kevinccbsg kevinccbsg deleted the feat/add-empty-responses branch August 3, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] No way to provide empty response body as return example
3 participants