Skip to content

Commit

Permalink
Add filter error
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
  • Loading branch information
fjtirado committed Nov 29, 2024
1 parent dd4987f commit 69f8292
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -777,19 +777,22 @@ $defs:
errors:
type: object
title: CatchErrors
description: The configuration of a concept used to catch errors.
properties:
with:
$ref: '#/$defs/errorFilter'
description: static error filter
as:
type: string
title: CatchAs
description: The name of the runtime expression variable to save the error as. Defaults to 'error'.
when:
type: string
title: CatchWhen
description: A runtime expression used to determine whether or not to catch the filtered error.
description: A runtime expression used to determine whether to catch the filtered error.
exceptWhen:
type: string
title: CatchExceptWhen
description: A runtime expression used to determine whether or not to catch the filtered error.
description: A runtime expression used to determine whether not to catch the filtered error.
retry:
oneOf:
- $ref: '#/$defs/retryPolicy'
Expand Down Expand Up @@ -1152,6 +1155,27 @@ $defs:
title: ErrorDetails
description: A human-readable explanation specific to this occurrence of the error.
required: [ type, status ]
errorFilter:
type: object
title: ErrorFilter
description: Error filtering base on static values. For error filtering on dynamic values, use catch.when property
properties:
type:
type: string
description: if not null, means that value should be used for filtering
status:
type: integer
default: -1
description: if different than -1, means this value should be used for filtering
instance:
type: string
description: if not null, means this value should be used for filtering
title:
type: string
description: if not null, means this value should be used for filtering
details:
type: string
description: if not null, means this value should be used for filtering
uriTemplate:
title: UriTemplate
anyOf:
Expand Down

0 comments on commit 69f8292

Please sign in to comment.