Updated swagger extension based on swagger 2.10 version.