diff --git a/src/wanijo/framework/form.clj b/src/wanijo/framework/form.clj index 7321a1b..5f0fd71 100644 --- a/src/wanijo/framework/form.clj +++ b/src/wanijo/framework/form.clj @@ -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