Skip to content

chore(example): bump SWE contract_details schema version to 5 - #1523

Merged
gabrielseco merged 1 commit into
mainfrom
chore/bump-swe-contract-details-5
Oct 13, 2026
Merged

gabrielseco merged 1 commit into
mainfrom
chore/bump-swe-contract-details-5

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The example app now uses Sweden's latest contract details form (v5). The Sweden changelog now covers v3-v5.

Why

  • SWE was still pinned to v2 while the backend is on v5.
  • v3 adds a new required field. Pinning the example to latest makes us run the form partners will get when they upgrade.

What changed

Toggle details
  • jsonSchemaVersions.ts: SWE contract_details 2 → 5.
  • schemaVersions.ts: unchanged, because it already lists SWE v1–v5.
  • Docs: SWE.md gains v3–v5 sections (v5 marked current, v2 and v1 kept), and the README version matrix moves SWE to v5 / October 2026. Each entry is based on tiger's version_changelog (v4–v5) or a diff of the tiger snapshots (v3):
    • v3: breaking for submits: non_compete_clause_apply is now required, with the shared non-compete, non-solicitation and non-interference components; probation period gains a help center link
    • v4: high-salary reserve messaging, salary fields grouped, jsf v1 engine
    • v5: extreme-salary acknowledgement
  • No public API change.

Screenshots

N/A

Related Resources

  • Tiger commits that cut each version: 19f31c03 (v3, non-compete components), 217f95b2 (v4, reserve messaging), 2c754ed0 (v5, extreme salary)

Testing

  • Tested against the example/ app in a browser
  • npm run schema-canary -- --country=SWE --versions=pinned,latest against sandbox: build and submit pass on pinned (v5) and latest
  • Feature flag: extreme-salary acknowledgement (v5); reserve messaging (v4)

🤖 Generated with Claude Code


Note

Low Risk
Documentation and example-app schema version pins only; no runtime library or auth/data-path changes.

Overview
Aligns the example onboarding app and Sweden contract-details docs with the backend’s current v5 schema (previously pinned at v2).

jsonSchemaVersions.ts sets SWE.contract_details from 2 → 5, so the example runs the same form partners see on latest.

SWE.md is expanded with v3–v5 changelogs and migration snippets: v3 makes non_compete_clause_apply required (breaking for v2 payloads); v4 adds high-salary reserve messaging, salary field grouping, and jsf v1; v5 adds extreme-salary acknowledgement (flag-gated). README version matrix updates Sweden to v5 / October 2026.

No public SDK API change—docs and example configuration only.

Reviewed by Cursor Bugbot for commit bdacdae. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-p1qxfwhnt-remotecom.vercel.app
Latest Commit:bdacdae

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for adp-cost-calculator ready!

Project:adp-cost-calculator
Status: ✅  Deploy successful!
Preview URL:https://adp-cost-calculator-40zpa4r5k-remotecom.vercel.app
Latest Commit:bdacdae

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 89.58% 89.58% 0% ⚪
Statements 89.45% 89.45% 0% ⚪
Functions 88.47% 88.47% 0% ⚪
Branches 81.20% 81.20% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 5389 / 6016
  • Coverage: 89.58%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 5454 / 6097
  • Coverage: 89.45%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1427 / 1613
  • Coverage: 88.47%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3343 / 4117
  • Coverage: 81.20%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco
gabrielseco merged commit f4c42fe into main Oct 13, 2026
15 checks passed
@gabrielseco
gabrielseco deleted the chore/bump-swe-contract-details-5 branch October 13, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants