Skip to content
New issue

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

A mismatch of the strip option in the validate API #24

Open
makinoshi opened this issue Oct 23, 2019 · 0 comments
Open

A mismatch of the strip option in the validate API #24

makinoshi opened this issue Oct 23, 2019 · 0 comments

Comments

@makinoshi
Copy link

Hi, funcool. Thank you for your creating nice validation library.

I've found a mismatch between document and its work.

validate API's comment says,

This function by default strips all data that are not defined in
schema, but this behavior can be changed by passing {:strip false}
as third argument.

but actually default value of strip is false.
https://github.com/funcool/struct/blob/master/src/struct/core.cljc#L129

Which have you intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant