Skip to content

Commit 0f89dd1

Browse files
committed
Added the name regex tp specification.md
1 parent 4d0b236 commit 0f89dd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

specification.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6200,9 +6200,11 @@ The specification doesn't define any specific variable within the `WORKFLOW` buc
62006200

62016201
### Naming Convention
62026202

6203-
Identifiable components of a workflow definition, such as states, actions, branches, events and functions define a required non-null `name` property which is based on DNS label names as defined by [RFC 1123](https://datatracker.ietf.org/doc/html/rfc1123) with further restrictions.
6203+
Identifiable components of a workflow definition, such as states, actions, branches, events and functions define a required non-null `name` property which is based on DNS label names as defined by [RFC 1123](https://datatracker.ietf.org/doc/html/rfc1123#page-13) with further restrictions.
62046204

6205-
Specifically, `name`s must be lowercase, start and end with an alphanumeric character, and consist entirely of alphanumeric characters with optional isolated medial dashes '-' (i.e., dashes must not be adjacent to each other).
6205+
Specifically, `names` must be lowercase, start and end with an alphanumeric character, and consist entirely of alphanumeric characters with optional isolated medial dashes '-' (i.e., dashes must not be adjacent to each other).
6206+
6207+
The regular expression used in [schemas](/schema/workflow.json) is: `^[a-z0-9](-?[a-z0-9])*$`.
62066208

62076209
## Extensions
62086210

0 commit comments

Comments
 (0)