convert rwadef to swagger 2.0