Skip to content

Commit 47e9f66

Browse files
committed
fixes OAS 3.1 dereferencing
1 parent 3f51a62 commit 47e9f66

File tree

5 files changed

+743
-2
lines changed

5 files changed

+743
-2
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/reference/DereferencerContext.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class DereferencerContext {
2020
protected SwaggerParseResult swaggerParseResult;
2121
protected boolean addParametersToEachOperation = true;
2222
protected String currentUri;
23+
protected Map<String, String> idsCache = new LinkedHashMap<>();
2324

2425
private Map<String, Reference> referenceSet = new LinkedHashMap<>();
2526

@@ -115,6 +116,19 @@ public DereferencerContext referenceSet(Map<String, Reference> referenceSet) {
115116
return this;
116117
}
117118

119+
public Map<String, String> getIdsCache() {
120+
return idsCache;
121+
}
122+
123+
public void setIdsCache(Map<String, String> idsCache) {
124+
this.idsCache = idsCache;
125+
}
126+
127+
public DereferencerContext idsCache(Map<String, String> idsCache) {
128+
this.idsCache = idsCache;
129+
return this;
130+
}
131+
118132
public DereferencerContext rootUri(String rootUri) {
119133
this.rootUri = rootUri;
120134
return this;

0 commit comments

Comments
 (0)