clj-yaml

jyn 2025-08-18T20:28:41.750729Z

is there a way to customize the types that a YAML doc is parsed into? clj-yaml is turning dates into java.util.Date and i want it to use java.time.LocalDate instead

borkdude 2025-08-18T20:32:45.675879Z

maybe not without reaching into snakeyaml interop, not sure. but perhaps you can just postwalk the data yourself?

jyn 2025-08-18T20:37:45.975079Z

postwalk as in clojure.walk/postwalk? that sounds doable, thanks 🙂

jyn 2025-08-18T20:46:04.881539Z

oh hm i am causing myself trouble here, clojure.data.json doesn't support serializing ZonedDateTime

jyn 2025-08-18T20:50:47.782089Z

oh i see i want java-time/java-date, then i don't have to do any conversions at all