question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger doc still shows routes that are excluded

See original GitHub issue

Problem

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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Jensderondcommented, Jan 27, 2020

Removed dist and node_modules folders and the problem is gone 👍

1reaction
Jensderondcommented, Jan 27, 2020

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 😢

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found