Skip to content

Commit 7ecec30

Browse files
committed
Allow VendorExtensions to process @context params
Currently, parameters that have @context annotation are ignored by the Reader. This is fine for automatically processed parameters, but with Vendor Extensions, it would be nice to be able to extend the model with additional parameter information for these parameters.
1 parent 400662d commit 7ecec30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/ParameterProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ParameterProcessor {
3535

3636
public static Parameter applyAnnotations(Swagger swagger, Parameter parameter, Type type, List<Annotation> annotations) {
3737
final AnnotationsHelper helper = new AnnotationsHelper(annotations);
38-
if (helper.isContext()) {
38+
if (helper.isContext() && parameter.getVendorExtensions().isEmpty()) {
3939
return null;
4040
}
4141
final ParamWrapper<?> param = helper.getApiParam();

0 commit comments

Comments
 (0)