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

Update agent #53

Merged
merged 13 commits into from
Oct 3, 2024
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')
tutkat marked this conversation as resolved.
Show resolved Hide resolved

# 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
Loading