funcool / funcool/struct

A mismatch of the strip option in the validate API

Ouverte
#24 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Clojure
Étoiles
116
Forks
15
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.