We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a976ee7 commit 9c01884Copy full SHA for 9c01884
http-generator-core/src/main/java/io/avaje/http/generator/core/openapi/SchemaDocBuilder.java
@@ -165,7 +165,10 @@ private Schema<?> buildEnumSchema(Element e) {
165
.forEach(ec -> schema.addEnumItem(ec.getSimpleName().toString()));
166
167
var doc = Javadoc.parse(elements.getDocComment(e));
168
- schema.setDescription(doc.getDescription());
+ var desc = doc.getDescription();
169
+ if (desc != null && !desc.isEmpty()) {
170
+ schema.setDescription(desc);
171
+ }
172
return schema;
173
}
174
0 commit comments