Swagger UI 3.9.0 已发布,这是一款 API 在线文档生成和调试工具。
该版本包含核心插件 API 更改,以及一些突破性变化,包括:
Introduced a breaking function signature change to errActions.newThrownErr action creator (from (err, action) to (err)) and err_new_thrown_err action payload (stopped nesting error content under error key in payload, now the error is the payload).
特性:added error catcher for statePlugin interfaces; prevents errors in plugin code from crashing entire application instance
The only downside to this is that some errors are now a bit harder to trace! Set a breakpoint at console.error and walk down the stack to see what's going wrong.
特性:display error content when definition/config load fails
特性:display parameter enums, defaults, and examples when not in Try-It-Out mode
改进:added hasOwnProperty checks to a handful of for...in loops
改进:now using nginx location to set Docker base url instead of moving things around the filesystem
改进:brought parameter model property description styling in line with styling for.... everything else
修复:check for Promise on global/window object, which makes IE11 a very happy browser
Housekeeping: used zopflipng to compress PNG assets in repo
Housekeeping: added maintainer documentation for PR merging workflow
软件详情:https://github.com/swagger-api/swagger-ui/
下载地址:https://github.com/swagger-api/swagger-ui/releases/download/v3.9.0/swagger-ui-3.9.0.zip
来自:开源中国社区

