forked from loafle/openapi-generator-original
* Check date value before calling to_iso8601 When deserializing a date value the value has to be a string when calling to_iso8601. Otherwise it fails with a match error due to a is_binary() guard. * Fix: to_iso returns tuple with three values.