-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java][Spring] Add Spring pagination with vendor extension x-spring-p…
…aginated (#5022) Co-authored-by: Mathias Hinterndorfer <[email protected]> Co-authored-by: Mathias Hinterndorfer <[email protected]> Co-authored-by: Jim Schubert <[email protected]>
- Loading branch information
1 parent
4fe76fc
commit 206f3f7
Showing
523 changed files
with
50,884 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml | ||
outputDir: samples/client/petstore/spring-cloud-spring-pageable | ||
artifactId: spring-cloud-spring-pageable | ||
library: spring-cloud | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml | ||
outputDir: samples/server/petstore/spring-mvc-spring-pageable | ||
artifactId: spring-mvc-spring-pageable | ||
library: spring-mvc | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
10 changes: 10 additions & 0 deletions
10
bin/configs/springboot-petstore-server-spring-pageable-delegatePattern-without-j8.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml | ||
outputDir: samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8 | ||
artifactId: springboot-spring-pageable-delegatePattern-without-j8 | ||
library: spring-boot | ||
delegatePattern: true | ||
java8: false | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
9 changes: 9 additions & 0 deletions
9
bin/configs/springboot-petstore-server-spring-pageable-delegatePattern.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml | ||
outputDir: samples/server/petstore/springboot-spring-pageable-delegatePattern | ||
artifactId: springboot-spring-pageable-delegatePattern | ||
library: spring-boot | ||
delegatePattern: true | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
9 changes: 9 additions & 0 deletions
9
bin/configs/springboot-petstore-server-spring-pageable-without-j8.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml | ||
outputDir: samples/server/petstore/springboot-spring-pageable-without-j8 | ||
artifactId: springboot-spring-pageable-withoutj8 | ||
library: spring-boot | ||
java8: false | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: spring | ||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml | ||
outputDir: samples/server/petstore/springboot-spring-pageable | ||
artifactId: springboot-spring-pageable | ||
library: spring-boot | ||
additionalProperties: | ||
hideGenerationTimestamp: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
These imports are only necessary if a Pagable is actually used (line 37 as well). Can they be made optional, e.g. by using {{vendorExtensions.x-spring-paginated}}? They require spring data as a dependency which we do not use.