Skip to content

Commit

Permalink
🔧 Prevent empty inputs in creation survey
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Nov 3, 2023
1 parent 0d3b909 commit 1209b54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraper_template/copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ _exclude:
display_name:
type: str
help: "The human-readable display name of your new scraper"
validator: "{% if display_name.strip() == '' %}Can not be empty{% endif %}"

module_name:
type: str
Expand All @@ -28,14 +29,17 @@ description:
type: str
help: Enter a description for your scraper
multiline: True
validator: "{% if description.strip() == '' %}Can not be empty{% endif %}"

contact_name:
type: str
help: Please enter your name
validator: "{% if contact_name.strip() == '' %}Can not be empty{% endif %}"

contact_email:
type: str
help: Please enter an email address (or equivalent) that can be used to contact you
validator: "{% if contact_email.strip() == '' %}Can not be empty{% endif %}"

interval:
type: str
Expand Down

0 comments on commit 1209b54

Please sign in to comment.