vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client
MIT License
1.14k stars 237 forks source link

Suggest:adding explanations of multi-module application compilation parameters in the document. #1061

Open uliian opened 4 months ago

uliian commented 4 months ago

In a multi-module application, if the controller is in a sub-module, the generated parameters will not be able to properly parse the parameter names of methods. It will generate parameter names like arg0, arg1, and so on. If these parameter names are used to correspond to the parameter names in the query string, parameter binding will not work properly. The solution to this problem is: when compiling Java code, add the compilation parameter: -parameters, and when compiling Kotlin code, add the -javaParameters parameter.