-
Notifications
You must be signed in to change notification settings - Fork 130
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
base: 11-10-fix_rivetkit_skip_sending_rivetkit_messages_to_conns_that_do_not_support_it
Are you sure you want to change the base?
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.
|

No description provided.