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

WX-950 Set user agent in Java client #7087

Merged
merged 2 commits into from
Mar 9, 2023
Merged
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
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