-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
Description
(require 'ring.swagger.json-schema '[schema.core :as s] '[schema-tools.core :as st])
(ring.swagger.json-schema/->swagger s/Int)
;; => {:type "integer", :format "int64"}
(ring.swagger.json-schema/->swagger (st/default s/Int 32))
;; => IllegalArgumentException don't know how to convert schema_tools.impl.Default@34fec257 into a Swagger Schema. Check out ring-swagger docs for details. ring.swagger.json-schema/not-supported! (json_schema.clj:66)I'd expect st/default to work and give the same result or preferably one with :default 32.
Reactions are currently unavailable