Fork me on GitHub
#ring-swagger
<
2017-11-03
>
nickmbailey00:11:10

is it common to define the schema for error responses with ring-swagger/schema?

nickmbailey00:11:38

from what i can tell with compojure api, only 200 responses are validated against a schema

ikitommi06:11:52

Really? I believe setting :responses {500 {:schema ErrorSchema}} should validate that too.

ikitommi06:11:43

:return is just a shortcut to setting the 200 response.

ikitommi06:11:46

We haven't usually described the errors. Usually returning a map with key :type as a convention to dispatch on on the client side.