added response check for swagger 2.0/1.2 client