-
Notifications
You must be signed in to change notification settings - Fork 134
chore(api): formalize /metadata #3563
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: Formalize /metadata EndpointSummaryThis PR formalizes the /metadata endpoint by adding proper OpenAPI documentation, type-safe response structures, and consistent error handling. It also includes cleanup of unused protobuf dependencies and formatting fixes. Code QualityStrengths:
Issues Found: CRITICAL BUG - Wrong HTTP Method in OpenAPI Doc In engine/packages/api-public/src/metadata.rs line 26, the utoipa annotation specifies delete but the actual route is GET /metadata (line 57 in router.rs). This will generate incorrect OpenAPI documentation. Fix: Change line 26 from delete to get Performance Considerations
Security Concerns
Best PracticesMinor Issues:
Dependency Cleanup
Formatting ChangesThe tab indentation changes in various files align with the repository's rustfmt.toml configuration (hard tabs). These are good cleanup changes. Test CoverageNo tests were added for the formalized endpoint. Consider adding:
RecommendationsMust Fix:
Consider:
Overall AssessmentGood refactoring that improves type safety and API documentation. One critical bug needs fixing (wrong HTTP method in OpenAPI doc), but otherwise the implementation follows best practices and repository conventions well. Status: Needs changes before merge |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Merge activity
|

No description provided.