Skip to content

Use Publisher as response wrapper to ignore instead of Mono #1290

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

Conversation

sokomishalov
Copy link
Contributor

More abstract way to cover wrappers since spring supports any Publisher implementation.
My main concern is that Flux is also Publisher implementation and if it could break something.

Copy link
Collaborator

@bnasslahsen bnasslahsen left a comment

Choose a reason for hiding this comment

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

review in progress ...

@bnasslahsen
Copy link
Collaborator

@sokomishalov,

Your change is creating many regressions.
Please make sure, you add a test related to your code changes as well.

@sokomishalov sokomishalov force-pushed the feature/use-publisher-as-response-type-wrapper branch 4 times, most recently from d7d384e to 7303555 Compare October 18, 2021 14:22
@sokomishalov
Copy link
Contributor Author

@bnasslahsen added a test to cover changes.

@bnasslahsen
Copy link
Collaborator

@sokomishalov,

Tests for webflux-core are still failing.

@sokomishalov sokomishalov force-pushed the feature/use-publisher-as-response-type-wrapper branch from 7303555 to 865e47f Compare October 18, 2021 16:20
@sokomishalov
Copy link
Contributor Author

sokomishalov commented Oct 18, 2021

@bnasslahsen my bad, but failing tests occurred because of the fix - actuator's endpoints have return type Publisher<ResponseEntity<Object>>, which is a double-wrapped type of Object.

@bnasslahsen bnasslahsen merged commit b3f258b into springdoc:master Oct 19, 2021
@sokomishalov sokomishalov deleted the feature/use-publisher-as-response-type-wrapper branch October 19, 2021 10:35
@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants