Skip to content

Releases: metosin/ring-swagger

0.16.0

26 May 11:12
Compare
Choose a tag to compare
  • 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"]

0.15.0

26 May 11:11
Compare
Choose a tag to compare
  • new feature: binding dynamic variable ring.swagger.json-schema/*ignore-missing-mappings*
    to true will cause unknown json-schema mappings to be ignored
  • fixed #42
  • updated dependencies:
[metosin/ring-http-response "0.5.2"] is available but we use "0.5.1"
[prismatic/schema "0.3.3"] is available but we use "0.3.2"
[ring/ring-core "1.3.2"] is available but we use "1.3.1"

0.14.1

26 May 11:11
Compare
Choose a tag to compare
  • support for s/Named
  • use [org.tobereplaced/lettercase "1.0.0"] in favour of [camel-snake-kebab "0.2.5"]
  • update deps:
[prismatic/schema "0.3.2"] is available but we use "0.3.1"

0.14.0

30 Oct 20:09
Compare
Choose a tag to compare
  • support for java.lang.Number, java.lang.Integer, s/Num
  • Updated deps:
[slingshot "0.12.1"] is available but we use "0.12.0"
[metosin/ring-http-response "0.5.1"] is available but we use "0.5.0"
[prismatic/plumbing "0.3.5"] is available but we use "0.3.4"
[camel-snake-kebab "0.2.5"] is available but we use "0.2.4"
[potemkin "0.3.11"] is available but we use "0.3.10"
[lein-ring "0.8.13"] is available but we use "0.8.11"
[prismatic/schema "0.3.1"] is available but we use "0.2.6"

0.13.0

04 Sep 18:45
Compare
Choose a tag to compare
  • Updated dependencies
    • camel-snake-kebab 0.2.0 renamed the ns camel-snake-kebab to camel-snake-kebab.core
  • ring.swagger.json-schema-dirty namespace now provides experimental
    implementation for s/if, s/conditional and s/either Schema transformations.
  • Fixed a bug with s/recursive

0.12.0

19 Aug 16:48
Compare
Choose a tag to compare
  • Should now keep order of properties in Schemas if using ordered-map

0.11.0

10 Aug 12:31
Compare
Choose a tag to compare
  • Removed ring.swagger.schema/defmodel, please use schema.core/defschema.
  • Split JSON Schema generation to a json-schema module.
  • Refactored Json schema transformations
    • New describe helper:
      • Instead of (field Long {:description "The description"}) you can use
      • (describe Long "The description")

0.8.7

12 May 07:50
Compare
Choose a tag to compare
  • Added type hints where lein check suggested
  • Added swagger-ui tests for multiple envinronments
    • Fixed swagger-ui for servlet envinronment