We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating a schema fails when empty non-map collection are used
Input (mp/provide [{:example []}]) Output [:map [:example [:vector [:or]]]]
(mp/provide [{:example []}])
[:map [:example [:vector [:or]]]]
Input (mp/provide [{:example '()}]) Output [:map [:example [:list [:or]]]] Input (mp/provide [{:example #{}}]) Output [:map [:example [:set [:or]]]]
(mp/provide [{:example '()}])
[:map [:example [:list [:or]]]]
(mp/provide [{:example #{}}])
[:map [:example [:set [:or]]]]
The expected behaviour is the same as when providing an empty map
Input (mp/provide [{:example {}}]) Output [:map [:example [:map]]]
(mp/provide [{:example {}}])
[:map [:example [:map]]]
This fails
(mu/union [:map [:example string?]] [:map [:example [:vector]]])
This succeeds
(mu/union [:map [:example string?]] [:map [:example [:map]]])
The text was updated successfully, but these errors were encountered:
8b2aa9f
No branches or pull requests
Behaviour:
Generating a schema fails when empty non-map collection are used
Input
(mp/provide [{:example []}])
Output
[:map [:example [:vector [:or]]]]
Input
(mp/provide [{:example '()}])
Output
[:map [:example [:list [:or]]]]
Input
(mp/provide [{:example #{}}])
Output
[:map [:example [:set [:or]]]]
Expected:
The expected behaviour is the same as when providing an empty map
Input
(mp/provide [{:example {}}])
Output
[:map [:example [:map]]]
Possibly related issue
This fails
This succeeds
The text was updated successfully, but these errors were encountered: