change required and spec to be optional field keys

integration-tests
Josha von Gizycki 6 years ago
parent d242cc4e37
commit 4771ede3a6

@ -18,13 +18,13 @@
(spec/and fn? #(= 1 (->> % meta :arglists (map count) first))))
(spec/def ::to-form ::from-req)
(spec/def ::field
(spec/keys :req-un [::label
::required
::spec]
(spec/keys :req-un [::label]
:opt-un [::options
::widget
::from-req
::to-form]))
::to-form
::required
::spec]))
(spec/def ::fields
(spec/map-of keyword? ::field))
(spec/def ::form

Loading…
Cancel
Save