Skip to content

issue with routers regexp #18

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

Open
ahmedrowaihi opened this issue Feb 26, 2025 · 0 comments
Open

issue with routers regexp #18

ahmedrowaihi opened this issue Feb 26, 2025 · 0 comments

Comments

@ahmedrowaihi
Copy link

ahmedrowaihi commented Feb 26, 2025

how to remove the that regexp from each router starter ?

"express": "^4.17.3,"
"express-zod-openapi-autogen": "^6.0.0"

my code is kinda:

/**
* const otherRouter = express.router()
* otherRouter.get('/', ...)
*/
import { otherRouter } from './routers/other'


const mainRouter = express.router()
mainRouter.use('/other', otherRouter)


 const swaggerDoc = buildOpenAPIDocument({
            routers: [mainRouter],
          // ...
        })

example:

/ping\/?(?=\/|$)/i/

expected:

/ping/

Image
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

No branches or pull requests

1 participant