Skip to content

Conversation

@HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Sep 16, 2025

Summary by CodeRabbit

  • Deprecations

    • Several API endpoints are now marked as deprecated in the specification, signaling upcoming removal in a future release.
    • The parameters “search_queries_only” and the list parameter referencing “ChatConnector” items are now deprecated.
    • Clients may see deprecation warnings in generated SDKs and documentation.
  • Documentation

    • OpenAPI documentation updated to surface deprecation flags for affected endpoints and parameters, improving visibility in API explorers and tooling.

@coderabbitai
Copy link

coderabbitai bot commented Sep 16, 2025

Walkthrough

Adds deprecated: true flags in src/libs/Cohere/openapi.yaml for two parameters and multiple operations (11 endpoints). No other schema content or behavior is modified.

Changes

Cohort / File(s) Summary of Changes
Parameter deprecations
src/libs/Cohere/openapi.yaml
Marked two parameters as deprecated: the array parameter whose items reference ChatConnector, and search_queries_only.
Operation deprecations
src/libs/Cohere/openapi.yaml
Added deprecated: true to 11 operation entries (set before x-fern-audiences), deprecating those endpoints.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • github-actions

Poem

I thump my paws: “Deprecated, noted!”
Endpoints tagged, their sunsets quoted.
Two params bow, eleven routes fade—
In YAML fields, the marks are laid.
I hop along the changelog trail,
Ears up high, no tests to fail. 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title "feat:@coderabbitai" is vague and does not describe the primary change; the PR actually updates src/libs/Cohere/openapi.yaml to mark multiple operations (11 occurrences) and two parameters as deprecated, so the current title fails to convey scope or intent to reviewers scanning history. A clear title should summarise the main change so teammates can understand the purpose at a glance. As written, the title is not informative enough to be useful in the project history. Please rename the pull request to a concise, descriptive title that highlights the main change (for example: "chore(openapi): mark Cohere operations and parameters as deprecated" or "docs(cohere-openapi): deprecate multiple endpoints and parameters") and remove the bot tag so the title clearly communicates intent to reviewers and in repository history.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bot/update-openapi_202509160329

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@HavenDV HavenDV enabled auto-merge (squash) September 16, 2025 03:30
@coderabbitai coderabbitai bot changed the title feat:@coderabbitai feat:Add deprecated:true to 2 params and 11 ops in Cohere openapi.yaml Sep 16, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (8)
src/libs/Cohere/openapi.yaml (8)

63-69: Confirm deprecation scope for the connectors array.

Placing deprecated: true at this schema level deprecates the entire array property (i.e., the parameter as a whole), not the referenced ChatConnector schema nor specific item values. If the intent is to retire only certain connector IDs or the ChatConnector type, adjust accordingly (e.g., deprecate enum values or the referenced schema).

Consider appending a brief deprecation note with the recommended alternative and, optionally, a vendor extension like x-sunset: 'YYYY-MM-DD' for clarity. Do you want me to propose a targeted diff once the intended replacement is confirmed?


168-174: Deprecating search_queries_only is fine; add guidance for clients.

Marking the property as deprecated is non‑breaking, but client SDKs will start warning. Add a short sentence in the description with the alternative flag/flow and, optionally, a x-sunset/x-deprecation-reason vendor extension to aid codegen and docs.

Also verify that examples and request samples in this spec (and docs) stop showcasing this field to avoid mixed signals.


1128-1134: LGTM — correct operation-level deprecation.

Add a brief “Use ” note if available to reduce ambiguity in generated docs.


1198-1204: LGTM — deprecation applied consistently.

If an EOL date exists, consider x-sunset to signal timelines.


1343-1349: LGTM.

Consider adding a deprecation sentence in the operation description for clarity in rendered docs.


1501-1507: LGTM.

No action needed; optional doc note as above.


7178-7184: LGTM.

Final nit: if examples remain under x-fern-examples for this op, consider tagging them deprecated or adding a replacement example.


1004-1010: Operation marked deprecated; include migration hint and (optionally) a sunset.

This is valid OAS placement. Consider adding a one‑liner in the operation description pointing to the replacement endpoint and optionally x-sunset for downstream tooling.

Run to inventory all deprecations and spot any lingering examples that still reference deprecated ops/params:

#!/bin/bash
set -euo pipefail
file=src/libs/Cohere/openapi.yaml

echo "All deprecated entries (with context):"
rg -nC2 '^\s*deprecated:\s*true' "$file"

echo -e "\nProbable operation-level deprecations (near responses/operationId):"
rg -nC3 -U '(?s)^\s*(get|post|put|patch|delete):.*?\n\s*deprecated:\s*true' "$file"

echo -e "\nCheck examples referencing deprecated params:"
rg -n 'search_queries_only|connectors' "$file" -n -C2
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 111c2a6 and b69be74.

⛔ Files ignored due to path filters (21)
  • src/libs/Cohere/Generated/Cohere.CohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Classify.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Generate.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Summarize.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.CreateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.ListConnectors.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.OAuthAuthorizeConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ConnectorsClient.UpdateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Classify.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Generate.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Summarize.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.CreateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.DeleteConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.GetConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.ListConnectors.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.OAuthAuthorizeConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.IConnectorsClient.UpdateConnector.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs is excluded by !**/generated/**
📒 Files selected for processing (1)
  • src/libs/Cohere/openapi.yaml (11 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Test / Build, test and publish
🔇 Additional comments (3)
src/libs/Cohere/openapi.yaml (3)

1271-1277: Looks good.

No schema impact beyond signaling; ensure server continues to serve these until removal.


1421-1427: LGTM.

Confirm that SDK generation (Fern or others) consumes deprecated as expected and doesn’t accidentally hide critical endpoints before the replacement is broadly available.


6623-6629: LGTM.

Maintain consistency: if some sibling operations on the same path are deprecated, verify all intended ones are marked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants