diff --git a/CI/pom.xml.shippable b/CI/pom.xml.shippable
index fbb649dba90..fb626b474b6 100644
--- a/CI/pom.xml.shippable
+++ b/CI/pom.xml.shippable
@@ -120,7 +120,7 @@
validate
validate
- google_checkstyle.xml
+ ../google_checkstyle.xml
${project.build.sourceDirectory}
UTF-8
@@ -355,7 +355,7 @@
- samples/client/petstore/android/volley
+ ../samples/client/petstore/android/volley
@@ -367,7 +367,7 @@
- samples/client/petstore/bash
+ ../samples/client/petstore/bash
@@ -379,7 +379,7 @@
- samples/client/petstore/clojure
+ ../samples/client/petstore/clojure
@@ -391,7 +391,7 @@
-
+
@@ -403,7 +403,7 @@
- samples/client/petstore/haskell-http-client/tests-integration
+ ../samples/client/petstore/haskell-http-client/tests-integration
@@ -415,7 +415,7 @@
- samples/client/petstore/java/jersey1
+ ../samples/client/petstore/java/jersey1
@@ -427,7 +427,7 @@
- samples/client/petstore/java/jersey2
+ ../samples/client/petstore/java/jersey2
@@ -439,7 +439,7 @@
- samples/client/petstore/java/jersey2-java6
+ ../samples/client/petstore/java/jersey2-java6
@@ -451,7 +451,7 @@
- samples/client/petstore/java/okhttp-gson
+ ../samples/client/petstore/java/okhttp-gson
@@ -463,7 +463,7 @@
- samples/client/petstore/java/okhttp-gson/parcelableModel
+ ../samples/client/petstore/java/okhttp-gson/parcelableModel
@@ -475,7 +475,7 @@
- samples/client/petstore/java/retrofit
+ ../samples/client/petstore/java/retrofit
@@ -487,7 +487,7 @@
- samples/client/petstore/java/retrofit2
+ ../samples/client/petstore/java/retrofit2
@@ -499,7 +499,7 @@
- samples/client/petstore/java/retrofit2rx
+ ../samples/client/petstore/java/retrofit2rx
@@ -511,7 +511,7 @@
- samples/client/petstore/java/feign
+ ../samples/client/petstore/java/feign
@@ -523,7 +523,7 @@
- samples/client/petstore/javascript
+ ../samples/client/petstore/javascript
@@ -535,7 +535,7 @@
- samples/client/petstore/scala
+ ../samples/client/petstore/scala
@@ -547,7 +547,7 @@
- samples/server/petstore/java-msf4/
+ ../samples/server/petstore/java-msf4/
@@ -559,7 +559,7 @@
- samples/server/petstore/jaxrs-cxf
+ ../samples/server/petstore/jaxrs-cxf
@@ -571,7 +571,7 @@
- samples/server/petstore/jaxrs-resteasy/default
+ ../samples/server/petstore/jaxrs-resteasy/default
@@ -583,7 +583,7 @@
- samples/server/petstore/jaxrs-resteasy/joda
+ ../samples/server/petstore/jaxrs-resteasy/joda
@@ -595,7 +595,7 @@
- samples/server/petstore/jaxrs-resteasy/eap
+ ../samples/server/petstore/jaxrs-resteasy/eap
@@ -607,7 +607,7 @@
- samples/server/petstore/jaxrs-resteasy/eap-joda
+ ../samples/server/petstore/jaxrs-resteasy/eap-joda
@@ -619,7 +619,7 @@
- samples/server/petstore/jaxrs/jersey2
+ ../samples/server/petstore/jaxrs/jersey2
@@ -631,7 +631,7 @@
- samples/server/petstore/jaxrs/jersey1
+ ../samples/server/petstore/jaxrs/jersey1
@@ -643,7 +643,7 @@
- samples/client/petstore/typescript-fetch/tests/default
+ ../samples/client/petstore/typescript-fetch/tests/default
@@ -655,7 +655,7 @@
- samples/client/petstore/typescript-fetch/builds/default
+ ../samples/client/petstore/typescript-fetch/builds/default
@@ -667,7 +667,7 @@
- samples/client/petstore/typescript-fetch/builds/es6-target
+ ../samples/client/petstore/typescript-fetch/builds/es6-target
@@ -679,7 +679,7 @@
- samples/client/petstore/typescript-fetch/builds/with-npm-version
+ ../samples/client/petstore/typescript-fetch/builds/with-npm-version
@@ -691,7 +691,7 @@
- samples/client/petstore/typescript-angularjs/npm
+ ../samples/client/petstore/typescript-angularjs/npm
@@ -703,7 +703,7 @@
- samples/client/petstore/typescript-node/npm
+ ../samples/client/petstore/typescript-node/npm
@@ -715,7 +715,7 @@
- samples/client/petstore/python
+ ../samples/client/petstore/python
@@ -727,7 +727,7 @@
- samples/client/petstore/ruby
+ ../samples/client/petstore/ruby
@@ -739,7 +739,7 @@
- samples/client/petstore/go
+ ../samples/client/petstore/go
@@ -751,7 +751,7 @@
- samples/server/petstore/spring-mvc
+ ../samples/server/petstore/spring-mvc
@@ -763,7 +763,7 @@
- samples/server/petstore/springboot-beanvalidation
+ ../samples/server/petstore/springboot-beanvalidation
@@ -775,7 +775,7 @@
- samples/server/petstore/springboot-reactive
+ ../samples/server/petstore/springboot-reactive
@@ -787,7 +787,7 @@
- samples/server/petstore/springboot
+ ../samples/server/petstore/springboot
@@ -799,7 +799,7 @@
- samples/client/petstore/spring-cloud
+ ../samples/client/petstore/spring-cloud
@@ -811,7 +811,7 @@
- samples/server/petstore/scalatra
+ ../samples/server/petstore/scalatra
@@ -823,7 +823,7 @@
- samples/server/petstore/java-inflector
+ ../samples/server/petstore/java-inflector
@@ -835,7 +835,7 @@
- samples/server/petstore/undertow
+ ../samples/server/petstore/undertow
@@ -848,19 +848,19 @@
- samples/client/petstore/elixir
-
- samples/client/petstore/erlang-client
+ ../samples/client/petstore/elixir
+
+ ../samples/client/petstore/erlang-client
- samples/server/petstore/erlang-server
+ ../samples/server/petstore/erlang-server
- modules/openapi-generator
- modules/openapi-generator-cli
- modules/openapi-generator-maven-plugin
- modules/openapi-generator-online
+ ../modules/openapi-generator
+ ../modules/openapi-generator-cli
+ ../modules/openapi-generator-maven-plugin
+ ../modules/openapi-generator-online
target/site
diff --git a/bin/ensure-up-to-date b/bin/ensure-up-to-date
new file mode 100755
index 00000000000..3149e93c075
--- /dev/null
+++ b/bin/ensure-up-to-date
@@ -0,0 +1,30 @@
+#!/bin/bash
+# this bash script run the scripts for the 'mature' generators
+# it ensures that all changes are commited into the 'samples/' folder
+
+echo "# START SCRIPT: $0"
+
+echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) to ensure that the 'samples/' folder is up to date."
+echo "Please press CTRL+C to stop or the script will continue in 5 seconds."
+
+sleep 5
+
+# LIST OF SCRIPTS:
+./bin/ruby-petstore.sh
+./bin/java-petstore-all.sh
+./bin/spring-all-pestore.sh
+./bin/kotlin-client-petstore.sh
+./bin/kotlin-client-string.sh
+./bin/kotlin-client-threetenbp.sh
+./bin/kotlin-server-petstore.sh
+
+# Check:
+if [ -n "$(git status --porcelain)" ]; then
+ echo "UNCOMMITTED CHANGES ERROR"
+ echo "There are uncommitted changes in working tree after execution of 'bin/ensure-up-to-date'"
+ git status
+ echo "Please run 'bin/ensure-up-to-date' locally and commit changes"
+ exit 1
+else
+ echo "Git working tree is clean"
+fi
diff --git a/samples/client/petstore/kotlin/README.md b/samples/client/petstore/kotlin/README.md
index ffc358aac7c..b9ab400b15e 100644
--- a/samples/client/petstore/kotlin/README.md
+++ b/samples/client/petstore/kotlin/README.md
@@ -63,6 +63,7 @@ Class | Method | HTTP request | Description
- [org.openapitools.client.models.ApiResponse](docs/ApiResponse.md)
- [org.openapitools.client.models.Category](docs/Category.md)
- [org.openapitools.client.models.Order](docs/Order.md)
+ - [org.openapitools.client.models.Pet](docs/Pet.md)
- [org.openapitools.client.models.Tag](docs/Tag.md)
- [org.openapitools.client.models.User](docs/User.md)
diff --git a/samples/client/petstore/ruby/docs/FakeApi.md b/samples/client/petstore/ruby/docs/FakeApi.md
index a1bd0f2f908..01b3aac12ac 100644
--- a/samples/client/petstore/ruby/docs/FakeApi.md
+++ b/samples/client/petstore/ruby/docs/FakeApi.md
@@ -408,7 +408,7 @@ Name | Type | Description | Notes
**enum_query_string** | **String**| Query parameter enum test (string) | [optional] [default to '-efg']
**enum_query_integer** | **Integer**| Query parameter enum test (double) | [optional]
**enum_query_double** | **Float**| Query parameter enum test (double) | [optional]
- **enum_form_string_array** | **Array<String>**| Form parameter enum test (string array) | [optional] [default to '$']
+ **enum_form_string_array** | [**Array<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string** | **String**| Form parameter enum test (string) | [optional] [default to '-efg']
### Return type
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
index 83dc98d1cdd..3ec31bfc714 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
@@ -35,7 +35,7 @@ data class Order (
* Order Status
* Values: placed,approved,delivered
*/
- enum class Status(val value: kotlin.Any){
+ enum class Status(val value: kotlin.String){
placed("placed"),
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
index 8c00a67d729..45dfb4df12b 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
@@ -37,7 +37,7 @@ data class Pet (
* pet status in the store
* Values: available,pending,sold
*/
- enum class Status(val value: kotlin.Any){
+ enum class Status(val value: kotlin.String){
available("available"),
diff --git a/shippable.yml b/shippable.yml
index 9426489257a..56aa70e09c6 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -10,6 +10,10 @@ build:
- $HOME/.stack
- $SHIPPABLE_REPO_DIR/samples/client/petstore/elixir/deps
ci:
+ - mvn --quiet clean install -f CI/pom.xml.shippable
+ # ensure all modifications created by 'mature' generators are in the git repo
+ - ./bin/ensure-up-to-date
+ # prepare enviroment for tests
- sudo apt-get update -qq
# install stack
- curl -sSL https://get.haskellstack.org/ | sh
@@ -27,10 +31,6 @@ build:
- elixir --version
- mix --version
# test samples defined in pom.xml
- - cp CI/pom.xml.shippable pom.xml
- - mvn --quiet clean install
- - mvn --quiet verify -P samples
- # generate all petstore sampless (client, servers, doc)
- - ./bin/run-all-petstore 2>&1 > run-all-petstore.log
- post_ci:
- - tail run-all-petstore.log
+ - mvn --quiet verify -P samples -f CI/pom.xml.shippable
+ # generate all petstore samples (client, servers, doc)
+ - ./bin/run-all-petstore