[API] Fix prevent overwriting modifications for shared paths with multiple methods#17858
[API] Fix prevent overwriting modifications for shared paths with multiple methods#17858GSadee merged 1 commit intoSylius:2.0from
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe pull request updates the documentation modifier for the Accept-Language header. The change introduces a conditional check to ensure that a path item is added only if it is not already present in the path items array. Additionally, it adjusts the assignment logic so that operations are applied to the correct instance of a path item. No public APIs or exported entities have been modified. Changes
Sequence Diagram(s)sequenceDiagram
participant Modifier as AcceptLanguageHeaderDocumentationModifier
participant PathItems as PathItems Array
Modifier->>PathItems: Iterate through each path
alt Path key not set
Modifier->>PathItems: Add new path item with header documentation
else Path key exists
Modifier->>PathItems: Update existing path item with additional operation
end
Assessment against linked issues
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
|
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
|
Thank you @nicolalazzaro! 🎉 |
Summary by CodeRabbit