Exclude Kotlin Synthetic Constructors when generating Payload Classes
https://stackoverflow.com/questions/53912047/two-additional-types-in-default-constructor-in-kotlin
CashPaymentFlow has one such synthetic Constructor.
These should be excluded when working out the primary constructor.
public net.corda.finance.flows.CashPaymentFlow(net.corda.core.contracts.Amount,net.corda.core.identity.Party,boolean,net.corda.core.utilities.ProgressTracker,java.util.Set,net.corda.core.identity.Party,int,kotlin.jvm.internal.DefaultConstructorMarker) - arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7,
The ASM Synthetic types only provide useful names if Braid is run in Debug mode or compiled with parameters. In non debug you get arg0, arg1, arg2 names for the parameters
Ideally the swagger would be identical run in debug or normal mode.
https://stackoverflow.com/questions/2237803/can-i-obtain-method-parameter-name-using-java-reflection
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<!-- Original answer -->
<compilerArgument>-parameters</compilerArgument>
<!-- Or, if you use the plugin version >= 3.6.2 -->
<parameters>true</parameters>
<testCompilerArgument>-parameters</testCompilerArgument>