Hey guys, what do you use for generating images for summary cards?
I was looking at someone else's blog generated with Jekyll, which uses this plugin to generate clean title-based images https://github.com/jekyll/jekyll-seo-tag/ and was wondering if there exists a similar library in Clojure (I use Cryogen)
(I know, it's possible to hack it together myself; I like ready-made components, themes etc because they let me avoid falling into the hole of "I'll try one more font" and "but what if we changed the colours thusly" 😉 )
Hi guys. How is java 8 date handling in json (with postgres backend) supposed to work in default template? It seems reitit/muuntaja/spec-tools only supports inst? instances by default (including Instant but not LocalDateTime) and postgres support expects LocalDateTime fields. What is the simplest way to make this work?
@nbdam muuntaja supports java.time out-of-the-box, but spec is not a type system, so
inst? predicate allows any kind of date. I think a good solution would be to introduce stricter specs that would allow only java.time classes and coerce into those (instead of java dates).
could be a new ns in spec-tools for example, with
date-time? etc. specs with encoders, decoders & json schema mappings.
I am not trying to limit which kinds of date work. My problem is that it seems LocalDateTime is not correctly serialized to/from JSON and it is used by default for postgres timestamp type... What would be the simplest way to support LDT and be able to use reitit with spec and swagger?
That would be great. I asked about making coder few days ago on #reitit. Encoding to json worked fine for me but decoding didnt..