reitit 2024-03-30

For query parameters is there a flag when integrating with malli coercion to make all keys optional?

That's a shame, seems like an important thing if you want additionally passed query parameters to be ignored. As they so often are by, e.g. social media.

you can merge [:request :query-params] with [:parameters :query] to get the full set?

but the reitit + malli integration should be redone, it’s complex but still not powerful enough to do what is needed

I need to confirm, but I think I'm getting the requests rejected when there's extra query parameters

I'll check now

{"value":{},"type":"reitit.coercion/request-coercion","coercion":"malli","in":["request","query-params"],"humanized":{"range":["missing required key"],"sort":["missing required key"],"filter":["missing required key"]}} This is the problem, the key isn't really required and I want it automatically non-required.

ah, I'm making that up that extra parameters cause a problem. So the only problem is that my explicitly requested query params aren't optional. Which requires me to use the "full" syntax rather than lite, which is a shame but hey ho 🙂