Skip to content

Commit

Permalink
Merge pull request #4733 from swagger-api/SWG-11909-fix-NPE-swagger-m…
Browse files Browse the repository at this point in the history
…aven-plugin

fix-SWG-11909-NPE during webhooks processing with <convertToOpenAPI31>
  • Loading branch information
micryc authored Sep 11, 2024
2 parents 1859ee6 + e0838d0 commit b1a38d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public OpenAPI filter(OpenAPI openAPI, OpenAPISpecFilter filter, Map<String, Lis

if (filteredOpenAPI.getWebhooks() != null) {
for (String resourcePath : filteredOpenAPI.getWebhooks().keySet()) {
PathItem pathItem = filteredOpenAPI.getPaths().get(resourcePath);
PathItem pathItem = filteredOpenAPI.getWebhooks().get(resourcePath);

PathItem filteredPathItem = filterPathItem(filter, pathItem, resourcePath, params, cookies, headers);
PathItem clonedPathItem = cloneFilteredPathItem(filter,filteredPathItem, resourcePath, params, cookies, headers, allowedTags, filteredTags);
Expand Down

0 comments on commit b1a38d6

Please sign in to comment.