Skip to content

Commit aac3c03

Browse files
author
bnasslahsen
committed
Revert @ParameterObject annotation from Pageable
1 parent dea6b5d commit aac3c03

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.3.6] - 2020-04-28
8+
### Changed
9+
- Revert @ParameterObject annotation from Pageable
10+
711
## [1.3.5] - 2020-04-28
812
### Added
913
- Get fields of superclass for parameter objects

springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/converters/Pageable.java

-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
import io.swagger.v3.oas.annotations.Parameter;
2727
import io.swagger.v3.oas.annotations.media.ArraySchema;
2828
import io.swagger.v3.oas.annotations.media.Schema;
29-
import org.springdoc.api.annotations.ParameterObject;
3029

31-
@ParameterObject
3230
public class Pageable {
3331

3432
@Min(0)

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app7/HelloController.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
import javax.validation.constraints.NotNull;
2424

25+
import org.springdoc.api.annotations.ParameterObject;
26+
2527
import org.springframework.data.domain.Pageable;
2628
import org.springframework.http.ResponseEntity;
2729
import org.springframework.web.bind.annotation.GetMapping;
@@ -31,7 +33,7 @@
3133
public class HelloController {
3234

3335
@GetMapping(value = "/search", produces = { "application/xml", "application/json" })
34-
public ResponseEntity<List<PersonDTO>> getAllPets(@NotNull Pageable pageable) {
36+
public ResponseEntity<List<PersonDTO>> getAllPets(@NotNull @ParameterObject Pageable pageable) {
3537
return null;
3638
}
3739

0 commit comments

Comments
 (0)