feat: upgrade to Swagger UI 5.30.2 and unify URL parameter#3
Merged
Conversation
- Upgrade Swagger UI from 5.10.0 to 5.30.2 to fix OpenAPI 3.x rendering issues - Unify parameter name from 'uri' to 'url' for consistency - Remove CORS proxy functionality (direct loading only) - Remove all test HTML files (compare.html, index-new.html, index-simple.html, test.html, test-latest.html) - Add loading indicator for better UX - Update documentation (README.md & README.zh-TW.md) to reflect changes - Fix GitHub Raw URL format in examples
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.
📝 變更摘要
本次更新將 Swagger UI 升級至 5.30.2 版本,修復了處理 Petstore OpenAPI 3.x 規格時的渲染錯誤,並統一使用
url作為參數名稱,提升整體使用體驗。✨ 主要變更
版本升級
https://petstore3.swagger.io/api/v3/openapi.json的相容性功能調整
✅ 統一參數名稱: 從
?uri=改為?url=✅ 簡化架構: 移除 CORS Proxy 功能
✅ 改善使用體驗:
程式碼優化
compare.htmlindex-new.htmlindex-simple.htmltest.htmltest-latest.html文件更新
🧪 測試
已在本機測試以下情境:
📚 使用範例
新的使用方式
舊的使用方式(已移除)
🔄 Breaking Changes
uri改為url?uri=,需要更新為?url=📋 檔案變更
index.html- 主要程式碼更新README.md- 英文文件更新README.zh-TW.md- 繁體中文文件更新cc @min0625