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 d5c3728 commit 95c8253Copy full SHA for 95c8253
modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java
@@ -1384,7 +1384,10 @@ public static Optional<Header> getHeader(io.swagger.v3.oas.annotations.headers.H
1384
if (resolvedSchema.schema != null) {
1385
headerObject.setSchema(resolvedSchema.schema);
1386
}
1387
- resolvedSchema.referencedSchemas.forEach(components::addSchemas);
+ if (resolvedSchema.referencedSchemas != null && components != null) {
1388
+ resolvedSchema.referencedSchemas.forEach(components::addSchemas);
1389
+ }
1390
+
1391
1392
1393
if (hasArrayAnnotation(header.array())){
0 commit comments