@dmcg isn't your code closely related to the PR I created some time ago? I added support for required/optional to these places which were required by Swagger https://github.com/FasterXML/jackson-module-kotlin/pull/77
Aren't we trying to achieve similar things?