boilr icon indicating copy to clipboard operation
boilr copied to clipboard

Validation, required values, etc...

Open schmunk42 opened this issue 8 years ago • 1 comments

How can I add validation to the project.json variables?

  • I.e. default empty value, but it's required to enter at least 10 chars?
  • or pregenerated random stings

schmunk42 avatar Nov 17 '16 14:11 schmunk42

@schmunk42 right now you can use template conditionals to check the length and throw out an error.

Ability to specify regular expressions for validating fields should be good enough, I'll think about a solution that doesn't bloat the project.json syntax to solve it

tmrts avatar Jan 07 '17 15:01 tmrts