I will go straight to the problem. I make a controller with return type is nullable, but it will make generate source error because the generate source somehow think return type is always not null
@POST("/secure/org/info")
fun info(request: OrgInfoRequest): OrgDto? {
BeanValidator.validate(request)
return orgService.info(request)
}
fun info(ctx: io.jooby.Context): io.github.jonaskahn.services.org.dto.OrgDto {
val c = this.factory.apply(ctx)
return c.info(ctx.body(io.github.jonaskahn.controllers.org.OrgInfoRequest::class.java))
}
I think it could be a bug?
