a :schema reference is eager, unlike :ref which is lazy
A sub-regex-schema, like [:cat :int [:schema [:cat :int :int]]]
To avoid weird corner cases like #884 and #851 in the future, we should add new schemas for use cases 3 and 4. We should also have a good look at use case 2 and see if the code for it is right (m/-pointer).
Ideally, -schema-schema would only be responsible for use case 1.
Currently,
-schema-schema
is used for 4 different things:[:schema {:foo 1} :int]
m/form
, but just outputs the form of the child:[:schema "Foo"]
:schema
reference is eager, unlike:ref
which is lazy[:cat :int [:schema [:cat :int :int]]]
To avoid weird corner cases like #884 and #851 in the future, we should add new schemas for use cases 3 and 4. We should also have a good look at use case 2 and see if the code for it is right (
m/-pointer
).Ideally,
-schema-schema
would only be responsible for use case 1.Based on a discussion with @ikitommi