major hacking to get this back ported to swagger 1.2