Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{! PathParam is always required }}@NotNull {{>beanValidationCore}}
{{! PathParam is always required, no @NotNull necessary }}{{>beanValidationCore}}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public interface DefaultApi {
value = DefaultApi.PATH_GET
)
ResponseEntity<Void> get(
@NotNull @ApiParam(value = "A date path parameter", required = true, defaultValue = "1972-01-01") @PathVariable("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@ApiParam(value = "A date path parameter", required = true, defaultValue = "1972-01-01") @PathVariable("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@NotNull @ApiParam(value = "A date-time query parameter", required = true, defaultValue = "1973-12-19T03:39:57-08:00") @Valid @RequestParam(value = "dateTime", required = true, defaultValue = "1973-12-19T03:39:57-08:00") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime dateTime,
@NotNull @ApiParam(value = "A date header parameter", required = true, defaultValue = "1974-01-01") @RequestHeader(value = "X-Order-Date", required = true, defaultValue = "1974-01-01") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate xOrderDate,
@ApiParam(value = "A date cookie parameter", defaultValue = "1975-01-01") @CookieValue(name = "loginDate", required = false, defaultValue = "1975-01-01") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate loginDate
Expand Down Expand Up @@ -80,7 +80,7 @@ ResponseEntity<Void> get(
consumes = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@NotNull @ApiParam(value = "A date path parameter", required = true, defaultValue = "1970-01-01") @PathVariable("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@ApiParam(value = "A date path parameter", required = true, defaultValue = "1970-01-01") @PathVariable("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@ApiParam(value = "Updated last visit timestamp", defaultValue = "1971-12-19T03:39:57-08:00") @Valid @RequestParam(value = "visitDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime visitDate
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ResponseEntity<Void> addPet(
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@NotNull @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey
);

Expand Down Expand Up @@ -204,7 +204,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@NotNull @Parameter(name = "petId", deprecated = true, description = "ID of pet to return", required = true, in = ParameterIn.PATH) @PathVariable("petId") @Deprecated Long petId
@Parameter(name = "petId", deprecated = true, description = "ID of pet to return", required = true, in = ParameterIn.PATH) @PathVariable("petId") @Deprecated Long petId
);


Expand Down Expand Up @@ -270,7 +270,7 @@ ResponseEntity<Void> updatePet(
consumes = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@NotNull @Parameter(name = "petId", description = "ID of pet that needs to be updated", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "petId", description = "ID of pet that needs to be updated", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "name", description = "Updated name of the pet") @Valid @RequestParam(value = "name", required = false) String name,
@Parameter(name = "status", description = "Updated status of the pet") @Valid @RequestParam(value = "status", required = false) String status
);
Expand Down Expand Up @@ -307,7 +307,7 @@ ResponseEntity<Void> updatePetWithForm(
consumes = "multipart/form-data"
)
ResponseEntity<ModelApiResponse> uploadFile(
@NotNull @Parameter(name = "petId", description = "ID of pet to update", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "petId", description = "ID of pet to update", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId,
@Parameter(name = "additionalMetadata", description = "Additional data to pass to server") @Valid @RequestParam(value = "additionalMetadata", required = false) String additionalMetadata,
@Parameter(name = "file", description = "file to upload") @RequestPart(value = "file", required = false) MultipartFile file
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public interface StoreApi {
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@NotNull @Parameter(name = "orderId", description = "ID of the order that needs to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("orderId") String orderId
@Parameter(name = "orderId", description = "ID of the order that needs to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("orderId") String orderId
);


Expand Down Expand Up @@ -125,7 +125,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@NotNull @Min(value = 1L) @Max(value = 5L) @Parameter(name = "orderId", description = "ID of pet that needs to be fetched", required = true, in = ParameterIn.PATH) @PathVariable("orderId") Long orderId
@Min(value = 1L) @Max(value = 5L) @Parameter(name = "orderId", description = "ID of pet that needs to be fetched", required = true, in = ParameterIn.PATH) @PathVariable("orderId") Long orderId
);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ ResponseEntity<Void> createUsersWithListInput(
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@NotNull @Parameter(name = "username", description = "The name that needs to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("username") String username
@Parameter(name = "username", description = "The name that needs to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("username") String username
);


Expand Down Expand Up @@ -187,7 +187,7 @@ ResponseEntity<Void> deleteUser(
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@NotNull @Parameter(name = "username", description = "The name that needs to be fetched. Use user1 for testing.", required = true, in = ParameterIn.PATH) @PathVariable("username") String username
@Parameter(name = "username", description = "The name that needs to be fetched. Use user1 for testing.", required = true, in = ParameterIn.PATH) @PathVariable("username") String username
);


Expand Down Expand Up @@ -282,7 +282,7 @@ ResponseEntity<Void> logoutUser(
consumes = "application/json"
)
ResponseEntity<Void> updateUser(
@NotNull @Parameter(name = "username", description = "name that need to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("username") String username,
@Parameter(name = "username", description = "name that need to be deleted", required = true, in = ParameterIn.PATH) @PathVariable("username") String username,
@Parameter(name = "User", description = "Updated user object", required = true) @Valid @RequestBody User user
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ResponseEntity<Pet> addPet(
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@NotNull @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey
);

Expand Down Expand Up @@ -202,7 +202,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@NotNull @ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
);


Expand Down Expand Up @@ -280,7 +280,7 @@ ResponseEntity<Pet> updatePet(
consumes = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@NotNull @ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Updated name of the pet") @Valid @RequestParam(value = "name", required = false) String name,
@ApiParam(value = "Updated status of the pet") @Valid @RequestParam(value = "status", required = false) String status
);
Expand Down Expand Up @@ -319,7 +319,7 @@ ResponseEntity<Void> updatePetWithForm(
consumes = "multipart/form-data"
)
ResponseEntity<ModelApiResponse> uploadFile(
@NotNull @ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Additional data to pass to server") @Valid @RequestParam(value = "additionalMetadata", required = false) String additionalMetadata,
@ApiParam(value = "file to upload") @RequestPart(value = "file", required = false) MultipartFile file
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface StoreApi {
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@NotNull @ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
);


Expand Down Expand Up @@ -112,7 +112,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@NotNull @Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
@Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ ResponseEntity<Void> createUsersWithListInput(
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@NotNull @ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username
@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username
);


Expand Down Expand Up @@ -174,7 +174,7 @@ ResponseEntity<Void> deleteUser(
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@NotNull @ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username
@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username
);


Expand Down Expand Up @@ -267,7 +267,7 @@ ResponseEntity<Void> logoutUser(
consumes = "application/json"
)
ResponseEntity<Void> updateUser(
@NotNull @ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User user
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ResponseEntity<Void> addPet(
value = PetController.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@NotNull @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey
);

Expand Down Expand Up @@ -202,7 +202,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@NotNull @ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
);


Expand Down Expand Up @@ -272,7 +272,7 @@ ResponseEntity<Void> updatePet(
consumes = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@NotNull @ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Updated name of the pet") @Valid @RequestParam(value = "name", required = false) String name,
@ApiParam(value = "Updated status of the pet") @Valid @RequestParam(value = "status", required = false) String status
);
Expand Down Expand Up @@ -310,7 +310,7 @@ ResponseEntity<Void> updatePetWithForm(
consumes = "multipart/form-data"
)
ResponseEntity<ModelApiResponse> uploadFile(
@NotNull @ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Additional data to pass to server") @Valid @RequestParam(value = "additionalMetadata", required = false) String additionalMetadata,
@ApiParam(value = "file to upload") @RequestPart(value = "file", required = false) MultipartFile file
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface StoreController {
value = StoreController.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@NotNull @ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
);


Expand Down Expand Up @@ -112,7 +112,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@NotNull @Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
@Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ResponseEntity<Void> createUsersWithListInput(
value = UserController.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@NotNull @ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username
@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username
);


Expand Down Expand Up @@ -156,7 +156,7 @@ ResponseEntity<Void> deleteUser(
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@NotNull @ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username
@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username
);


Expand Down Expand Up @@ -264,7 +264,7 @@ ResponseEntity<Void> logoutUserOptions(
value = UserController.PATH_UPDATE_USER
)
ResponseEntity<Void> updateUser(
@NotNull @ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ResponseEntity<Pet> addPet(
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@NotNull @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey
);

Expand Down Expand Up @@ -202,7 +202,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@NotNull @ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId
);


Expand Down Expand Up @@ -280,7 +280,7 @@ ResponseEntity<Pet> updatePet(
consumes = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@NotNull @ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Updated name of the pet") @Valid @RequestParam(value = "name", required = false) String name,
@ApiParam(value = "Updated status of the pet") @Valid @RequestParam(value = "status", required = false) String status
);
Expand Down Expand Up @@ -319,7 +319,7 @@ ResponseEntity<Void> updatePetWithForm(
consumes = "multipart/form-data"
)
ResponseEntity<ModelApiResponse> uploadFile(
@NotNull @ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@ApiParam(value = "Additional data to pass to server") @Valid @RequestParam(value = "additionalMetadata", required = false) String additionalMetadata,
@ApiParam(value = "file to upload") @RequestPart(value = "file", required = false) MultipartFile file
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface StoreApi {
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@NotNull @ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("orderId") String orderId
);


Expand Down Expand Up @@ -112,7 +112,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@NotNull @Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
@Min(value = 1L) @Max(value = 5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("orderId") Long orderId
);


Expand Down
Loading
Loading