You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause is the -walk implementation for -schema-schema:
(-walk [this walker path options]
(when (-accept walker this path options)
(if (or (not id) ((-boolean-fn (::walk-schema-refs options false)) id))
(-outer walker this path (-inner-indexed walker path children options) options)
(-outer walker this path [id] options))))
This combined with m/schema-walker causes (m/-set-children schema [id]), which overrides the child from :int to "Foo". Luckily this doesn't cause a loop in later schema walking, just the need for one more deref.
The text was updated successfully, but these errors were encountered:
The result of
mu/closed-schema
needs one morem/deref
to get to the concrete schema. The same happens with a trivialm/schema-walker
use.Demonstration:
The root cause is the
-walk
implementation for-schema-schema
:This combined with
m/schema-walker
causes(m/-set-children schema [id])
, which overrides the child from:int
to"Foo"
. Luckily this doesn't cause a loop in later schema walking, just the need for one more deref.The text was updated successfully, but these errors were encountered: