ml-archive / forms

Tools for working with Forms in Vapor
MIT License
7 stars 0 forks source link

Consider how to handle optional input #13

Open steffendsommer opened 6 years ago

steffendsommer commented 6 years ago

I don't have the full overview of the package but creating this as reminder and as a way to start the discussing.

I think we should consider if we could somehow hide away the optional part of the validator. It could be as simple as defaulting to accept nil values unless one explicitly specifies how to handle nil values using the .allowingNils.

Thoughts?