Fork me on GitHub
#ring-swagger
<
2016-10-28
>
abarylko00:10:14

I'm trying to find in the documentation how to do coercion... but I'm not sure where to put the custom coercions.... any help?

nberger01:10:41

@abarylko default coercions are in default-coercion-matchers. I guess you have to modify those with your own coercions and pass it as the :coercion option. I'm on the phone and am not sure how to modify it exactly, but hope it helps

nberger01:10:40

@abarylko you were asking about token auth, did you find an answer? I can't help but I'm curious what are you using exactly, is something like https://github.com/JarrodCTaylor/authenticated-compojure-api by any chance?

ikitommi05:10:21

@abarylko not too much docs about custom coercion, but the tests should provide some docs: https://github.com/metosin/compojure-api/blob/master/test/compojure/api/coercion_test.clj

ikitommi05:10:30

@tom currently, there is no code to handle batch requests. But it’s all Ring, so if there is/would be a batch-request handler for Ring, it could be used. You could ask on the #ring channel about this too?

ikitommi12:10:01

@tap wiki would be the right place, there is the old README as a wiki-page, should be split into separate pages. Did few placeholders for candidates for separate pages: https://github.com/metosin/compojure-api/wiki

ikitommi12:10:20

the old README is there as the The old (bloated) README, with lot's of stuff in

ikitommi12:10:43

Documentation is the hardest part with libs, imo.