Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@ timeout:

### Duration

Defines a duration.
Defines a duration. Durations can be defined through properties, with an ISO 8601 string or with a runtime expression that is evaluated to an ISO 8601 string

#### Properties

Expand Down
7 changes: 5 additions & 2 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1215,10 +1215,13 @@ $defs:
description: Number of milliseconds, if any.
title: DurationInline
description: The inline definition of a duration.
- $ref: '#/$defs/runtimeExpression'
title: DurationExpression
description: Runtime expression that generates an ISO 8601
- type: string
pattern: '^P(?!$)(\d+(?:\.\d+)?Y)?(\d+(?:\.\d+)?M)?(\d+(?:\.\d+)?W)?(\d+(?:\.\d+)?D)?(T(?=\d)(\d+(?:\.\d+)?H)?(\d+(?:\.\d+)?M)?(\d+(?:\.\d+)?S)?)?$'
title: DurationExpression
description: The ISO 8601 expression of a duration.
title: DurationLiteral
description: The Literal ISO 8601 representation of a duration.
error:
type: object
title: Error
Expand Down