finalsa-common-http-client 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finalsa-common-http-client
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: HTTP client library for common data types used in business applications
5
5
  Project-URL: Homepage, https://github.com/finalsa/finalsa-http-client
6
6
  Project-URL: Documentation, https://github.com/finalsa/finalsa-http-client#readme
@@ -186,7 +186,7 @@ class BaseAsyncHttpClient:
186
186
  pagination_request_dict.pop('exclusive_start_key')
187
187
  response = await self.get(path, params=pagination_request_dict, **kwargs)
188
188
  data = await response.json()
189
- items = [response_model.model_validate(item) for item in data["items"]]
189
+ items = [response_model(**item) for item in data["items"]]
190
190
  data["items"] = items
191
191
  return PaginationResponse[response_model](**data)
192
192
 
@@ -164,7 +164,7 @@ class BaseSyncHttpClient:
164
164
  pagination_request_dict.pop('exclusive_start_key')
165
165
  response = self.get(path, params=pagination_request_dict, **kwargs)
166
166
  data = response.json()
167
- items = [response_model.model_validate(item) for item in data["items"]]
167
+ items = [response_model(**item) for item in data["items"]]
168
168
  data["items"] = items
169
169
  return PaginationResponse[response_model](**data)
170
170
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "finalsa-common-http-client"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  description = "HTTP client library for common data types used in business applications"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"