Skip to content

Commit 2b38f5c

Browse files
committed
Fix for issue 918
Considering examples too
1 parent 4ff3854 commit 2b38f5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/ResolverFully.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ public void resolvePath(PathItem pathItem){
171171
for (Map.Entry<String, Header> header : headers.entrySet()) {
172172
Header value = header.getValue();
173173
Header resolvedValue = value.get$ref() != null ? resolveHeader(value) : value;
174+
Map<String, Example> examples = resolvedValue.getExamples();
175+
if(examples != null) {
176+
Map<String,Example> resolved = resolveExample(examples);
177+
resolvedValue.setExamples(resolved);
178+
}
174179
header.setValue(resolvedValue);
175180
}
176181
}

0 commit comments

Comments
 (0)