Skip to content

Commit 04c0d90

Browse files
committed
[Fix #1071] Until option if any is empty
Fix #1071 Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
1 parent be474b2 commit 04c0d90

File tree

2 files changed

+19
-51
lines changed

2 files changed

+19
-51
lines changed

.ci/validation/test/fixtures/invalid/listen-any-empty-no-until.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

schema/workflow.yaml

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,47 +1325,25 @@ $defs:
13251325
$ref: '#/$defs/eventFilter'
13261326
required: [ all ]
13271327
- title: AnyEventConsumptionStrategy
1328-
oneOf:
1329-
- properties:
1330-
any:
1331-
type: array
1332-
title: AnyEventConsumptionStrategyConfiguration
1333-
description: A list containing any of the events to consume.
1334-
items:
1335-
$ref: '#/$defs/eventFilter'
1336-
minItems: 1
1337-
until:
1338-
oneOf:
1339-
- type: string
1340-
title: AnyEventUntilCondition
1341-
description: A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1342-
- allOf:
1343-
- $ref: '#/$defs/eventConsumptionStrategy'
1344-
title: AnyEventUntilConsumed
1345-
description: The strategy that defines the event(s) to consume to stop listening.
1346-
- properties:
1347-
until: false
1348-
required: [ any ]
1349-
- properties:
1350-
any:
1351-
type: array
1352-
title: AnyEventConsumptionStrategyConfiguration
1353-
description: A list containing any of the events to consume.
1354-
items:
1355-
$ref: '#/$defs/eventFilter'
1356-
maxItems: 0
1357-
until:
1358-
oneOf:
1359-
- type: string
1360-
title: AnyEventUntilCondition
1361-
description: A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1362-
- allOf:
1363-
- $ref: '#/$defs/eventConsumptionStrategy'
1364-
title: AnyEventUntilConsumed
1365-
description: The strategy that defines the event(s) to consume to stop listening.
1366-
- properties:
1367-
until: false
1368-
required: [ any, until ]
1328+
properties:
1329+
any:
1330+
type: array
1331+
title: AnyEventConsumptionStrategyConfiguration
1332+
description: A list containing any of the events to consume.
1333+
items:
1334+
$ref: '#/$defs/eventFilter'
1335+
until:
1336+
oneOf:
1337+
- type: string
1338+
title: AnyEventUntilCondition
1339+
description: A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1340+
- allOf:
1341+
- $ref: '#/$defs/eventConsumptionStrategy'
1342+
description: The strategy that defines the event(s) to consume to stop listening.
1343+
- properties:
1344+
until: false
1345+
title: AnyEventUntilConsumed
1346+
required: [ any ]
13691347
- title: OneEventConsumptionStrategy
13701348
properties:
13711349
one:

0 commit comments

Comments
 (0)