swagger-api / swagger-api/swagger-codegen

[Java][Improvement] Add an option to skip required parameters check

Open
#5,831 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Java General: Suggestion
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

In the specification, I have 2 parameters marked as 'required' for the particular api call. In fact, just on of them should be provided - either first one or second. It doesn't seem to be possible to make the appropriate changes to specification now (issue). Is it possible to add the config option, which would allow to skip block related to 'check if all required parameters provided or throw exception'?

Swagger-codegen version

2.2.2

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

The issue names no source file, test, or entry point; begin by locating the Java generated-client validation for required parameters in Swagger-codegen 2.2.2. Define the configuration path and regression coverage before changing behavior, with completion meaning the check can be skipped while the default behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.