fields of synthetic objects do not add the required property in the json schema
Synthetic payload types are generated with all fields being nullable.
I think this can be fixed by annotating each field with @NotNull
"generated.org.web3j.corda.flows.InitiatorPayload": {
"type": "object",
"properties": {
"i": {
"type": "integer",
"format": "int32"
}
}
}