Skip to content

Commit

Permalink
Allow any type for the workflow task output (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido authored Dec 19, 2024
1 parent 77000d7 commit 964fb43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions schemas/tasks/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ properties:
type: object
description: Input object with the fields used by the Task to execute.
output:
type: object
nullable: true
description: Output object with the fields produced by the Task execution.
description: Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
created_at:
type: string
format: date-time
Expand Down
3 changes: 1 addition & 2 deletions schemas/webhooks/webhook_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ properties:
type: object
description: Input object with the fields used by the Task execution.
output:
type: object
nullable: true
description: Output object with the fields produced by the Task execution.
description: Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
reasons:
type: array
items:
Expand Down
3 changes: 3 additions & 0 deletions shell/sync-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ case $client_lib_name in

python)
sed $SED_OPTS "s/ *$//" pyproject.toml setup.py
sed $SED_OPTS 's/output: Optional\[Dict\[str, Any\]\]/output: Any/g' \
onfido/models/webhook_event_payload_resource.py \
onfido/models/task.py
pipx run poetry==1.8 lock
;;

Expand Down

0 comments on commit 964fb43

Please sign in to comment.