unstale

npm / swagger-ui-react

swagger-ui-react

What changed in swagger-ui-react 5, from its official release notes, upgrade guides and advisories. Also covers @types/swagger-ui-react, swagger-ui-dist. Sources checked 2026-11-23.

5 breaking3 security13 new APIs and options4 performance18 behavior and defaults34 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

swagger-ui-react 577 changes

Breaking changes 5

  • The JSON Schema document renderer no longer infers a type from OpenAPI number formats.

    5.35.0release notes

  • OpenAPI 3.1 renders Callback operations only.

    5.0.0release notes

  • OpenAPI 3.1 rendering no longer capitalizes the first character of schema component names.

    5.0.0release notes

  • The Info.summary field is rendered as text instead of Markdown.

    5.0.0release notes

  • Schemas are resolved only when expanded in the Schemas section.

    5.0.0release notes

Security 3

  • Addresses the nghttp2-libs vulnerability CVE-2026-27135 in Docker-related artifacts.

    5.32.6release notes

  • Upgraded Alpine packages in Docker to address high-severity CVEs.

    5.32.4release notes

  • The Docker image now uses updated libpng and zlib versions to fix CVE-2026-33416, CVE-2026-33636, and CVE-2026-22184.

    5.32.2release notes

New APIs and options 13

  • Swagger UI can now render standalone JSON Schema 2020-12 documents.

    5.35.0release notes

  • Swagger UI supports additionalOperations in OpenAPI 3.2.

    5.34.0release notes

  • The filter supports searching operations by path.

    5.34.0release notes

  • Adds basic support for OpenAPI 3.2.0.

    5.32.0release notes

  • Swagger UI adds dark mode.

    5.31.0release notes

  • Adds a defaultExpandedLevels option for the JSON Schema 2020-12 renderer.

    5.0.0release notes

  • A new renderer supports JSON Schema 2020-12 in Operations and Webhooks, including its schema keywords and expandable behavior.

    5.0.0release notes

  • Adds the oas31 plugin, concentrating OpenAPI 3.1.0 features in a clear internal and public API.

    5.0.0release notes

  • OpenAPI webhooks are rendered below the paths.

    5.0.0release notes

  • Docker images now support the PORT_IPV6 environment variable.

    5.0.0release notes

  • Adds sample generation support for JSON Schema 2020-12 features, including examples, const, content-related keywords, formats, and schema merging.

    5.0.0release notes

  • The samples plugin can now be overridden for OpenAPI 3.1 support.

    5.0.0release notes

  • The standalone preset is now exported from the npm package, making it available to package users.

    5.0.0release notes

Performance 4

  • Adds virtualization for schemas and operations.

    5.33.0release notes

  • Limit the number of operation rerenders.

    5.32.3release notes

  • Reduced conversion from immutablejs to plain JavaScript objects.

    5.31.2release notes

  • Enables a sub-tree expansion optimization for JSON Schema 2020-12.

    5.0.0release notes

Behavior and default changes 18

  • The JSON Schema document renderer renders definitions like $defs.

    5.35.0release notes

  • The JSON Schema document renderer now renders document info and definitions.

    5.35.0release notes

  • The JSON Schema document renderer now shows $recursiveAnchor and $recursiveRef.

    5.35.0release notes

  • The default supportedSubmitMethods for OAS 3.2 now includes query.

    5.32.15release notes

  • Native browser controls now indicate the dark color scheme.

    5.32.14release notes

  • The Authorization popup can now be closed with the Escape key or by clicking the backdrop.

    5.32.13release notes

  • Copy-to-clipboard buttons now have aria-labels, improving their accessibility to assistive technology users.

    5.32.13release notes

  • The dark-mode toggle button now exposes its name and state for accessibility.

    5.32.13release notes

  • Reduces padding on inline code blocks in markdown, changing their rendered appearance.

    5.32.13release notes

  • Adds a skip-to-operations link and banner and main landmarks to improve navigation for assistive technology users.

    5.32.13release notes

  • Model titles use strong semantics to convey emphasis to assistive technology.

    5.32.13release notes

  • Reverts the change that made Authorization easier to access.

    5.32.5release notes

  • The baseDoc option supports relative references in OpenAPI 3.1.

    5.0.0release notes

  • Cookie-based apiKey authentication is persisted in document.cookie.

    5.0.0release notes

  • Custom OAS 3.1 formats are handled in type inference for JSON Schema 2020-12.

    5.0.0release notes

  • Swagger UI now renders the Info.summary field.

    5.0.0release notes

  • Swagger UI now renders the License.identifier field.

    5.0.0release notes

  • Swagger UI now renders the OpenAPI jsonSchemaDialect field.

    5.0.0release notes

