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

Add deepLinking configuration variable to Swagger plugin #4560

Closed
wants to merge 23 commits into from

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).

osipxd and others added 20 commits December 19, 2024 10:18
* Use stdlib `use` extension-function
* Update type checks
…torio#4411)

* Drop `jvmAndNix` shared source set
* Commonize `ktor-network` and `ktor-network-tls`
* Support TCP and Unix sockets for wasm-js and js on Node
* Move `supportsUnixDomainSockets` to posix and use Platform instead of expect/actual
* Support multiple client engines for JS/WasmJs
* CIO client Js/WasmJs support
* Enable CIO tests in client tests
* Make client engines `data object` to have `toString`
* Make ClientLoader work with multiple engines on js/wasmJs and so test CIO engine on nodejs(js+wasmJs)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Test libcurl build with conan

* Take both curl and openssl from the same build

* test no linux cache

* Move K/N linux cache disabling to just `ktor-client-curl` module
Some services use 403 instead of 401. Changing them might be impossible. With this change Ktor can flexibly work with any broken service.

---------

Co-authored-by: Osip Fatkullin <[email protected]>
* KTOR-7679 Allow disabling body decoding on server
…EmbeddedServer.stop (ktorio#4481)

* Add startSuspend/stopSuspend in EmbeddedServer
* Make EngineTestBase work on js/wasmJs
@bjhham bjhham changed the base branch from main to 3.1.0-eap December 30, 2024 14:02
@osipxd osipxd force-pushed the 3.1.0-eap branch 2 times, most recently from 58d30df to 7a3736b Compare January 8, 2025 11:26
@osipxd osipxd force-pushed the 3.1.0-eap branch 3 times, most recently from 2c3b4d8 to 4a59355 Compare January 9, 2025 14:59
@osipxd osipxd deleted the branch ktorio:3.1.0-eap January 9, 2025 15:50
@osipxd osipxd closed this Jan 9, 2025
@osipxd osipxd self-requested a review January 9, 2025 17:01
@osipxd
Copy link
Member

osipxd commented Jan 9, 2025

@FredrikMeyer, could you please reopen this PR from main? It was accidentally closed after merging and deletion of 3.1.0-eap branch

@FredrikMeyer
Copy link
Contributor Author

@osipxd I see. I remade the PR here: #4607 (test still running, will try to fix if any fails)

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.

10 participants