use of io.swagger.v3.core.model.ApiDescription in project swagger-core by swagger-api.
the class SpecFilter method filterPathItem.
protected PathItem filterPathItem(OpenAPISpecFilter filter, PathItem pathItem, String resourcePath, Map<String, List<String>> params, Map<String, String> cookies, Map<String, List<String>> headers) {
ApiDescription description = new ApiDescription(resourcePath, null);
Optional<PathItem> filteredPathItem = filter.filterPathItem(pathItem, description, params, cookies, headers);
if (filteredPathItem.isPresent()) {
return filteredPathItem.get();
}
return null;
}
Aggregations