is it common to define the schema for error responses with ring-swagger/schema?
from what i can tell with compojure api, only 200 responses are validated against a schema
Really? I believe setting :responses {500 {:schema ErrorSchema}}
should validate that too.
:return
is just a shortcut to setting the 200 response.
We haven't usually described the errors. Usually returning a map with key :type
as a convention to dispatch on on the client side.