mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Fix spec example
This commit is contained in:
parent
8a205002a8
commit
1992198b58
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
; [reitit.ring.middleware.dev :as dev]
|
; [reitit.ring.middleware.dev :as dev]
|
||||||
; [reitit.ring.spec :as spec]
|
; [reitit.ring.spec :as spec]
|
||||||
; [spec-tools.spell :as spell]
|
; [spec-tools.spell :as spell]
|
||||||
[spec-tools.data-spec :as ds]
|
[spec-tools.core :as st]
|
||||||
[ring.adapter.jetty :as jetty]
|
[ring.adapter.jetty :as jetty]
|
||||||
[muuntaja.core :as m]
|
[muuntaja.core :as m]
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
;; Use data-specs to provide extra JSON-Schema properties:
|
;; Use data-specs to provide extra JSON-Schema properties:
|
||||||
;; https://github.com/metosin/spec-tools/blob/master/docs/04_json_schema.md#annotated-specs
|
;; https://github.com/metosin/spec-tools/blob/master/docs/04_json_schema.md#annotated-specs
|
||||||
(s/def ::x (ds/spec {:spec int?
|
(s/def ::x (st/spec {:spec int?
|
||||||
:name "X parameter"
|
:name "X parameter"
|
||||||
:description "Description for X parameter"
|
:description "Description for X parameter"
|
||||||
:json-schema/default 42}))
|
:json-schema/default 42}))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue