funcool / funcool/struct

A mismatch of the strip option in the validate API

Aperta
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Clojure
Stelle
116
Fork
15
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.