Releases: swagger-api/swagger-ui
Releases · swagger-api/swagger-ui
Swagger UI v5.20.0 Released!
5.20.0 (2025-02-27)
Bug Fixes
- docker: add OpenContainer labels
- json-schema-5: fix JumpToPath feature for schemas, closes swagger-api/swagger-editor#4035
- fix JumpToPath feature for auth methods
- display the correct name of security methods
- fix console errors appearing when security scheme is not defined
- components: render examples only when their shape is correct
- swagger-client: allow resolving URLs without extensions, closes swagger-api/apidom#4298
- css: fix css sourcemaps
- security: update axios to address CVE-2024-39338
- swagger-client: do not encode server variables, closes swagger-api/swagger-js#3656
- security: fix unsafe cookie serialization, addresses CVE-2024-47764, GHSA-pxg6-pf52-xh8x
- spec: compensate if OpenAPI.paths field is defined as unexpected structure
- json-schema-2020-12: check for schema type before extracting extension keywords, closes swagger-ui/issues#9376
- json-schema-2020-12: fix rendering of uniqueItems keyword
- json-schema-2020-12: fix overrides of JSON Schema extension keywords
- spec: clear JSON state when loading a new definition
- oas31: fix caching of JSON Schema 2020-12 context
- json-schema-2020-12: fix default expansion being applied to components after initial render
- json-schema-2020-12: fix complex schemas expanding beyond the default expansion depth
- json-schema-2020-12: fix deep expansion not expanding some of the keywords
- oas31: fix expansion of Schema Object fixed fields
Features
- swagger-ui-react: add support for initialState prop
- add horizontal scrollbar for schemas, refs swagger-api/swagger-ui#8940
- display schema of complex parameters
- display schema of complex request body properties
- json-schema-2020-12: allow to use fn outside of React context
- oas31: display schema of complex parameters with union type
- oas31: display schema of complex request body properties with union type
- oas31: display textarea for parameters with complex union type
- json-schema-2020-12: allow to use getTitle outside of JSON Schema 2020-12 context
- json-schema-2020-12: introduce system bound HOC
- json-schema-2020-12: add support for rendering extension keywords, closes swagger-ui/issues#9376
- json-schema-2020-12: add support for rendering examples keyword
- json-schema-2020-12: use JSON Viewer to display keywords with complex values
- json-schema-2020-12: handle empty objects and arrays in JSONViewer
- oas3: more support for OpenAPI 3.0.4
- introduce custom URL sanitization mechanism
- apply additional fixes for custom URL sanitization mechanism
- oas31: add support for OpenAPI extensions
- json-schema-2020-12: respect showExtensions config option
Attributions (alphabetical order)
Swagger UI v5.19.0 Released!
Swagger UI v5.18.3 Released!
Swagger UI v5.18.2 Released!
Swagger UI v5.18.1 Released!
Swagger UI v5.18.0 Released!
5.18.0 (2024-11-05)
Features
Anonymized analytics
SwaggerUI uses Scarf to collect anonymized installation analytics. These analytics help support the maintainers of this library and ONLY run during installation. To opt out, you can set the scarfSettings.enabled
field to false
in your project's package.json
:
// package.json
{
// ...
"scarfSettings": {
"enabled": false
}
// ...
}
Alternatively, you can set the environment variable SCARF_ANALYTICS
to false
as part of the environment that installs your npm packages, e.g., SCARF_ANALYTICS=false npm install
.