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

KTOR-8074 Add deepLinking configuration variable to Swagger plugin (reopen from main) #4607

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

FredrikMeyer
Copy link
Contributor

Subsystem

Ktor server plugin

Motivation

Customer asked at work if we could provide deeplinks to the Swagger documentation. Found that it was a setting in Javascriptt (https://swagger.io/docs/open-source-tools/swagger-ui/usage/deep-linking/) that was not exposed by the plugin.

Solution

Add a boolean variable to SwaggerConfig to enable deep linking. It defaults to false (which is also the default for SwaggerUI).

Copy link
Member

@osipxd osipxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FredrikMeyer, thank you for your contribution 🚀
Just one minor comment.

…/ktor/server/plugins/swagger/SwaggerConfig.kt

Co-authored-by: Osip Fatkullin <[email protected]>
@osipxd osipxd changed the title Add deepLinking configuration variable to Swagger plugin (reopen from main) KTOR-8074 Add deepLinking configuration variable to Swagger plugin (reopen from main) Jan 16, 2025
@osipxd osipxd enabled auto-merge (squash) January 16, 2025 11:48
@osipxd osipxd merged commit 1e91560 into ktorio:main Jan 16, 2025
12 of 14 checks 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