leonardolima
3 years agoNew Contributor
Child @BeanParam not working after upgrade swagger-jaxrs2-jakarta to 2.2.7
Hi everyone...
I'm in a journey to upgrade swagger-jaxrs2-jakarta 1.6.8 to 2.2.7, I got almost everything working except some object parameters that should be exploded as inputs in the Swagger-ui and them still be interpreted as json input...
In my resource definition I've this method...
Response getContent(@BeanParam MyCustomRequest myRequest);
And them I've the definition of MyCustomRequest
public class MyCustomRequest extends Request {
}
public class Request {
@BeanParam
@Builder.Default
private Pagination pagination = new Pagination();
}
public class Pagination {
@QueryParam("limit")
@DefaultValue("200")
private Integer limit = 200;
@QueryParam("offset")
@DefaultValue("0")
private Integer offset = 0;
}
Using the version: 1.6.8, swagger-ui shows:
After the upgrade...
Anyone already got this issue?? And can help me?
My best regards,
Leonardo Lima