asteasolutions / zod-to-openapi

A library that generates OpenAPI (Swagger) docs from Zod schemas
MIT License
997 stars 61 forks source link

Question: How does one add a catch-all 404 for undocumented endpoints? #261

Closed Harushii18 closed 1 month ago

Harushii18 commented 2 months ago

It seems to be returning the swagger page for undocumented endpoints. Not sure if it's due to this code, as I am using a boilerplate that implements this library. Link to boilerplate: https://github.com/edwinhern/express-typescript-2024

AGalabov commented 1 month ago

@Harushii18 I am not familiar with this template. We do not personally engage with "returning a page" so I highly doubt that the problem is directly with our library. If you have a working example of what breaks from within our library - please share it. If not - contact the maintainer of express-typescript-2024.

I will close this issue for now but feel free to reopen it if you have a concrete example of something that we are not supporting correctly