Skip to content

Commit ccb7fd2

Browse files
committed
regenerate samples and docs
1 parent fc10db4 commit ccb7fd2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api

samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ ResponseEntity<Void> deletePet(
126126
value = PetApi.PATH_FIND_PETS_BY_STATUS,
127127
produces = { "application/json", "application/xml" }
128128
)
129+
@org.springframework.validation.annotation.Validated
130+
@org.springframework.security.access.prepost.PreAuthorize("hasRole('ADMIN')")
129131
ResponseEntity<List<Pet>> findPetsByStatus(
130132
@NotNull @Parameter(name = "status", description = "Status values that need to be considered for filter", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "status", required = true) List<String> status,
131133
@ParameterObject final Pageable pageable

0 commit comments

Comments
 (0)