metosin / ring-swagger

Swagger Spec for Clojure Web Apps
http://metosin.github.io/ring-swagger/doc/
371 stars 84 forks source link

Json-schema for body responses #127

Closed davidjameshumphreys closed 7 years ago

davidjameshumphreys commented 7 years ago

When defining response bodies for routes we'd like to use ring.swagger.json-schema.

(rjsj/describe {:body ...} "Reason")

This gets around some restrictions that we found when interacting with other libraries.

ikitommi commented 7 years ago

awesome, thanks! At some point when, we'll move the schema meta-data (and coercion) utilities from ring-swagger to schema-tools. Clean apis, similar/identical for both schema and spec. Already done for the spec side.

https://github.com/metosin/schema-tools/issues/32 https://github.com/metosin/spec-tools/issues/23