[Java] deserialize to LinkedHashSet when unique items#10241
[Java] deserialize to LinkedHashSet when unique items#10241wing328 merged 7 commits intoOpenAPITools:masterfrom
Conversation
|
@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) @nmuesch (2021/01) @wing328 |
|
CI reports the following failure. Can you please take a look when you've time? |
|
Here is another one: Ref: https://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/12357/workflows/53530b0f-82c0-4a08-8a42-77cc4cf6b5bc/jobs/25986/parallel-runs/1?filterBy=FAILED => then click on node 1 |
…rator into deserialize-to-linkedhashset � Conflicts: � modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache � samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java � samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java
|
@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) @nmuesch (2021/01) @wing328 |
|
@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) @nmuesch (2021/01) @wing328 |
| } else if ("set".equals(property.containerType)) { | ||
| model.imports.add("LinkedHashSet"); | ||
| model.imports.add("JsonDeserialize"); | ||
| property.vendorExtensions.put("x-setter-extra-annotation", "@JsonDeserialize(as = LinkedHashSet.class)"); |
There was a problem hiding this comment.
FYI. I may rename it to x-java-setter-extra-annotation later as this extension is for the Java generators only.
|
@borsch and @wing328 e.g. Exception |
fix issue: #10167
PR checklist
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.
master(5.3.0),6.0.x