Using Schema for Fixed Format File Encoding/Decoding and Error Handling
hi! we are handling fixed format files at work (e.g. process EFT payments) and i thought it might be possible to encode/decode them using Schema. E.g. pass in
const header = { name: "test", activityDate: new Date() }
const header = { name: "test", activityDate: new Date() }
and encode this into a string in a fixed format, e.g.
- Is this something Schema would be a good fit for? I thought it would, but going through it it feels a bit cumbersome so far (could also be skill issue ) - is it possible to have nicer errors, e.g. which field failed to decode and why?