You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function definition for the function with swagger annotations is as follows:
public Response getTopErrors(@Context HttpServletRequest request, @Context UriInfo urlInfo,
@ApiParam(value = "ID of the tenant to filter by", required = true) @QueryParam("tenantId") String tenantId,
@ApiParam(value = "Name of the service to filter by", required = true) @QueryParam("serviceName") String serviceName,
@ApiParam(value = "ID of the component to filter by", required = false) @QueryParam("componentId") String componentId,
@ApiParam(value = "Start timestamp for the lookup time window", required = true) @QueryParam("monitorBeginTime") String monitorBeginTime,
@ApiParam(value = "End timestamp for the lookup time window", required = true) @QueryParam("monitorEndTime") String monitorEndTime,
@ApiParam(value = "The number of top errors to return", required = true) @QueryParam("topCount") int topCount) {
Each of the above @QueryParam has a field required = true | false . The swagger.json generated doesn't takes the field into consideration. In the above function definition the 3rd parameter componentId has the field value for required = false but the swagger.json has the value set to true.
The function definition for the function with swagger annotations is as follows:
Each of the above @QueryParam has a field
required = true | false
. The swagger.json generated doesn't takes the field into consideration. In the above function definition the 3rd parametercomponentId
has the field value forrequired = false
but the swagger.json has the value set to true.Following is the swagger.json:
Thank You!
The text was updated successfully, but these errors were encountered: