Swagger Spec for Clojure Web Apps
additionalProperties
via s/Keyword
-key in the schemas. Thanks for Juan Patten for the initial code.IllegalArgumentException
if multiple different schemas have a same name. Fixes #39
javax.servlet ServletContext
, causing reflection on Servlet Apps.[prismatic/plumbing "0.4.2"] is available but we use "0.4.1"
[metosin/schema-tools "0.4.0"] is available but we use "0.3.0"
ring/swagger/v2.0_schema.json
[metosin/scjsv "0.2.0"] is available
:resourcePath
is now set correctly with Swagger 1.2 endpoints (fixes #36.with-named-sub-schemas
takes an optional parameter - prefix for schema names[metosin/schema-tools "0.3.0]
to walk over Schema records both to fetch schema names and give names to subschemas (Swagger 2.0 only)
[lein-ring "0.9.3"] is available but we use "0.9.2"
ring.swagger.swagger2/swagger-json
now takes an optional extra argument, the Options-map
with options :ignore-missing-mappings?
& :default-response-description-fn
s/either
from ring.swagger.json-schema-dirty
to ring.swagger.json-schema
.
Uses the first schema element as the source for the mappingsring.swagger.middleware/wrap-validation-error
takes now options as a single map[metosin/ring-http-status "0.6.0"] is available but we use "0.5.2"
[prismatic/schema "0.3.7"] is available but we use "0.3.3"
[prismatic/plumbing "0.3.7"] is available but we use "0.3.5"
[lein-ring "0.9.2"] is available but we use "0.9.1"
/api/docs
to be more backwards compatible. Swagger2-clients should use swagger.json
.ring.swagger.middleware/comp-mw
to make middleware parametrization easier:(def wrap-swagger2-ui
(comp-mw wrap-swagger-ui :swagger-docs "swagger.json"))
ring.swagger.swagger2
with clean public API with Schemas/api/docs
to /swagger.json
(2.0 standard)ring.swagger.middleware
the catch-validation-error
is now wrap-validation-error
:error-handler
to allow error response customization & :catch-core-errors?
for
catching :schema.core/error
s (defaults to false
).coerce
and coerce!
ring.swagger.validator
)java.util.regex Pattern
/ s/Regex
(as a class)#"^[a-9]$"
(as a instance)authorization
parameters by Dmitry Groshev
[cheshire "5.4.0"] is available but we use "5.3.1"
[clj-time "0.9.0"] is available but we use "0.8.0"
*[metosin/ring-swagger-ui "2.0.24"] is available but we use "2.0.17"
*[com.github.fge/json-schema-validator "2.2.6"] is available but we use "2.2.5"
*[lein-ring "0.9.1"] is available but we use "0.8.13"
[instar "1.0.10"]