Created by: mikesaurus
fix #4222 (closed) (see #4222 (closed) for simple example and steps to reproduce.)
- Changed Java/resttemplate/api.mustache local variables from accept(s) to localVarAccept(s) to avoid collisions with API contract accept(s) parameters.
- Built openapi-generator-maven-plugin and successfully used it to generate client for current development project with an API contract that includes operations with "Accept" header parameters. (Also verified template changes using o-g-m-p v4.3.1 using templateDirectory override.)
- Ran openapi-generator integration tests against newly generated samples.
PR checklist
- [ X] Read the contribution guidelines.
- [ X] If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
- [ X] Run the shell script
./bin/generate-samples.sh
to update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. - [ X] File the PR against the correct branch:
master
- [ X] Copy the technical committee to review the pull request if your PR is targeting a particular programming language.
CC: Java Technical Committee [@bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @bkabrda]