Swagger doc still shows routes that are excluded
See original GitHub issueProblem
With the following configuration in my controller, my swagger documentation still shows all Create Update and Delete routes.
CatController.ts
@Crud({
model: {
type: Cat,
},
routes: {
only: ['getOneBase', 'getManyBase']
},
})
Versions:
- @nestjs/typeorm: “^6.2.0”
- @nestjsx/crud: “^4.4.1”
- @nestjsx/crud-typeorm: “^4.4.1”
- typeorm: “^0.2.22”
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
`l5-swagger.paths.excludes` not working. · Issue #208 - GitHub
Paths specified in l5-swagger.paths.excludes are not considered when generating the API Doc. Exluded paths still get included in the doc.
Read more >Fastify Swagger - Exclude certain routes - Stack Overflow
I know this can be done within the schema by specifing hide: true , but it would be useful to exclude routes by...
Read more >Hiding Endpoints From Swagger Documentation in Spring Boot
In this short article, we'll have a look at how we can hide endpoints from Swagger API documentation. To achieve this, we'll be...
Read more >OpenAPI Specification - Version 3.0.3 - Swagger
The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.
Read more >F.A.Q - Springdoc-openapi
Otherwise, the swagger documentation will not show the fields of the annotated entity. How to Integrate Open API 3 with Spring project (not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Removed dist and node_modules folders and the problem is gone 👍
Hmm, indeed. While creating a demo repository I cannot reproduce the problem, even when I copy/paste the exact module/controller/services. Closing this for now! Sorry for wasting your time 😢