Skip to content

Commit ffd144f

Browse files
authored
Merge branch 'main' into main
2 parents 5bc74b2 + 833d25d commit ffd144f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dsl-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ timeout:
23582358

23592359
### Duration
23602360

2361-
Defines a duration.
2361+
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
23622362

23632363
#### Properties
23642364

schema/workflow.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,10 +1250,13 @@ $defs:
12501250
description: Number of milliseconds, if any.
12511251
title: DurationInline
12521252
description: The inline definition of a duration.
1253+
- $ref: '#/$defs/runtimeExpression'
1254+
title: DurationExpression
1255+
description: Runtime expression that generates an ISO 8601
12531256
- type: string
12541257
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)?)?$'
1255-
title: DurationExpression
1256-
description: The ISO 8601 expression of a duration.
1258+
title: DurationLiteral
1259+
description: The Literal ISO 8601 representation of a duration.
12571260
error:
12581261
type: object
12591262
title: Error

0 commit comments

Comments
 (0)