Is there a way to generate fields declared as "array" in JSON, but with "uniqueItems": true as a Set rather than a List? JsonSchema2Pojo does this by default.
2.4.4
Either change the default behavior to generate Sets automatically in this case or add an option e.g. uniqueItemsArraysAsSets that will cause the generator to create Sets in these places.
Hi Chessray,
I use openapi-codegen and swagger-codegen.
Your suggest is nice. Because Set type is usually used in java.
If the suggest adopted that saved my life. ><
Could I ask do you have the alternative option to fix this problem?
I also ask this question on stackoverflow:
https://stackoverflow.com/questions/56899939/how-to-define-listmapinteger-setstring-property-in-openapi-generator
Most helpful comment
Hi Chessray,
I use openapi-codegen and swagger-codegen.
Your suggest is nice. Because Set type is usually used in java.
If the suggest adopted that saved my life. ><
Could I ask do you have the alternative option to fix this problem?
I also ask this question on stackoverflow:
https://stackoverflow.com/questions/56899939/how-to-define-listmapinteger-setstring-property-in-openapi-generator