Skip to content
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

Bug: excludeTags does not exclude a route from OpenAPI / Scalar #129

Open
Flaque opened this issue Jun 22, 2024 · 0 comments
Open

Bug: excludeTags does not exclude a route from OpenAPI / Scalar #129

Flaque opened this issue Jun 22, 2024 · 0 comments

Comments

@Flaque
Copy link

Flaque commented Jun 22, 2024

Overview

In the example below, I would expect the /hideme route to be hidden, because it has the excluded tag.

import swagger from "@elysiajs/swagger";
import Elysia from "elysia";

const app = new Elysia();

app
    .get("/hideme", "hidden", {
        tags: ["excluded"],
    })
    .get("/showme", "shown")
    .use(swagger({
        excludeTags: ["excluded"],
    }));

app.listen(3001);

However, it still appears in the Scalar documentation at /swagger.

Screenshot 2024-06-22 at 12 17 23 PM

Versions

This is on the following versions:

"@elysiajs/swagger": "^1.0.5",
"elysia": "^1.0.25",
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