forked from loafle/openapi-generator-original
[Spring][Java] fix support of long values for @Max and @Min annotations (#7227)
* add support of long values for @Max and @Min annotations * run shell scripts for java and spring * fix import issue after running shell script
This commit is contained in:
committed by
William Cheng
parent
f7779c545e
commit
c7f12d6c2d
@@ -56,7 +56,7 @@ public interface StoreApi {
|
||||
@RequestMapping(value = "/store/order/{order_id}",
|
||||
produces = { "application/xml", "application/json" },
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<Order> getOrderById(@Min(1) @Max(5) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId);
|
||||
ResponseEntity<Order> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId);
|
||||
|
||||
|
||||
@ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", })
|
||||
|
||||
@@ -57,7 +57,7 @@ public class StoreApiController implements StoreApi {
|
||||
return new ResponseEntity<Map<String, Integer>>(HttpStatus.NOT_IMPLEMENTED);
|
||||
}
|
||||
|
||||
public ResponseEntity<Order> getOrderById(@Min(1) @Max(5) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) {
|
||||
public ResponseEntity<Order> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("order_id") Long orderId) {
|
||||
String accept = request.getHeader("Accept");
|
||||
if (accept != null && accept.contains("application/xml")) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user