Fork me on GitHub
#yada
<
2016-01-17
>
joshg01:01:54

Schema checking does not seem to be working for POST requests. Is that only for GETs at the moment?

malcolmsparks09:01:35

@joshg: What media-type are you using?

malcolmsparks10:01:29

I'll look into it, in 1.1 forms and bodies are treated separately from the other params (body processing is asynchronous and supports streaming)

malcolmsparks10:01:46

I could have missed doing something obvious

malcolmsparks10:01:54

i'll check basic forms first

dominicm15:01:38

RE :raw & :body, perhaps records would fit the bill slightly better there, as it would play into Yada's protocol system very well.

joshg18:01:24

@malcolmsparks: I was using application/json content type

malcolmsparks19:01:58

good excuse to fix this now, for all affected media types. @imre and I were putting in transit last week and we skipped out on the schema coercion side - I'll put some tests in tonight (if not, in the next few days) and fix this

malcolmsparks20:01:36

@joshg: should be all fixed now. Thanks for the report. New release is [yada "1.1.0-20160117.205509-8"]

malcolmsparks20:01:31

There's no body coercions but I think that if you want to ingest JSON bodies chances are you want yada to leave the alone, it's not quite the same case as query/path params etc.