Skip to content

Commit 09574ca

Browse files
committed
add a validator to copyright holder
1 parent a2459a2 commit 09574ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

copier/questions/essential.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ copyright_holder:
4646
type: str
4747
placeholder: Netherlands eScience Center
4848
help: Who is the copyright holder?
49-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
49+
validator: >-
50+
{% if not copyright_holder %}
51+
This field cannot be empty
52+
{% endif %}

0 commit comments

Comments
 (0)