-
Notifications
You must be signed in to change notification settings - Fork 131
chore(rivetkit): add actor router to the openapi spec #3441
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
chore(rivetkit): add actor router to the openapi spec #3441
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review: Add Actor Router to OpenAPI SpecSummaryThis PR adds actor router endpoints to the RivetKit OpenAPI specification by manually injecting route definitions into the generated OpenAPI document. The implementation is clean and well-documented. Positive Aspects ✅
Issues & Recommendations1. Object Mutation Pattern (Medium)The function mutates the function injectActorRouter(openApiDoc: any) {
if (!openApiDoc.paths) {
openApiDoc.paths = {};
}
// ... mutations
}Recommendation: Consider using a more explicit pattern or adding a return type to make the mutation intent clearer: function injectActorRouter(openApiDoc: OpenAPIDocument): void {
// ...
}2.
|
1a8edc2 to
898bc9a
Compare
ca5b3f0 to
51a32d6
Compare
|
Deployment failed with the following error: Learn More: https://vercel.com/docs/limits#rate-limits |
PR Review: Add Actor Router to OpenAPI SpecSummaryThis PR adds actor router endpoints to the RivetKit OpenAPI specification by manually injecting route definitions into the generated OpenAPI document. The approach is pragmatic and well-documented. ✅ Strengths
|
Code ReviewThis PR adds actor router endpoints to the OpenAPI specification. Overall, the approach is sound, but there are several important considerations: ✅ Strengths
|
51a32d6 to
ab1c83d
Compare
898bc9a to
82cbd70
Compare
Merge activity
|
PR Review: Add Actor Router to OpenAPI SpecThank you for this contribution! This PR adds actor router endpoints to the OpenAPI specification. Here's my detailed review: Code Quality & Best Practices ✅Strengths:
Areas for Improvement:
Potential Bugs 🐛
Performance Considerations ⚡
Security Concerns 🔒
Test Coverage 🧪Missing:
Recommendations:
Example test structure: describe('dump-openapi', () => {
it('should generate valid OpenAPI 3.0 spec', async () => {
const spec = await generateOpenAPISpec();
// Validate against OpenAPI schema
});
it('should include actor router paths', async () => {
const spec = await generateOpenAPISpec();
expect(spec.paths).toHaveProperty('/gateway/{actorId}/health');
expect(spec.paths).toHaveProperty('/gateway/{actorId}/action/{action}');
expect(spec.paths).toHaveProperty('/gateway/{actorId}/request/{path}');
});
});Documentation 📚Good:
Could be enhanced:
Additional Notes
SummaryThis is a solid PR that adds important API documentation. The main blocker is the missing Recommendation: Request changes to add the missing dependency, then approve with optional suggestions for future improvements. 🤖 Generated with Claude Code |

No description provided.