OpenAPITools / OpenAPITools/openapi-generator

[BUG] RequestBody in DELETE http requests

Open
#21,324 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

your Swagger validation probably considers the presence of a body in a DELETE request as an error and prevents the generation. The only way at the moment is to skip the validation with --skip-validate-spec
Wouldn't it be more correct to consider this a warning and not a blocking error, since the presence of a RequestBody is not explicitly forbidden for this type of operation?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the generation path that handles --skip-validate-spec and trace how DELETE operations with a RequestBody are validated. Confirm the current blocking behavior and identify the relevant validation tests; done means the case no longer blocks generation and is reported as a warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.