Skip to content

fix: invalidate models components cache based on location#10764

Merged
glowcloud merged 2 commits intomasterfrom
fix/oas31-oas32-models-cache
Mar 13, 2026
Merged

fix: invalidate models components cache based on location#10764
glowcloud merged 2 commits intomasterfrom
fix/oas31-oas32-models-cache

Conversation

@glowcloud
Copy link
Copy Markdown
Contributor

@glowcloud glowcloud commented Mar 10, 2026

This PR invalidates cache that is created for Models and Model wrappers in OAS31 and OAS32 plugins. Because of the cache, the components could get the previous system instance if Swagger UI was rendered on multiple pages of an SPA, causing it to e.g. use previous state selectors and display schemas from the previous state instead of the current one.

@glowcloud glowcloud self-assigned this Mar 10, 2026
@glowcloud glowcloud added type: bug specification: 3.1 OpenAPI 3.1 specific specification: 3.2 OpenAPI 3.2.x specific labels Mar 10, 2026
@glowcloud glowcloud merged commit fb78dd2 into master Mar 13, 2026
9 checks passed
swagger-bot pushed a commit that referenced this pull request Mar 17, 2026
## [5.32.1](v5.32.0...v5.32.1) (2026-03-17)

### Bug Fixes

* invalidate models components cache based on location ([#10764](#10764)) ([fb78dd2](fb78dd2))
* **style:** use container queries for responsive design ([#10763](#10763)) ([e35000e](e35000e))
@swagger-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.32.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

davidanrod pushed a commit to davidanrod/swagger-ui that referenced this pull request Apr 9, 2026
davidanrod pushed a commit to davidanrod/swagger-ui that referenced this pull request Apr 9, 2026
## [5.32.1](swagger-api/swagger-ui@v5.32.0...v5.32.1) (2026-03-17)

### Bug Fixes

* invalidate models components cache based on location ([swagger-api#10764](swagger-api#10764)) ([fb78dd2](swagger-api@fb78dd2))
* **style:** use container queries for responsive design ([swagger-api#10763](swagger-api#10763)) ([e35000e](swagger-api@e35000e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released specification: 3.1 OpenAPI 3.1 specific specification: 3.2 OpenAPI 3.2.x specific type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants