diff --git a/schemas/tasks/task.yaml b/schemas/tasks/task.yaml index f0036434..2f8a904a 100644 --- a/schemas/tasks/task.yaml +++ b/schemas/tasks/task.yaml @@ -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 diff --git a/schemas/webhooks/webhook_event.yaml b/schemas/webhooks/webhook_event.yaml index 7eada4d4..4e9353bc 100644 --- a/schemas/webhooks/webhook_event.yaml +++ b/schemas/webhooks/webhook_event.yaml @@ -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: diff --git a/shell/sync-lib.sh b/shell/sync-lib.sh index f0895bfd..3d047f3f 100755 --- a/shell/sync-lib.sh +++ b/shell/sync-lib.sh @@ -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 ;;