Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAT-1590] Allow any type for the workflow task output #140

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading