Skip to content

fix: Missing descriptions on Kotlin ByteArray fields #2711

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

GeorgEchterling
Copy link

@GeorgEchterling GeorgEchterling commented Sep 16, 2024

This fixes the issue where information specified via {{@Schema}} annotations on {{ByteArray}} fields was missing if Kotlin transformations were enabled.

As far as I can tell, the code I removed was only necessary as a workaround for swagger-api/swagger-core#3944, which has now been fixed.

I've extended a related test added in #2006 to show that the {{description}} is now present in the generated schema.

Fixes #2275 (The issue is currently closed as wontfix, but I hope you'll accept this fix.)

@bnasslahsen bnasslahsen merged commit db32192 into springdoc:main Sep 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Description missing in generated spec when field type is a byte array
2 participants