diff --git a/CI/bitrise.yml b/CI/bitrise.yml index f31294044f6..8a572ab864a 100644 --- a/CI/bitrise.yml +++ b/CI/bitrise.yml @@ -40,12 +40,21 @@ workflows: sh bin/swift4-all.sh - script@1.1.5: + title: Run Swift4 tests inputs: - content: | #!/usr/bin/env bash set -e - ./samples/client/petstore/swift4/swift4_test_all.sh && ./samples/client/test/swift4/swift4_test_all.sh && exit ${PIPESTATUS[0]} - title: Run Swift4 tests + ./samples/client/petstore/swift4/swift4_test_all.sh + ./samples/client/test/swift4/swift4_test_all.sh + - script@1.1.5: + title: Run all bin scripts + inputs: + - content: |- + #!/usr/bin/env bash + set -e + + ./bin/run-all-petstore diff --git a/bin/kotlin-client-moshi-codegen.sh b/bin/kotlin-client-moshi-codegen.sh old mode 100644 new mode 100755 diff --git a/pom.xml b/pom.xml index a2629d64572..ee48ff0508f 100644 --- a/pom.xml +++ b/pom.xml @@ -1254,9 +1254,11 @@ samples/client/petstore/kotlin/ samples/client/petstore/kotlin-gson/ samples/client/petstore/kotlin-nonpublic/ + samples/client/petstore/kotlin-nullable/ samples/client/petstore/kotlin-okhttp3/ samples/client/petstore/kotlin-threetenbp/ samples/client/petstore/kotlin-string/ + samples/client/petstore/kotlin-moshi-codegen/ samples/server/petstore/erlang-server samples/server/petstore/jaxrs/jersey2 diff --git a/samples/client/petstore/kotlin-moshi-codegen/pom.xml b/samples/client/petstore/kotlin-moshi-codegen/pom.xml new file mode 100644 index 00000000000..9cae12c1a8b --- /dev/null +++ b/samples/client/petstore/kotlin-moshi-codegen/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + io.swagger + KotlinMoshiPetstoreClientTests + pom + 1.0-SNAPSHOT + Kotlin Moshi Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + bundle-test + integration-test + + exec + + + gradle + + test + + + + + + + + diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt index 334085f64c5..087015252b8 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -2,7 +2,6 @@ package org.openapitools.client.infrastructure import com.squareup.moshi.Moshi import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter - import java.util.Date object Serializer { @@ -13,6 +12,5 @@ object Serializer { .add(LocalDateAdapter()) .add(UUIDAdapter()) .add(ByteArrayAdapter()) - .build() } diff --git a/samples/client/petstore/kotlin-nullable/pom.xml b/samples/client/petstore/kotlin-nullable/pom.xml new file mode 100644 index 00000000000..2bf0f9666d6 --- /dev/null +++ b/samples/client/petstore/kotlin-nullable/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + io.swagger + KotlinNullablePetstoreClientTests + pom + 1.0-SNAPSHOT + Kotlin Nullable Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + bundle-test + integration-test + + exec + + + gradle + + test + + + + + + + +