Skip to content

Swagger-UI 2.1.0 Released!

Compare
Choose a tag to compare
@webron webron released this 09 Jun 13:57
· 5555 commits to master since this release

This is the first formal release of swagger-ui with 2.0 spec support. Many thanks to the community for furthering the development of swagger!

Usage notes

Initialization of swagger-ui should be consistent with previous 2.1.x-M versions.

Major changes

With the updated swagger-js, swagger-ui now supports relative references, yaml, and composition support. Please see the swagger-js release notes. In addition to updates to the features to support swagger spec 2.0, the UI does not need to be globally referenced, which means you can deploy multiple instances in a single page.

Notable features

  • Passing options to Operation#execute: 4764d33, c84202c
  • Proper support for array parameters af39ae0
  • Add API-Key to onComplete callback #1170
  • Correct handling of empty (201) responses #1173
  • Improved handling of enum types #391, #1113
  • Support for multiple instances #1086
  • Display request headers for sent requests #693
  • Added tags for 508 compliance #1021
  • Show cUrl output for “try it now” functionality #1315

Notable bug fixes

  • Protocol detected from window.location if not specified e127bf3
  • OAuth settings correctly set e127bf3, #1134
  • Apply authorizations after UI is loaded 44f2005, #1160
  • JS Error on file upload with jQuery #1132
  • Responses with type text/plain were not correctly displayed #1109
  • Fixed handling for boolean types #1191
  • Improved handling of empty/missing content-type header in downloaded responses #1122
  • HTTP Basic Auth support regression #1171
  • Fixed parameter sorting in UI #1280
  • Fixed XSS vulnerability #1262