Repository navigation
INTER-2472: Update schema URL in sync script - #292
Conversation
Update OpenAPI schema URL in the sync script. Extract the base URL into `defaultBaseUrl` with positional overrides. Related-Task: INTER-2472
|
Coverage report
Test suite run success132 tests passing in 30 suites. Report generated by 🧪jest coverage report action from 58bbbaa Show full coverage report
|
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Merging must remain coordinated with the still-open upstream PR #480 and repository rename.
Review effort: Balanced
Findings: None
What changed in this PR
Updates schema synchronization URLs for the planned OpenAPI repository rename.
Changes:
- Uses the renamed GitHub Pages base URL.
- Adds positional schema and examples URL overrides.
| File | Description |
|---|---|
sync.sh |
Configures default and overridable download URLs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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. Rename `examplesList` to `examples`, log the full URL being fetched rather than just the example path, so it is clear which base URL a run actually used. Related-Task: INTER-2472
🚀 Following releases will be created using changesets from this PR:@fingerprint/node-sdk@7.7.2Patch Changes
|
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
defaultBaseUrlwithschemaUrl/examplesBaseUrlpositional overrides.