use of io.swagger.v3.core.filter.resources.NoPetRefSchemaFilter in project swagger-core by swagger-api.
the class SpecFilterTest method filterAwayPetRefInSchemas.
@Test(description = "it should filter any Pet Ref in Schemas")
public void filterAwayPetRefInSchemas() throws IOException {
final OpenAPI openAPI = getOpenAPI(RESOURCE_PATH);
final OpenAPI filtered = new SpecFilter().filter(openAPI, new NoPetRefSchemaFilter(), null, null, null);
validateSchemasInComponents(filtered.getComponents(), PET_MODEL);
}
Aggregations