Closed haf closed 8 years ago
Hmmm. I think throwing is probably as sensible as anything in this case, as much as I dislike partial functions - better than silently losing fidelity I think...
Ping?
Yeah, I think I'm happy with exception cases. Added to milestone...
https://github.com/kolektiv/chiron/commit/ad5bf47d25920ef5f1e469725e01b3d8a01b346e should include a fix for this.
:+1:
Before we release 8.0, we ought to add a similar validation to serializing single
as well.
Hmmm, yes very true. I'll have a glance at that later.
Guard against this has gone in to 6.0.0-rc5 which I've just pushed. I'll close this off now as I think the basic scope is covered, and newer and shinier testing can produce newer and shinier bug reports... :)
Consider how they should be handled; since they're not valid JSON, consider throwing an exception (partial function approach), or writing it as a string.