You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
INTER-2472: Update schema URL and harden sync script - #154
chore/openapi-repo-rename-inter-2472fingerprintjs/fingerprint-pro-server-api-java-sdk:chore/openapi-repo-rename-inter-2472Copy head branch name to clipboard
chore/openapi-repo-rename-inter-2472fingerprintjs/fingerprint-pro-server-api-java-sdk:chore/openapi-repo-rename-inter-2472Copy head branch name to clipboard
GitHub redirects repository URLs after a rename but explicitly not project GitHub Pages URLs, so sync.sh will start failing with a 404. This PR changes the default OpenAPI schema URL.
Alongside the URL change, the base URL moves into a new var with positional overrides. Use env bash shebang, so the script picks up bash from the correct environment. Resolve paths relative to the repository root. Harden curl with retry transient failures, refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hand CI or local. Log the full URL being fetched, so it is clear which base URL a run actually used.
Update OpenAPI schema URL in the sync script.
Use `env bash` shebang, so the script picks up bash from the correct
environment. Resolve paths relative to the repository root. Harden `curl`
with retry transient failures, refuse redirects that leave https and
bound connect and transfer time so a stalled download cannot hang CI or
local. Log the full URL being fetched, so it is clear which base URL
a run actually used.
Related-Task: INTER-2472
Preserve curl error diagnostics when suppressing progress output
scripts/sync.sh:12
Adding -s without -S suppresses curl's error diagnostics, so ordinary CI/local failures (for example, HTTP, TLS, or timeout errors) exit nonzero without explaining the cause. Keep the progress meter quiet while preserving errors by using -sS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub redirects repository URLs after a rename but explicitly not project GitHub Pages URLs, so
sync.shwill start failing with a 404. This PR changes the default OpenAPI schema URL.Alongside the URL change, the base URL moves into a new var with positional overrides. Use
env bashshebang, so the script picks up bash from the correct environment. Resolve paths relative to the repository root. Hardencurlwith retry transient failures, refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hand CI or local. Log the full URL being fetched, so it is clear which base URL a run actually used.