Skip to content

Commit

Permalink
haskell clint: switch to openapi-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschoning committed Feb 28, 2019
1 parent f673b04 commit c1cb27a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions openapi/haskell-http-client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
<build>
<plugins>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>${swagger-codegen-version}</version>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${openapi-generator-version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${generator.spec.path}</inputSpec>
<language>haskell-http-client</language>
<generatorName>haskell-http-client</generatorName>
<output>${generator.output.path}</output>
<validateSpec>false</validateSpec>
<configOptions>
<packageName>${generator.package.name}</packageName>
<packageVersion>${generator.client.version}</packageVersion>
Expand Down
4 changes: 2 additions & 2 deletions openapi/haskell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ pushd "${OUTPUT_DIR}" > /dev/null
OUTPUT_DIR=`pwd`
popd > /dev/null

source "${SCRIPT_ROOT}/swagger-codegen/client-generator.sh"
source "${SCRIPT_ROOT}/openapi-generator/client-generator.sh"
source "${SETTING_FILE}"

# Latest version of HaskellHttpClientCodegen.java as of Nov 19, 2018
SWAGGER_CODEGEN_COMMIT="${SWAGGER_CODEGEN_COMMIT:-d0e2d7684dd3258233c3e4d838dcd7bf44055869}"; \
OPENAPI_GENERATOR_COMMIT="${OPENAPI_GENERATOR_COMMIT:-c30a21ac3cd8b1d8a3db600e4079977af0681e11}"; \
CLIENT_LANGUAGE=haskell-http-client; \
CLEANUP_DIRS=(lib tests); \
kubeclient::generator::generate_client "${OUTPUT_DIR}"
Expand Down

0 comments on commit c1cb27a

Please sign in to comment.