Skip to content

Commit 3aeeae0

Browse files
committed
Add filter error
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
1 parent dd4987f commit 3aeeae0

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

schema/workflow.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,19 +777,22 @@ $defs:
777777
errors:
778778
type: object
779779
title: CatchErrors
780-
description: The configuration of a concept used to catch errors.
780+
properties:
781+
with:
782+
$ref: '#/$defs/errorFilter'
783+
description: static error filter
781784
as:
782785
type: string
783786
title: CatchAs
784787
description: The name of the runtime expression variable to save the error as. Defaults to 'error'.
785788
when:
786789
type: string
787790
title: CatchWhen
788-
description: A runtime expression used to determine whether or not to catch the filtered error.
791+
description: A runtime expression used to determine whether to catch the filtered error.
789792
exceptWhen:
790793
type: string
791794
title: CatchExceptWhen
792-
description: A runtime expression used to determine whether or not to catch the filtered error.
795+
description: A runtime expression used to determine whether not to catch the filtered error.
793796
retry:
794797
oneOf:
795798
- $ref: '#/$defs/retryPolicy'
@@ -1152,6 +1155,27 @@ $defs:
11521155
title: ErrorDetails
11531156
description: A human-readable explanation specific to this occurrence of the error.
11541157
required: [ type, status ]
1158+
errorFilter:
1159+
type: object
1160+
title: ErrorFilter
1161+
description: Error filtering base on static values. For error filtering on dynamic values, use catch.when property
1162+
properties:
1163+
type:
1164+
type: string
1165+
description: if not null, means that value should be used for filtering
1166+
status:
1167+
type: integer
1168+
default: -1
1169+
description: if different than -1, means this value should be used for filtering
1170+
instance:
1171+
type: string
1172+
description: if not null, means this instance value should be used for filtering
1173+
title:
1174+
type: string
1175+
description: if not null, means that value should be used for filtering
1176+
details:
1177+
type: string
1178+
description: if not null, means that value should be used for filtering
11551179
uriTemplate:
11561180
title: UriTemplate
11571181
anyOf:

0 commit comments

Comments
 (0)