fix description in allOf with single item (#17560)

This commit is contained in:
William Cheng 2024-01-09 11:37:50 +08:00 committed by GitHub
parent f36659114b
commit 210044eb8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4201,6 +4201,9 @@ public class DefaultCodegen implements CodegenConfig {
if (original.getDeprecated() != null) { if (original.getDeprecated() != null) {
property.deprecated = p.getDeprecated(); property.deprecated = p.getDeprecated();
} }
if (original.getDescription() != null) {
property.description = p.getDescription();
}
} }
// set the default value // set the default value