Releases: metosin/ring-swagger
Releases · metosin/ring-swagger
0.16.0
- Swagger 2.0 support!!
- new namespace
ring.swagger.swagger2
with clean public API with Schemas
- new namespace
- breaking change: default spec location changed from
/api/docs
to/swagger.json
(2.0 standard) - breaking change: in
ring.swagger.middleware
thecatch-validation-error
is nowwrap-validation-error
- takes an extra option:
:error-handler
to allow error response customization &:catch-core-errors?
for
catching:schema.core/error
s (defaults tofalse
).
- takes an extra option:
- one can now plug own coercers for
coerce
andcoerce!
- 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
- 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
0.14.0
- 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
- Updated dependencies
- camel-snake-kebab 0.2.0 renamed the ns
camel-snake-kebab
tocamel-snake-kebab.core
- camel-snake-kebab 0.2.0 renamed the ns
ring.swagger.json-schema-dirty
namespace now provides experimental
implementation fors/if
,s/conditional
ands/either
Schema transformations.- Fixed a bug with
s/recursive
0.12.0
- Should now keep order of properties in Schemas if using
ordered-map
- Use
ordered-map
from flatland.ordered.map (s/defschema (ordered-map :a String ...))
- Use
0.11.0
- Removed
ring.swagger.schema/defmodel
, please useschema.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")
- Instead of
- New