Skip to content

Commit af8646a

Browse files
author
Alan Christie
committed
fix: Better doc-url validation
1 parent 07f1657 commit af8646a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

decoder/job-definition-schema.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ definitions:
6868
maxLength: 24
6969
category:
7070
type: string
71+
# The doc-url must either start 'https', or with a letter.
72+
# It cannot end with '/'.
7173
doc-url:
7274
type: string
73-
pattern: '^(https|[a-z]).+$'
75+
pattern: '^(https|[a-z]).+(?<!/)$'
7476
keywords:
7577
type: array
7678
items:

0 commit comments

Comments
 (0)