Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation, required values, etc... #34

Open
schmunk42 opened this issue Nov 17, 2016 · 1 comment
Open

Validation, required values, etc... #34

schmunk42 opened this issue Nov 17, 2016 · 1 comment

Comments

@schmunk42
Copy link

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
@tmrts
Copy link
Owner

tmrts commented Jan 7, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants