-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat:Set /v1/serp/{path} GET/POST operationId to serp_v1_serp__path__get #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -303,7 +303,7 @@ paths: | |||||
| tags: | ||||||
| - serp | ||||||
| summary: Serp | ||||||
| operationId: serp_v1_serp__path__post | ||||||
| operationId: serp_v1_serp__path__get | ||||||
| parameters: | ||||||
| - name: path | ||||||
| in: path | ||||||
|
|
@@ -327,7 +327,7 @@ paths: | |||||
| tags: | ||||||
| - serp | ||||||
| summary: Serp | ||||||
| operationId: serp_v1_serp__path__post | ||||||
| operationId: serp_v1_serp__path__get | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate/misnamed operationId on POST — violates uniqueness and breaks codegen Both GET and POST share Apply: - operationId: serp_v1_serp__path__get
+ operationId: serp_v1_serp__path__post📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| parameters: | ||||||
| - name: path | ||||||
| in: path | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
GET operationId rename looks fine — but only if POST is differentiated
Aligning GET with
serp_v1_serp__path__getis OK. Ensure POST uses a distinct operationId to keep global uniqueness and avoid codegen collisions. See next comment.Quick dup check:
🏁 Script executed:
Length of output: 23
Duplicate operationId 'serp_v1_serp__path__get' found — make operationIds globally unique
The dup-check output shows 'serp_v1_serp__path__get' appears more than once. Rename the POST (or the other duplicated occurrence) so every operationId is unique to avoid codegen collisions.
Occurrence: src/libs/Jina/openapi.yaml:306
🤖 Prompt for AI Agents