Skip to content

Commit 833d25d

Browse files
authored
[Fix #1119] Allowing runtime xpression for duration (#1120)
Signed-off-by: fjtirado <[email protected]>
1 parent cc6cf59 commit 833d25d

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
@@ -2297,7 +2297,7 @@ timeout:
22972297

22982298
### Duration
22992299

2300-
Defines a duration.
2300+
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
23012301

23022302
#### Properties
23032303

schema/workflow.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,10 +1215,13 @@ $defs:
12151215
description: Number of milliseconds, if any.
12161216
title: DurationInline
12171217
description: The inline definition of a duration.
1218+
- $ref: '#/$defs/runtimeExpression'
1219+
title: DurationExpression
1220+
description: Runtime expression that generates an ISO 8601
12181221
- type: string
12191222
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)?)?$'
1220-
title: DurationExpression
1221-
description: The ISO 8601 expression of a duration.
1223+
title: DurationLiteral
1224+
description: The Literal ISO 8601 representation of a duration.
12221225
error:
12231226
type: object
12241227
title: Error

0 commit comments

Comments
 (0)