Skip to content

Conversation

@westse
Copy link
Contributor

@westse westse commented Sep 6, 2023

import io.swagger.v3.oas.annotations.media.Schema;

@Schema
public class Cat implements Animal {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notice missing class Javadoc (and no explicit description set on @Schema), which should translate to null Schema.description

@westse westse marked this pull request as ready for review September 6, 2023 22:48
@bnasslahsen
Copy link
Collaborator

@westse,

Thank you for your contribution to the project.

@bnasslahsen bnasslahsen merged commit 5ec10ac into springdoc:main Oct 15, 2023
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this pull request May 17, 2025
No empty description for polymorphic subtypes
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.

Empty schema description if polymorphic subtype missing Javadoc

2 participants