You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A failed validate on a non-JSON module reports "Unsupported type" instead of the validation error #39
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
#33 / #35 made a failed validate on a loaded file throw the validation error, in the form Failed to load JSON file at <url>: @cldmv/wisp: <message>, instead of falling through to the fallback. For a non-JSON module (loaded through import() with a non-jsontype), a validate rejection still ends in wisp's generic "Unsupported type" error, so the caller can't tell their own validation rejected the data.
Found while porting the suite to vitest-runner (#37). The new tests pin the current behaviour.
Fix
Run validate outside the import-strategy error handling for every loader path, not only the JSON/fs path, so a validation rejection always surfaces as the validation error in the same format. Update the pinned test to expect the validation error.
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
fix: revive a namespace without a default export, and report a non-JS…
cldmv-bot commentedon Oct 4, 2026
Marked
status: implemented— resolved by #41, merged intonext. This issue closes automatically when that work ships to the default branch.release: v1.0.7 - require the ESM entry directly and fail clearly on…