-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*date-format* never bound #120
Comments
Pushed a commit to bind |
Confused. Having a default value for |
Ahh you're right, I see the problem now :-/ |
I reverted the commit for now, I'll fix this in a different way. |
I ran into this today while trying to custom encode a (defn- joda-time-encoder
[^DateTime dt ^JsonGenerator jg]
(generate/encode-date (.toDate dt) jg)) This API would work great for me but without a value bound to The caller of (binding [gen/*date-format* "yyyy-MM-dd'T'HH:mm:ss'Z'"]
(cheshire.core/encode thing {:date-format "yyyy-MM-dd'T'HH:mm:ss'Z'"})) but this is problematic as all callers of |
gen/*date-format*
appears to be vestigial (fromcheshire.custom
?): it's never bound. However, it probably should be, as there's currently no way forJSONable
implementations to access the desired date format string. The same goes for the other parameters togen/generate
...The text was updated successfully, but these errors were encountered: