use of io.swagger.v3.core.filter.resources.NoPathItemFilter in project swagger-core by swagger-api.
the class SpecFilterTest method filterAwayPathItemWithoutRef.
@Test(description = "it should filter any PathItem objects without Ref")
public void filterAwayPathItemWithoutRef() throws IOException {
final OpenAPI openAPI = getOpenAPI(RESOURCE_PATH);
final OpenAPI filtered = new SpecFilter().filter(openAPI, new NoPathItemFilter(), null, null, null);
assertEquals(0, filtered.getPaths().size());
}
Aggregations