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 911d018 commit a989c2aCopy full SHA for a989c2a
modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/ResolverCache.java
@@ -159,8 +159,10 @@ else if(rootPath != null) {
159
protected <T> void updateLocalRefs(String file, T result) {
160
if(result instanceof ApiResponse) {
161
ApiResponse response = (ApiResponse) result;
162
- for(String mediaType : response.getContent().keySet()) {
163
- updateLocalRefs(file, response.getContent().get(mediaType).getSchema());
+ if (response.getContent() != null) {
+ for (String mediaType : response.getContent().keySet()) {
164
+ updateLocalRefs(file, response.getContent().get(mediaType).getSchema());
165
+ }
166
}
167
168
if(result instanceof Schema && ((Schema)(result)).get$ref() != null) {
0 commit comments