Skip to content

Commit

Permalink
WX-950 Set user agent in Java client (#7087)
Browse files Browse the repository at this point in the history
  • Loading branch information
aednichols authored Mar 9, 2023
1 parent bb6065d commit 28c780b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gen_java_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ BASE_PACKAGE="cromwell.client"
ORIGINAL_API_YAML=engine/src/main/resources/swagger/cromwell.yaml
API_YAML=codegen_java/cromwell.nofile.yaml
OPENAPI_DOCKER="openapitools/openapi-generator-cli@sha256:ddd1b01cbe8f494c6612c548e91f983938164ab713a4d18d099a1fc4a77c651d"
CROMWELL_HASH=$(git rev-parse --short=7 HEAD)

# Cromwell doesn't specify the OAuth configuration in its swagger, and
# without it the client doesn't support authentication.
Expand Down Expand Up @@ -42,6 +43,7 @@ docker run --rm -v ${PWD}:/local ${OPENAPI_DOCKER} generate \
-i /local/$API_YAML \
-g java \
-o /local/codegen_java \
--http-user-agent "Cromwell-Java-Client/${CROMWELL_HASH}" \
--skip-validate-spec \
--api-package ${BASE_PACKAGE}.api \
--model-package ${BASE_PACKAGE}.model
Expand Down

0 comments on commit 28c780b

Please sign in to comment.