Ring Swagger Versions Save

Swagger Spec for Clojure Web Apps

0.19.6

9 years ago
  • initial support for additionalProperties via s/Keyword -key in the schemas. Thanks for Juan Patten for the initial code.

0.19.5

9 years ago
  • throw IllegalArgumentException if multiple different schemas have a same name. Fixes #39
  • drop import of javax.servlet ServletContext, causing reflection on Servlet Apps.
  • updated dependencies:
[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"

0.19.4

9 years ago
  • minify Ring-Swagger 2.0 Schema - just the essentials
  • Swagger2.0 JSON Schema is now in classpath ring/swagger/v2.0_schema.json
  • exclude ill transitive dependencies from Instar (cljx, cljs)
  • use ~1000x faster JSON Schema validator in tests:
[metosin/scjsv "0.2.0"] is available

0.19.3

9 years ago
  • :resourcePath is now set correctly with Swagger 1.2 endpoints (fixes #36.

0.19.2

9 years ago
  • avoid reflection with regexps, thanks to Michael Blume
  • default 2.0 responses don't have schemas
  • support for walking over Schema predicates support for 1.2 too

0.19.1

9 years ago
  • with-named-sub-schemas takes an optional parameter - prefix for schema names
  • Schema-names are now generated as String instead of Keywords in the swagger-json 2.0
  • uses [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)
    • see tests - in the end of the file
[lein-ring "0.9.3"] is available but we use "0.9.2"

0.18.1

9 years ago
  • Fixed wrap-validation-errors defaults

0.18.0

9 years ago
  • fixed Swagger 2.0 response bug #29
  • ring.swagger.swagger2/swagger-json now takes an optional extra argument, the Options-map with options :ignore-missing-mappings? & :default-response-description-fn
  • ensured that ignoring missing mappings works for both body- & non-body parameters
  • BREAKING:
    • moved binding of s/either from ring.swagger.json-schema-dirty to ring.swagger.json-schema. Uses the first schema element as the source for the mappings
    • ring.swagger.middleware/wrap-validation-error takes now options as a single map
  • updated deps:
[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"

0.17.0

9 years ago
  • revert default spec location to /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"))

0.16.0

9 years ago
  • Swagger 2.0 support!!
    • new namespace ring.swagger.swagger2 with clean public API with Schemas
  • breaking change: default spec location changed from /api/docs to /swagger.json (2.0 standard)
  • breaking change: in ring.swagger.middleware the catch-validation-error is now wrap-validation-error
    • takes an extra option: :error-handler to allow error response customization & :catch-core-errors? for catching :schema.core/errors (defaults to false).
  • one can now plug own coercers for coerce and coerce!
  • use real swagger json schema validator for tests (ring.swagger.validator)
  • potential breaking changes for library developers due massive refactoring
  • support for Regexp schemas:
    • java.util.regex Pattern / s/Regex (as a class)
    • #"^[a-9]$" (as a instance)
  • support for 1.2 spec authorization parameters by Dmitry Groshev
  • oauth2-configs for swagger-ui by Dmitry Groshev
  • updated dependencies:
[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"]