diff --git a/modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/ParameterProcessor.java b/modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/ParameterProcessor.java index 331c83e38c..431c2e8610 100644 --- a/modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/ParameterProcessor.java +++ b/modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/ParameterProcessor.java @@ -33,7 +33,7 @@ public class ParameterProcessor { public static Parameter applyAnnotations(Swagger swagger, Parameter parameter, Type type, List annotations) { final AnnotationsHelper helper = new AnnotationsHelper(annotations); - if (helper.isContext()) { + if (helper.isContext() && parameter.getVendorExtensions().isEmpty()) { return null; } final ParamWrapper param = helper.getApiParam();