Repository navigation
External create/mask traces for unknown keys and defaults #1308
PerchAnton
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made a small external Superstruct example for interaction-check, a JSONL regression runner I maintain. The same input goes through create or mask with a fixed original schema, making their unknown-key behavior directly visible.
The traces also check trimming, defaults, explicit false values and error recovery. Would this be useful as an optional reproduction recipe? It uses published runtime APIs only and does not test TypeScript inference.
Adapter · Three traces · External PR. Tested with superstruct 2.0.2: 3 scenarios / 9 steps pass locally on macOS, Node 24.19.0.
From that checkout, with Python 3.10+ and Node 24.19.0:
npm --prefix adapters/javascript ci --ignore-scripts --no-audit --no-fund python interaction_check.py scenarios/superstruct/*.json -- node adapters/javascript/main.mjs superstructAll reactions