Repository navigation
fix(axios-sdk): 保留已声明路径参数的调用顺序并准备 3.3.1 - #221
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #221 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 29 29
Lines 3149 3150 +1
Branches 1025 1025
=======================================
+ Hits 3137 3138 +1
Misses 12 12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
当路由为 /:first/:second,而 params schema 按 { second, first } 声明时,已有 SDK 的调用方式是 method(second, first)。#219 整合中的路径提取统一把形参改成路由顺序,旧调用会真实请求 /second/first。发布前补查已通过完整生成的 ESM SDK 与 HTTP 请求复现此回归,3.3.0 尚未打 tag 或发布。
本修复保留 params schema 全部已声明字段的原有位置和顺序,再追加未声明的路径参数;所有绑定继续使用避撞规则。OpenAPI 仍只列出路由模板中实际存在的 path parameter,不受 SDK 兼容形参影响。
这是 #195/#219 的发布前兼容性补正,原五个 PR 已按指定顺序合并。本 PR 通过 CI 后合入,再核验最终 main CI/变异基线并使用既有 OIDC 流程发布;Dependabot 配置草稿仍在发布和线上核验完成后单独处理。