ml-archive / Serpent

A protocol to serialize Swift structs and classes for encoding and decoding.
https://nodes-ios.github.io/Serpent/
MIT License
286 stars 13 forks source link

Encoding optional NSURL #95

Closed tbrachkov closed 7 years ago

tbrachkov commented 8 years ago

When using Cashier the optional NSURL was not being decoded as NSRL even it was there before encoding after serialising from JSON.

dominik-hadl commented 8 years ago

Can you please add a test case for this, so we can see the issue? :)

tbrachkov commented 7 years ago

The reason is that some URL might have had the additional "\" at the end. Failing to serialise it seems ok.