Skip to content

Commit

Permalink
updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed Sep 19, 2024
1 parent 4b7f1ea commit df464e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ CURRENT_GID := $(shell id -g)

# git repo : equinix fabric-java sdk
GIT_ORG=equinix-labs
GIT_REPO=fabric-java
GIT_REPO=fabric-sdk-java

PACKAGE_VERSION=$(shell cat spec/oas3.fabric.config.json | jq -r '.artifactVersion')

# Equinix fabric OAS 3.0.0
SPEC_FETCHED_FILE:=spec/oas3.fabric.fetched.json
Expand Down Expand Up @@ -57,6 +59,8 @@ pull:

docker_generate:
${DOCKER_OPENAPI} generate \
--http-user-agent "${GIT_REPO}/${PACKAGE_VERSION}" \
-p artifactVersion=${PACKAGE_VERSION} \
-i /local/${SPEC_PATCHED_FILE} \
-t /local/templates/Java \
-g java \
Expand Down
2 changes: 1 addition & 1 deletion equinix-openapi-fabric/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="fabric-java"
git_repo_id="fabric-sdk-java"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.5.0/java");
setUserAgent("fabric-sdk-java/0.5.0");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion templates/Java/libraries/okhttp-gson/ApiClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public class ApiClient {
json = new JSON();
// Set default User-Agent.
setUserAgent("fabric-sdk-java-{{{artifactVersion}}}");
setUserAgent("{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{{artifactVersion}}}/java{{/httpUserAgent}}");
authentications = new HashMap<String, Authentication>();
{{#dynamicOperations}}
Expand Down

0 comments on commit df464e0

Please sign in to comment.