Skip to content

Convert numbers to strings on import where the schema expects a string (CGE-183) - #51

Merged
alail-ims merged 1 commit into
mainfrom
task/CGE-183
Oct 19, 2026
Merged

alail-ims merged 1 commit into
mainfrom
task/CGE-183

Conversation

@alail-ims

Copy link
Copy Markdown
Contributor

Imports are only loosely validated, but saves are strictly validated, so a framework with mistyped values (e.g. WIDA's numeric hierarchyCodes) imported fine but could never be saved. Before saving, the import now checks the payload against the CFPackage schema and turns numbers into strings wherever the schema expects a string. It still counts as a mirror, not a fork.

…g (CGE-183)

Imports are only loosely validated, but saves are strictly validated, so a
framework with mistyped values (e.g. WIDA's numeric hierarchyCodes) imported
fine but could never be saved. Before saving, the import now checks the
payload against the CFPackage schema and turns numbers into strings wherever
the schema expects a string. It still counts as a mirror, not a fork.
@alail-ims
alail-ims merged commit 4216c04 into main Oct 19, 2026
3 checks passed
@alail-ims
alail-ims deleted the task/CGE-183 branch October 19, 2026 17:40
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.

1 participant