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

feat: add hide props in detail types for hide route from OpenAPI/swagger document #763

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

kravetsone
Copy link
Contributor

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-swagger#137

Close/helps #412

@kravetsone kravetsone changed the title feat: add hide props in detail types for https://github.com/elysi… feat: add hide props in detail types for hide route from OpenAPI/swagger document Aug 2, 2024
@ghost
Copy link

ghost commented Aug 9, 2024

@SaltyAom

@SaltyAom SaltyAom merged commit a7ebfa4 into elysiajs:main Aug 12, 2024
1 check passed
@kravetsone
Copy link
Contributor Author

I'm happy, thank @SaltyAom! I hope in the future you will have more time for your favorite Elysia

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