Skip to content

Conversation

@mmabrouk
Copy link
Member

Summary

  • Exclude deprecated /preview/tracing/* routes from OpenAPI schema to prevent duplicate type declarations
  • Add explicit operation_id to simple evaluations start endpoint to prevent collision with legacy evaluation endpoint

Changes

  1. api/entrypoints/routers.py: Added include_in_schema=False to the deprecated tracing router mount. This keeps the deprecated endpoints functional for backward compatibility while removing them from the OpenAPI spec.

  2. api/oss/src/apis/fastapi/evaluations/router.py: Added operation_id="start_simple_evaluation" to the /{evaluation_id}/start route to avoid collision with the legacy start_evaluation operationId.

Why

These changes fix issues that cause Fern SDK generation to fail:

  • Duplicate type declarations from deprecated endpoints sharing request types with current endpoints
  • OperationId collision between two different evaluation start endpoints

Testing

  • API behavior is unchanged
  • Deprecated endpoints remain functional
  • OpenAPI spec should no longer have duplicate definitions

- Add include_in_schema=False to deprecated /preview/tracing router to prevent duplicate type declarations
- Add explicit operation_id to simple evaluations start endpoint to prevent collision with legacy evaluation endpoint

These changes fix issues that cause Fern SDK generation to fail.
@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jan 15, 2026 1:36pm

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 15, 2026
@mmabrouk mmabrouk requested a review from jp-agenta January 15, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend SDK size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants