Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elm client generator refactoring #4891

Merged
merged 19 commits into from
Jan 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ before_install:
- gem install bundler
- npm install -g typescript
- npm install -g npm
#- npm install -g elm@0.18.0-exp5
- npm config set registry http://registry.npmjs.org/
# set python 3.6.3 as default
- source ~/virtualenv/python3.6/bin/activate
Expand Down
3 changes: 0 additions & 3 deletions CI/circle_parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ elif [ "$NODE_INDEX" = "2" ]; then
echo "Running node $NODE_INDEX to test ensure-up-to-date"
java -version

# install elm-format
npm install -g elm-format

# clear any changes to the samples
git checkout -- .

Expand Down
35 changes: 0 additions & 35 deletions bin/elm-0.18-petstore.sh

This file was deleted.

5 changes: 0 additions & 5 deletions bin/elm-petstore-all.sh

This file was deleted.

35 changes: 0 additions & 35 deletions bin/elm-petstore.sh

This file was deleted.

5 changes: 0 additions & 5 deletions bin/openapi3/elm-all.sh

This file was deleted.

35 changes: 0 additions & 35 deletions bin/openapi3/elm-composition.sh

This file was deleted.

4 changes: 2 additions & 2 deletions bin/openapi3/elm-petstore.sh → bin/openapi3/elm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
mvn -B clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g elm -t modules/openapi-generator/src/main/resources/elm -o samples/openapi3/client/petstore/elm --additional-properties elmPrefixCustomTypeVariants=true $@"
ags="generate -i modules/openapi-generator/src/test/resources/3_0/elm.yaml -g elm -t modules/openapi-generator/src/main/resources/elm -o samples/openapi3/client/elm $@"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/utils/ensure-up-to-date
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ declare -a samples=(
"${root}/bin/dart-petstore.sh"
"${root}/bin/dart2-petstore.sh"
"${root}/bin/java-play-framework-petstore-server-all.sh"
#"${root}/bin/elm-petstore-all.sh"
"${root}/bin/openapi3/elm.sh"
"${root}/bin/typescript-redux-query-petstore-with-npm-version.sh"
)

Expand Down
4 changes: 0 additions & 4 deletions docs/generators/elm.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ sidebar_label: elm

| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|elmVersion|Elm version: 0.18, 0.19|<dl><dt>**0.19**</dt><dd>Elm 0.19</dd><dt>**0.18**</dt><dd>Elm 0.18</dd><dl>|0.19|
|elmPrefixCustomTypeVariants|Prefix custom type variants| |false|
|elmEnableCustomBasePaths|Enable setting the base path for each request| |false|
|elmEnableHttpRequestTrackers|Enable adding a tracker to each http request| |false|
Loading