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

Exclude routes with details.hide: true from OpenAPI/swagger file #137

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

kravetsone
Copy link
Contributor

@kravetsone kravetsone commented Aug 2, 2024

Exclude from OpenAPI/swagger file routes with inspired by @fastify/swagger hide paths

detail: {
    hide: true
}

example

const app = new Elysia()
                        .use(swagger())
			.get("/public", "omg")
			.guard({
				detail: {
					hide: true
				}
			})
			.get("/hidden", "ok")

Should be merged with elysiajs/elysia#763

Close/helps elysiajs/elysia#412

kravetsone added a commit to kravetsone/elysia that referenced this pull request Aug 2, 2024
@marclave marclave self-requested a review August 3, 2024 02:02
@marclave marclave merged commit 5303809 into elysiajs:main Aug 3, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants