Skip to content

Commit

Permalink
-children returns always vector of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Aug 27, 2024
1 parent 6f7c723 commit be2c2be
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/malli/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1625,15 +1625,10 @@
(-to-ast [this _] (-entry-ast this (-entry-keyset entry-parser)))
DistributiveSchema
(-distributive-schema? [_] true)
(-distribute-to-children [_ f _]
(-distribute-to-children [this f _]
(-into-schema parent
properties
(mapv (fn [c]
(when-not (and (vector? c)
(= 2 (count c)))
(throw (ex-info "TODO" {})))
(update c 1 f options))
children)
(mapv (fn [c] (update c 2 f options)) (-children this))
options))
Schema
(-validator [_]
Expand Down

0 comments on commit be2c2be

Please sign in to comment.