Repository navigation
chore(scripts): add dump-schema script - #1533
Merged
Merged
Conversation
Fetches a country form schema from the sandbox gateway, writes it to .schema-dumps/ and lists every string containing HTML, to make it easy to compare what each country's schema carries. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (291 total)
✅ Bundle size check passed |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
📊 Coverage Report⚪ Coverage unchanged
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bab9636. Configure here.
jordividaller
approved these changes
Oct 13, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Adds
npm run dump:schema, a local script that saves a country's form schema from the sandbox gateway to a folder so it can be inspected.Why
Comparing what two countries' schemas carry (for example DEU vs NLD for HTML-to-components behaviour) meant hand-fetching schemas. One command now writes the full JSON.
What changed
Toggle details
scripts/dump-schema.ts, reusing the schema-canary sandbox auth and employment seeding. Forcontract_detailsit seeds a throwaway employment and archives it afterwards; other forms need no employment.npm run dump:schema -- --country=NLD [--form=contract_details] [--version=N|latest] [--out=dir]. Output goes to.schema-dumps/<COUNTRY>.<form>.v<version>.json(gitignored)..env.sandboxat the repo root.package.jsonscript,.gitignoreentry and aDEVELOPMENT.mdline added.Screenshots
N/A
Related Resources
N/A
Testing
example/app in a browser: N/A, dev script onlyRan
npm run dump:schema -- --country=DEUand--country=NLD --version=6against the sandbox.🤖 Generated with Claude Code
Note
Low Risk
Dev-only script and docs; reuses existing sandbox helpers and does not change the published package or production code paths.
Overview
Adds
npm run dump:schema, a developer-only CLI that fetches a country’s form JSON schema from the sandbox gateway and writes it under.schema-dumps/(now gitignored) for local diffing and inspection.The new
scripts/dump-schema.tsparses--country, optional--form(defaultcontract_details),--version(integer orlatest), and--out; loads credentials from.env.sandbox; reuses schema-canary sandbox auth and, forcontract_details, temporary employment seeding with cleanup in afinallyblock.DEVELOPMENT.mddocuments usage;package.jsonwires the script. No library or runtime bundle changes.Reviewed by Cursor Bugbot for commit 34fcdc4. Bugbot is set up for automated code reviews on this repo. Configure here.