OpenAPITools / OpenAPITools/openapi-generator

[JAVA] [jaxrs-spec] add custom method to add/remove elements from Java Collections

Open
#6,467 1 comment 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

Description

Generate methods to add & remove elements from Java Collections

openapi-generator version

v4.3.1

Command line used for generation

/bin/jaxrs-spec-petstore-server.sh

Steps to reproduce
  1. Execute - ./bin/jaxrs-spec-petstore-server.sh
  2. Generated code doesn't include methods to remove or add elements to Java Collections.
Related issues/PRs
Suggest a fix/enhancement

Make changes to JavaJaxRS/spec pojo.mustache to generate add/remove methods.

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 with JavaJaxRS/spec/pojo.mustache and run bin/jaxrs-spec-petstore-server.sh to inspect the generated server code. Done means the generated Java Collection properties include methods to add and remove elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.