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

if multiple JsonBodyWritter picks the one which is writable #9789

Merged
merged 6 commits into from Aug 30, 2023
Merged

Conversation

sdelamo
Copy link
Collaborator

@sdelamo sdelamo commented Aug 28, 2023

currently, first will be picked even if isWritable returns false

related to: micronaut-projects/micronaut-views#590

@sdelamo sdelamo marked this pull request as ready for review August 28, 2023 17:20
@sdelamo sdelamo added the type: bug Something isn't working label Aug 28, 2023
@sdelamo sdelamo added this to the 4.1.3 milestone Aug 28, 2023
@yawkat
Copy link
Member

yawkat commented Aug 29, 2023

ive refactored the nested stream a bit to make it more readable (imo)

@sdelamo
Copy link
Collaborator Author

sdelamo commented Aug 29, 2023

ive refactored the nested stream a bit to make it more readable (imo)

it looks good to me. However, I have added a commit to protect against an empty list:

bf9cfb9

@yawkat
Copy link
Member

yawkat commented Aug 29, 2023

i did too :D

@sonarcloud
Copy link

sonarcloud bot commented Aug 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

77.8% 77.8% Coverage
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 71759e6 into 4.1.x Aug 30, 2023
8 checks passed
@sdelamo sdelamo deleted the findwritter branch August 30, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants