funcool / funcool/struct

A mismatch of the strip option in the validate API

Offen
#24 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Clojure
Sterne
116
Forks
15
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.