-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jaxrs @BeanParam isn't working #618
Comments
Can you share your web.xml? Looking for the swagger configuration. |
We use Spring as well. Here is the BeanConfig
We haven't configured Swagger through web.xml. We use Jersey auto scanning with @Provider annotation. In Jersey ResourceConfig here is the package used for scanning : packages("com.wordnik.swagger.jersey.listing"); |
Try adding this property to the bean: <property name="apiReader" value="com.wordnik.swagger.jersey.JerseyApiReader"/> |
Awesome!!! That fixed the problem. Thank you very much! |
We are using Swagger in our Jersey project
Gradle : com.wordnik:swagger-jersey2-jaxrs_2.10:1.3.7
Jersey : 2.9
/** EmployeeBeanParam.java**/
public class EmployeeBeanParam {
@PathParam(KeyImpl.Constants.EMPLOYEE_ID_VALUE)
String employeeId;
}
Below is the snapshot of SwaggerUI :
The text was updated successfully, but these errors were encountered: