-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat:Update OpenAPI operationId for /v1/serp/{path} GET and POST #632
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. Fix duplicate operationId on POST (must be unique). OpenAPI requires operationId to be unique across all operations; reusing the GET id will break codegen. Rename POST’s id to the method-specific variant to match your existing convention. Apply this diff: summary: Serp
- 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
Duplicate operationId violates OpenAPI uniqueness; keep GET as-is.
This operationId is fine for GET. The problem is POST below reuses the same id.
Run to confirm duplicates:
🏁 Script executed:
Length of output: 148
🏁 Script executed:
Length of output: 3747
Duplicate operationId violates OpenAPI uniqueness; keep GET as-is.
serp_v1_serp__path__get is defined twice in src/libs/Jina/openapi.yaml (lines 306 and 330). Keep the GET occurrence (line 306) and rename the other operationId to a unique name (e.g. serp_v1_serp__path__post); update any references.
🤖 Prompt for AI Agents