poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Invalid documentation on toBoolean sanitization #188

Closed FrenchMajesty closed 6 years ago

FrenchMajesty commented 6 years ago

Hello,

On the following page: https://indicative.adonisjs.com/docs/toboolean

The code snippets use boolean as a sanitization but it is incorrect. I tried to use it but I got an error saying boolean is not a sanitization rule so looking at the rest of the documentation I used to_boolean instead since it was consistent with the other rules and it did work.

It would be nice if someone could correct that small mistake in the doc.

RomainLanz commented 6 years ago

Hey @FrenchMajesty! 👋

Could you make a PR for this?