Skip to content

Return None when the response payload is empty #66

@sufyankhanrao

Description

@sufyankhanrao

In the existing implementation when the response from the API Call is missing which means the raw response payload is None or empty string including whitespaces, then return None instead of the same payload. The fix is in the json_deserialize utility in ApiHelper class.

### Tasks
- [x] Add the guard clause in the `json_deserialize` utility.
- [x] Add the unit tests around the change

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions