Closed karthikiyengar closed 5 years ago
Did a bit of digging around, looks like this works.
const decoded = T.validate(null, t.getDefaultContext(T))
console.log(PathReporter.report(decoded))
Looks like issues with passing the context to decode?
Wait... I just updated my local version to io-ts@1.8.5
and I can see the issue now. Let me investigate...
@karthikiyengar just released a patch
Thanks a lot @gcanti, that was incredibly quick :-)
Thanks to you for the bug report
Versions:
Minimal reproduction:
Looks like the message property is not being set correctly - reports as
undefined