You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (generateSpringApplicationClient && outputFileType != TypeScriptFileType.implementationFile) {
415
417
thrownewRuntimeException("'generateSpringApplicationClient' can only be used when generating implementation file ('outputFileType' parameter is 'implementationFile').");
thrownewRuntimeException("'generateClientAsService' can only be used when application client generation is enabled via 'generateSpringApplicationClient' or 'generateJaxrsApplicationClient'.");
thrownewRuntimeException("'skipNullValuesForOptionalServiceArguments' can only be used when application client as a service generation is enabled via 'generateClientAsService'.");
426
+
}
427
+
417
428
if (jaxrsNamespacing != null) {
418
429
TypeScriptGenerator.getLogger().warning("Parameter 'jaxrsNamespacing' is deprecated. Use 'restNamespacing' parameter.");
Copy file name to clipboardExpand all lines: typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIdentifierReference.java
Copy file name to clipboardExpand all lines: typescript-generator-maven-plugin/src/main/java/cz/habarta/typescript/generator/maven/GenerateMojo.java
+21
Original file line number
Diff line number
Diff line change
@@ -558,6 +558,25 @@ public class GenerateMojo extends AbstractMojo {
558
558
@Parameter
559
559
privatebooleanscanSpringApplication;
560
560
561
+
/**
562
+
* If <code>true</code> it will generate client application methods as service methods, meaning that they will
563
+
* accept all arguments as unfolded arguments. Otherwise, REST query parameters will be wrapped into an object <code>queryParams</code>.
564
+
* This parameter can be used only when <code>generateSpringApplicationClient</code> or <code>generateJaxrsApplicationClient</code> are set to <code>true</code>.
565
+
* Notice, currently only simple (non-bean) parameters will be detected. Currently, beans won't work for this type of client generation.
566
+
* If you need for beans to work as well, please, set this option to <code>false</code>. This flow is intended to be fixed in the future releases.
567
+
*/
568
+
@Parameter
569
+
privatebooleangenerateClientAsService;
570
+
571
+
/**
572
+
* If <code>true</code> it will not pass optional parameters to the <code>HttpClient</code> if those parameters
573
+
* are set to <code>null</code>. Otherwise, only <code>undefined</code> parameters will be skipped.
574
+
* Notice, mandatory parameters which are set to <code>null</code> will still be passed.
575
+
* This parameter can be used only when <code>generateClientAsService</code> is set to <code>true</code>.
0 commit comments