funcool / funcool/struct

A mismatch of the strip option in the validate API

オープン
#24 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。