Skip to content

Commit

Permalink
change specFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Sep 27, 2021
1 parent a1cb7b5 commit 106ba31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import io.swagger.oas.inflector.config.OpenAPIProcessor;
import io.swagger.oas.inflector.utils.VendorSpecFilter;
import io.swagger.v3.core.filter.OpenAPISpecFilter;
import io.swagger.v3.core.filter.SpecFilter;
import io.swagger.v3.core.util.Json;
import io.swagger.v3.oas.models.OpenAPI;
import org.glassfish.jersey.process.Inflector;
Expand Down Expand Up @@ -72,8 +73,7 @@ public Response apply(ContainerRequestContext arg0) {

MultivaluedMap<String, String> headers = arg0.getHeaders();
// since https://github.com/swagger-api/swagger-inflector/issues/305 filtering of inflector extensions is handled at init time by ExtensionsUtils, and VendorSpecFilter is not needed anymore
return Response.ok().entity(new VendorSpecFilter().filter(getOpenAPI(), filter, null, cookies, headers)).build();
//return Response.ok().entity(getOpenAPI()).build();
return Response.ok().entity(new SpecFilter().filter(getOpenAPI(), filter, null, cookies, headers)).build();
}
return Response.ok().entity(getOpenAPI()).build();
}
Expand Down

0 comments on commit 106ba31

Please sign in to comment.