Skip to content

Commit c1cb27a

Browse files
committed
haskell clint: switch to openapi-generator
1 parent f673b04 commit c1cb27a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

openapi/haskell-http-client.xml

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
<build>
99
<plugins>
1010
<plugin>
11-
<groupId>io.swagger</groupId>
12-
<artifactId>swagger-codegen-maven-plugin</artifactId>
13-
<version>${swagger-codegen-version}</version>
11+
<groupId>org.openapitools</groupId>
12+
<artifactId>openapi-generator-maven-plugin</artifactId>
13+
<version>${openapi-generator-version}</version>
1414
<executions>
1515
<execution>
1616
<goals>
1717
<goal>generate</goal>
1818
</goals>
1919
<configuration>
2020
<inputSpec>${generator.spec.path}</inputSpec>
21-
<language>haskell-http-client</language>
21+
<generatorName>haskell-http-client</generatorName>
2222
<output>${generator.output.path}</output>
23+
<validateSpec>false</validateSpec>
2324
<configOptions>
2425
<packageName>${generator.package.name}</packageName>
2526
<packageVersion>${generator.client.version}</packageVersion>

openapi/haskell.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ pushd "${OUTPUT_DIR}" > /dev/null
4343
OUTPUT_DIR=`pwd`
4444
popd > /dev/null
4545

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

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

0 commit comments

Comments
 (0)