0

Actual Result: endDate comes first then startDate comes next.

Expected Result: startDate comes first then endDate.

Is there any way to specify the requestParameter order?

This is the Actual Result

public ResponseEntity<ByteArrayResource> getDetails(
    @NotEmpty(message = UIMessages.MUST_NOT_BE_EMPTY) @RequestParam(
      value = "startDate") final String startDate,
    @NotEmpty(message = UIMessages.MUST_NOT_BE_EMPTY) @RequestParam(
      value = "endDate") final String endDate,
final HttpServletRequest request) throws IOException {
   //statements
}

This is the swagger UI actual result

Dorian349
  • 1,521
  • 1
  • 9
  • 18
Suji RJ
  • 11
  • 2
  • Does this answer your question? [Swagger UI custom order of endpoint parameters](https://stackoverflow.com/questions/69119337/swagger-ui-custom-order-of-endpoint-parameters) – derpirscher Jun 08 '22 at 22:04
  • Not get a proper solution. Is that because of moving on Java8 compiler is that order changed? – Suji RJ Jun 09 '22 at 15:44

0 Answers0