diff --git a/CHANGELOG.md b/CHANGELOG.md index 28706fbf..2a4fb29f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ + +# [1.16.0](https://github.com/Rebilly/ReDoc/compare/v1.15.0...v1.16.0) (2017-05-12) + + +### Bug Fixes + +* do not show discriminator dropdown if it is empty ([7a5d315](https://github.com/Rebilly/ReDoc/commit/7a5d315)) +* prevent possible XSS using `untrusted-spec` option ([c0698bb](https://github.com/Rebilly/ReDoc/commit/c0698bb)) +* URL changes so fast ([131b437](https://github.com/Rebilly/ReDoc/commit/131b437)), closes [#252](https://github.com/Rebilly/ReDoc/issues/252) + + +### Features + +* display xml examples if present in response examples ([cb106cc](https://github.com/Rebilly/ReDoc/commit/cb106cc)) + + # [1.15.0](https://github.com/Rebilly/ReDoc/compare/v1.14.0...v1.15.0) (2017-05-05) diff --git a/README.md b/README.md index 068a26be..e60afee1 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ We host the latest and all the previous ReDoc releases on GitHub Pages-based **C ``` That's all folks! +**IMPORTANT NOTE:** if you work with untrusted user spec, use `untrusted-spec` [option](#redoc-tag-attributes) to prevent XSS security risks. + ### 1. Install ReDoc (skip this step for CDN) Install using [bower](bower.io): @@ -131,6 +133,7 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica ### `` tag attributes * `spec-url` - relative or absolute url to your spec file; +* `untrusted-spec` - if set, the spec is considered untrusted and all HTML/markdown is sanitized to prevent XSS. **Disabled by default** for performance reasons. **Enable this option if you work with untrusted user data!** * `scroll-y-offset` - If set, specifies a vertical scroll-offset. This is often useful when there are fixed positioned elements at the top of the page, such as navbars, headers etc; `scroll-y-offset` can be specified in various ways: * **number**: A fixed number of pixels to be used as offset; diff --git a/demo/index-gh.html b/demo/index-gh.html index 17724a03..5835dfc9 100644 --- a/demo/index-gh.html +++ b/demo/index-gh.html @@ -22,7 +22,7 @@ frameborder="0" scrolling="0" width="130px" height="30px"> - + diff --git a/demo/index.html b/demo/index.html index ee983bf4..8ef1e02a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -22,7 +22,7 @@ frameborder="0" scrolling="0" width="130px" height="30px"> - +