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

fix: add support to delete requests with body #177

Merged
merged 2 commits into from
Aug 7, 2021

Conversation

LonelyPrincess
Copy link
Contributor

@LonelyPrincess LonelyPrincess commented Aug 7, 2021

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Test
  • Docs
  • Refactor
  • Build-related changes

Description:

As mentioned in this link or in the official docs for the DELETE method in HTTP, this request type should be able to receive a body.

This PR modifies the validRequestBodyMethods configuration object so that DELETE methods are now considered eligible to have a request body, so the value @param {x} request.body in the endpoint comments will no longer be ignored when generating the Swagger docs.

Should fix #176.

@LonelyPrincess LonelyPrincess added the bug Something isn't working label Aug 7, 2021
@LonelyPrincess LonelyPrincess self-assigned this Aug 7, 2021
Copy link
Member

@kevinccbsg kevinccbsg left a comment

Choose a reason for hiding this comment

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

@LonelyPrincess Thanks!!! Thanks!!

@kevinccbsg kevinccbsg merged commit 46b06e0 into master Aug 7, 2021
@kevinccbsg kevinccbsg deleted the fix/delete-req-params branch August 7, 2021 16:46
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 this pull request may close these issues.

[BUG] DELETE missing param details
2 participants