Skip to content

Commit c33fa56

Browse files
authored
Merge branch 'master' into constant
2 parents ea84cc2 + 7f2cc8d commit c33fa56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/openapi/SchemaDocBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ private <T> void populateObjectSchema(TypeMirror objectType, Schema<T> objectSch
250250
Schema<?> propSchema = toSchema(field.asType());
251251
if (isNotNullable(field)) {
252252
propSchema.setNullable(Boolean.FALSE);
253+
objectSchema.addRequiredItem(field.getSimpleName().toString());
253254
}
254255
setDescription(field, propSchema);
255256
setLengthMinMax(field, propSchema);

0 commit comments

Comments
 (0)