Fork me on GitHub
#yada
<
2016-06-13
>
jonathanj10:06:53

How do I produce the Swagger metadata for parameters and responses in yada?

griff14:06:27

@jonathanj: What kind of metadata for parameters were you thinking about? Because just having the parameters defined in the resource should be enough to add them to swagger. For responses you can add :swagger/responses key to method for now.

jonathanj14:06:02

@griff: hmm, how do I document the meaning of the parameters?

jonathanj14:06:43

Sorry, I'm on my phone now but I was looking through the manual code earlier and didn't see information for that.

jonathanj14:06:31

Yeah, looking at it again the parameters are a schema mapping param name to type, it's not clear how you write a docstring for the param.

jonathanj14:06:49

Ah, ring-swagger, that seems like the part of this that I was missing.

jonathanj14:06:15

Presumably one can use this same method to document the response schema.

jonathanj14:06:31

Is it possible to log exceptions somewhere when they occur?

jonathanj14:06:11

I'm getting HTTP 500 (in IE 6) when trying to view the swagger UI resource and I'd like to know why.

jonathanj14:06:36

(Or a better approach would be welcome too)