Skip to content

Commit

Permalink
Use yaml config files introduce in OpenAPITools#6509 to manage samples (
Browse files Browse the repository at this point in the history
  • Loading branch information
Patouche committed Aug 26, 2020
1 parent 4175774 commit 0c8b808
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 212 deletions.
11 changes: 11 additions & 0 deletions bin/configs/java-feign-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generatorName: java
outputDir: samples/client/petstore/java/feign-no-nullable
library: feign
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
booleanGetterPrefix: is
artifactId: petstore-feign-no-nullable
hideGenerationTimestamp: "true"
additionalModelTypeAnnotations: '@javax.annotation.concurrent.Immutable'
openApiNullable: "false"
7 changes: 7 additions & 0 deletions bin/configs/java-play-framework-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
generatorName: java-play-framework
outputDir: samples/server/petstore/java-play-framework-no-nullable
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework
additionalProperties:
hideGenerationTimestamp: "true"
openApiNullable: "false"
9 changes: 9 additions & 0 deletions bin/configs/java-vertx-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
generatorName: java
outputDir: samples/client/petstore/java/vertx-no-nullable
library: vertx
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: petstore-vertx-no-nullable
hideGenerationTimestamp: "true"
openApiNullable: "false"
11 changes: 11 additions & 0 deletions bin/configs/spring-boot-beanvalidation-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generatorName: spring
outputDir: samples/server/petstore/springboot-beanvalidation-no-nullable
library: spring-boot
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
additionalProperties:
java8: "false"
useBeanValidation: true
artifactId: spring-boot-beanvalidation-no-nullable
hideGenerationTimestamp: "true"
openApiNullable: "false"
10 changes: 10 additions & 0 deletions bin/configs/spring-cloud-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
generatorName: spring
outputDir: samples/client/petstore/spring-cloud-no-nullable
library: spring-cloud
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud
additionalProperties:
artifactId: petstore-spring-cloud-no-nullable
responseWrapper: HystrixCommand
hideGenerationTimestamp: "true"
openApiNullable: "false"
10 changes: 10 additions & 0 deletions bin/configs/spring-mvc-no-nullable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
generatorName: spring
outputDir: samples/server/petstore/spring-mvc-no-nullable
library: spring-mvc
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
additionalProperties:
artifactId: spring-mvc-server-no-nullable
openApiNullable: "false"
serverPort: "8002"
hideGenerationTimestamp: "true"
Empty file removed bin/java-petstore-all.sh
Empty file.
40 changes: 0 additions & 40 deletions bin/java-petstore-feign-no-nullable.sh

This file was deleted.

35 changes: 0 additions & 35 deletions bin/java-petstore-vertx-no-nullable.sh

This file was deleted.

Empty file.
34 changes: 0 additions & 34 deletions bin/java-play-framework-petstore-server-no-nullable.sh

This file was deleted.

Empty file removed bin/spring-all-petstore.sh
Empty file.
35 changes: 0 additions & 35 deletions bin/spring-cloud-feign-petstore-no-nullable.sh

This file was deleted.

33 changes: 0 additions & 33 deletions bin/spring-mvc-petstore-no-nullable.sh

This file was deleted.

35 changes: 0 additions & 35 deletions bin/springboot-petstore-server-beanvalidation-no-nullable.sh

This file was deleted.

0 comments on commit 0c8b808

Please sign in to comment.