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 custom validation also loads the fallback file #33
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
When the primary JSON file loads but fails the caller's custom validate function, wisp falls through to the fallback file as if the primary were missing. Validation failure and load failure are different cases: the caller asked to reject invalid data, and silently returning the fallback's data hides that.
Found during the release-docs backfill (#32), which documented the actual error message format.
Fix
Use the fallback only when the primary file can't be read or parsed (missing, unreadable, invalid JSON). A validation failure on the primary should throw the validation error. If the current behaviour is wanted for some callers, add an explicit option such as fallbackOnValidationError defaulting to false, and document it. Add tests for both wisp and wispSync.
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
cldmv-bot commentedon Oct 4, 2026
Marked
status: implemented— resolved by #35, 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…