Fixes and other changes 34

  • The JSON Schema document renderer renders dependencies like their successors.

    5.35.0release notes

  • Handles non-Map values in response.

    5.34.1release notes

  • Fixes handling virtualization with path item references.

    5.33.1release notes

  • Fixes visibility of the operation copy-to-clipboard icon.

    5.33.0release notes

  • A scoped DOMPurify instance is used to avoid mutating the global instance.

    5.32.15release notes

  • Buttons now have accessible names, improving accessibility for users of assistive technologies.

    5.32.14release notes

  • Restores icon visibility in Windows High Contrast Mode.

    5.32.13release notes

  • The topbar logo and dark-mode toggle are now visible in Windows High Contrast Mode.

    5.32.13release notes

  • Avoids a crash when an OpenAPI requestBody has no content field.

    5.32.9release notes

  • Parameter inputs no longer fill with invalid array initial values.

    5.32.8release notes

  • Fixes the default text color for Markdown list items in Dark Mode.

    5.32.5release notes

  • Increased the authorization backdrop z-index to fix its layering.

    5.32.4release notes

  • Move the button margin from right to left.

    5.32.3release notes

  • Cache invalidation now accounts for location, preventing stale models components from being reused.

    5.32.1release notes

  • Responsive styling now uses container queries.

    5.32.1release notes

  • A mistakenly added condition was removed from core.

    5.31.2release notes

  • Validated support for OpenAPI 3.1.2.

    5.31.1release notes

  • Sanitizing now handles multi-level relative paths.

    5.30.3release notes

  • Prevents webhooks from crashing when used with OpenAPI 3.0.

    5.30.1release notes

  • Handles complex value stringification in the Property component.

    5.29.5release notes

  • Corrects spec paths for parameters, responses and request bodies.

    5.29.5release notes

  • Fixes expansion margins for OpenAPI 3.1 base dialect keywords.

    5.0.0release notes

  • OpenAPI 3.1 base dialect keywords now have extendable behavior.

    5.0.0release notes

  • JSON Schema 2020-12 boolean schemas are now handled properly.

    5.0.0release notes

  • Expanding a Callback operation no longer causes a browser error.

    5.0.0release notes

  • Fixes collapsible behavior for JSON Schema 2020-12.

    5.0.0release notes

  • The response-body download button is hidden when the content is empty.

    5.0.0release notes

  • Fixes rendering of JSON Schema 2020-12 items keywords.

    5.0.0release notes

  • Model component schema names are decoded when rendered.

    5.0.0release notes

  • Fixes cycle detection for OpenAPI 3.1.0.

    5.0.0release notes

  • OpenAPI 3.1 now detects user edits to request bodies in OpenAPI.paths.

    5.0.0release notes

  • Fixes rendering of OpenAPI 3.1 Path Items containing schemas with cycles.

    5.0.0release notes

  • Fixes rendering of a Schema Object inside an Operation Object in OpenAPI 3.1.

    5.0.0release notes

  • Fixes deep linking for OpenAPI 3.1 Webhooks and Callbacks.

    5.0.0release notes