ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

passing in `:predicate` from `wrap-format` #76

Open flyingmachine opened 3 years ago

flyingmachine commented 3 years ago

It'd be nice to be able to write something like:

 (wrap-restful-format handler {:params-options {:transit-json {:predicate pred-fn}}})

It looks like {:predicate pred-fn} gets stashed under the :options key by the time it gets to wrap-transit-json-params