@kevin.van.rooijen handling map-entry properties is the last issue to be resolved to make the malli design complete for release, see https://github.com/metosin/malli/issues/116
Have some ideas how to fix that elegantly, but comments on the issues most welcome
Ah ok, good to hear
I did some digging and realized I asked the same question 3 months ago haha (but no answer at that time)
Hmm.. could you link that with #86?
or do you mean here? Slack history kinda sucks
Apparently I asked that question in my PR to support qualified keywords in maps
I had a bit of a monologue in that pr haha
https://github.com/metosin/malli/pull/194#issuecomment-609977835
there is a bunch of PRs I know are related to this, wanted to have this figured out before merging any of those in. Sorry for the lag with PRs.
Don't worry about it, it's a tough problem to handle
HI.
So what would be the correct type for a date LocalDateTime to be more specific
:responses {200 {:body [:vector
[:map
[:id int?]
[:sender_id int?]
[:conversation_id int?]
[:created_at string?]
[:state string?]]
]}
I tried inst? and it did not work. the error shows it as a string because of the conversion. but the validation seems to run before
{:id 1,
:message "string",
:sender_id 1,
:conversation_id 1,
:created_at #object[java.time.LocalDateTime 0x4cc366e7 "2020-06-30T18:50:23.695073"],
:state "UNREAD"}
https://github.com/metosin/malli/issues/49 is the issue for adding proper (Java8+ & goog.*) dates.
before that, [:fn (partial instance? LocalDateTime)]
does the validation part
cool thanks