funcool / funcool/struct

A mismatch of the strip option in the validate API

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Clojure
星标
116
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。