reitit

plexus 2024-04-22T07:04:29.432069Z

Is it possible to set muuntaja options on the route level? I have a single route where I would like JSON to be decoded without keywordizing, but I'd like to not change the default for other routes (which do want the keywordizing). Is this possible?

plexus 2024-04-22T07:09:07.410129Z

ok, figured it out. Just putting a :muuntaja key in the route data with a different muuntaja instance does the trick

👍 1
ikitommi 2024-04-22T13:36:43.039389Z

👍

jmckitrick 2024-04-22T12:37:18.455509Z

Is it ok to ask a malli question here?

✅ 1
jmckitrick 2024-04-22T13:41:09.576629Z

Ok, here’s my question. We are doing a rather large cleanup of our api, and we want to unify our validation approach. We are using data-spec because it works well with swagger, and documents the model in each endpoint for our customers.

jmckitrick 2024-04-22T13:41:22.194789Z

But we want to move to malli exclusively.

jmckitrick 2024-04-22T13:41:27.028779Z

Is there a migration path?

jmckitrick 2024-04-22T13:41:46.163859Z

I’m looking at lite but I’m not sure I’m on the right track.

2024-04-22T15:28:32.510609Z

There is a #malli channel where you possibly find better answers And sorry, I don't know enough Malli to be of help

jmckitrick 2024-04-22T15:28:56.339349Z

Oh, I must have missed that. Thanks!