Switch golang to openapi-generator. (#110)

This commit is contained in:
Brendan Burns
2019-03-28 12:29:57 -07:00
committed by Kubernetes Prow Robot
parent 2bad344c0b
commit 3e160e6416
2 changed files with 5 additions and 5 deletions

View File

@@ -43,10 +43,10 @@ pushd "${OUTPUT_DIR}" > /dev/null
OUTPUT_DIR=`pwd` OUTPUT_DIR=`pwd`
popd > /dev/null popd > /dev/null
source "${SCRIPT_ROOT}/swagger-codegen/client-generator.sh" source "${SCRIPT_ROOT}/openapi-generator/client-generator.sh"
source "${SETTING_FILE}" source "${SETTING_FILE}"
SWAGGER_CODEGEN_COMMIT="${SWAGGER_CODEGEN_COMMIT:-v2.3.0}"; \ OPENAPI_GENERATOR_COMMIT="${OPENAPI_GENERATOR_COMMIT:-v3.3.4}" \
CLIENT_LANGUAGE=go; \ CLIENT_LANGUAGE=go; \
CLEANUP_DIRS=(pkg); \ CLEANUP_DIRS=(pkg); \
kubeclient::generator::generate_client "${OUTPUT_DIR}" kubeclient::generator::generate_client "${OUTPUT_DIR}"

View File

@@ -8,9 +8,9 @@
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId> <artifactId>openapi-generator-maven-plugin</artifactId>
<version>${swagger-codegen-version}</version> <version>${openapi-generator-version}</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>