finos / symphony-bdk-python

Symphony Python Bot Development Kit (BDK)
https://symphony-bdk-python.finos.org/
Apache License 2.0
31 stars 34 forks source link

list_user_audit_trail crashes when pagination cursors are not null #277

Closed symphony-soufiane closed 2 years ago

symphony-soufiane commented 2 years ago

Description

When the api response contains pagination cursors (before and/or after) set to None/Null, list_user_audit_trail crashes with TypeError: _from_openapi_data() missing 2 required positional arguments: 'before' and 'after'

This happens when no audit trails are returned for a user, or few than one page size.

Expected result

Optional pagination cursors are correctly mapped from api response when they are None