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 support kotlin Flow as response type #560

Closed
DVMaslov opened this issue Apr 12, 2020 · 3 comments
Closed

Add support kotlin Flow as response type #560

DVMaslov opened this issue Apr 12, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@DVMaslov
Copy link

example:

fun list(): kotlinx.coroutines.flow.Flow = ...
@bnasslahsen
Copy link
Contributor

@DVMaslov,

You can have a look at the contribution guide (section Using GitHub Issues) before opening any feature or bug request:

If you provide a complete description, your ticket will be reopened.

@DVMaslov
Copy link
Author

versions
spring boot 2.2.6
webFlux
// springdoc dependencies
implementation("org.springdoc:springdoc-openapi-webflux-ui:1.3.1")
implementation("org.springdoc:springdoc-openapi-kotlin:1.3.1")

I use kotlin coroutines in my WebFlux application:
https://spring.io/blog/2019/04/12/going-reactive-with-spring-coroutines-and-kotlin-flow

So I use Flow instead of Flux.

Expected behaviour:
Flow is represented in swagger similarly to Flux

@bnasslahsen
Copy link
Contributor

@DVMaslov,

The support is now add. You can validate it with the last SNAPSHOT:

It will be available for the next release v1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants