Skip to content

Conversation

@kiwiscode
Copy link

  • Changed app.use(openAPIRouter) to app.use("/api-docs", openAPIRouter")
  • Prevents Swagger UI from interfering with unmatched routes and error propagation
  • Undefined routes now correctly return "Not Found"
  • Global errorHandler middleware now correctly captures all propagated errors

…ctly

- Changed `app.use(openAPIRouter)` to `app.use("/api-docs", openAPIRouter")`
- Prevents Swagger UI from interfering with unmatched routes and error propagation
- Undefined routes now correctly return "Not Found"
- Global errorHandler middleware now correctly captures all propagated errors
- ZodTypeAny is deprecated; using ZodType (without generics) instead
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.

1 participant