Skip to content

Commit

Permalink
Meta is optional in the response (#284)
Browse files Browse the repository at this point in the history
* meta is optional in the response

* update fixture to not include meta
  • Loading branch information
nudded authored Oct 31, 2024
1 parent 4478299 commit d9a006a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lago_python_client/services/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def prepare_index_response(
api_resource: [
prepare_object_response(response_model=response_model, data=el) for el in response_data[api_resource]
],
"meta": response_data["meta"],
"meta": response_data.get("meta", None),
}


Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/overdue_balance_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
"currency": "USD",
"lago_invoice_ids": ["1a901a90-1a90-1a90-1a90-1a901a901a90"]
}
],
"meta": {}
]
}

0 comments on commit d9a006a

Please sign in to comment.