fix: invalidate models components cache based on location#10764
Merged
fix: invalidate models components cache based on location#10764
Conversation
robert-hebel-sb
approved these changes
Mar 12, 2026
lukaszzazulak
approved these changes
Mar 13, 2026
swagger-bot
pushed a commit
that referenced
this pull request
Mar 17, 2026
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))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR invalidates cache that is created for
ModelsandModelwrappers 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.