emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

New Validator: strip #228

Closed josejachuf closed 6 years ago

josejachuf commented 6 years ago

@gi0baro I know that I can create a custom validator for this, but it would be convenient to have a strip validator that removes the initial and final spaces inside the core of weppy

my_field = Field(validation={'strip': True})

josejachuf commented 6 years ago

From what I see, the strip is being done implicitly