Ray Eldath
02/04/2020, 9:35 AMdata class ApproveRequest(val roleId: Int, val extraPermissions: List<InboundPermission> = emptyList())
and
private val requestLens = Body.auto<ApproveRequest>().toLens()
want i want is the field extraPermissions will be marked as optional instead of required in generated OpenApi doc because it have a default value. this may seems somewhat unreasonable, but i just met this in my backend application 😅dave
02/04/2020, 9:38 AMRay Eldath
02/04/2020, 10:03 AMnull as default value could fix