cadwyn 3.4.3__py3-none-any.whl → 3.4.4__py3-none-any.whl
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.
Potentially problematic release.
This version of cadwyn might be problematic. Click here for more details.
- cadwyn/structure/versions.py +5 -6
- {cadwyn-3.4.3.dist-info → cadwyn-3.4.4.dist-info}/METADATA +1 -1
- {cadwyn-3.4.3.dist-info → cadwyn-3.4.4.dist-info}/RECORD +6 -6
- {cadwyn-3.4.3.dist-info → cadwyn-3.4.4.dist-info}/LICENSE +0 -0
- {cadwyn-3.4.3.dist-info → cadwyn-3.4.4.dist-info}/WHEEL +0 -0
- {cadwyn-3.4.3.dist-info → cadwyn-3.4.4.dist-info}/entry_points.txt +0 -0
cadwyn/structure/versions.py
CHANGED
|
@@ -303,13 +303,13 @@ class VersionBundle:
|
|
|
303
303
|
self,
|
|
304
304
|
body_type: type[BaseModel] | None,
|
|
305
305
|
latest_dependant_with_internal_schema: Dependant,
|
|
306
|
+
path: str,
|
|
306
307
|
request: FastapiRequest,
|
|
307
308
|
response: FastapiResponse,
|
|
308
309
|
request_info: RequestInfo,
|
|
309
310
|
current_version: VersionDate,
|
|
310
311
|
latest_route: APIRoute,
|
|
311
312
|
) -> dict[str, Any]:
|
|
312
|
-
path = request.scope["path"]
|
|
313
313
|
method = request.method
|
|
314
314
|
for v in reversed(self.versions):
|
|
315
315
|
if v.value <= current_version:
|
|
@@ -363,7 +363,6 @@ class VersionBundle:
|
|
|
363
363
|
Returns:
|
|
364
364
|
Modified data
|
|
365
365
|
"""
|
|
366
|
-
|
|
367
366
|
for v in self.versions:
|
|
368
367
|
if v.value <= current_version:
|
|
369
368
|
break
|
|
@@ -396,7 +395,6 @@ class VersionBundle:
|
|
|
396
395
|
async def decorator(*args: Any, **kwargs: Any) -> _R:
|
|
397
396
|
request: FastapiRequest = kwargs[request_param_name]
|
|
398
397
|
response: FastapiResponse = kwargs[response_param_name]
|
|
399
|
-
path = request.scope["path"]
|
|
400
398
|
method = request.method
|
|
401
399
|
kwargs = await self._convert_endpoint_kwargs_to_version(
|
|
402
400
|
template_module_body_field_for_request_migrations,
|
|
@@ -413,7 +411,7 @@ class VersionBundle:
|
|
|
413
411
|
return await self._convert_endpoint_response_to_version(
|
|
414
412
|
endpoint,
|
|
415
413
|
latest_route,
|
|
416
|
-
|
|
414
|
+
route,
|
|
417
415
|
method,
|
|
418
416
|
response_param_name,
|
|
419
417
|
kwargs,
|
|
@@ -433,7 +431,7 @@ class VersionBundle:
|
|
|
433
431
|
self,
|
|
434
432
|
func_to_get_response_from: Endpoint,
|
|
435
433
|
latest_route: APIRoute,
|
|
436
|
-
|
|
434
|
+
route: APIRoute,
|
|
437
435
|
method: str,
|
|
438
436
|
response_param_name: str,
|
|
439
437
|
kwargs: dict[str, Any],
|
|
@@ -480,7 +478,7 @@ class VersionBundle:
|
|
|
480
478
|
response_info,
|
|
481
479
|
api_version,
|
|
482
480
|
latest_route,
|
|
483
|
-
path,
|
|
481
|
+
route.path,
|
|
484
482
|
method,
|
|
485
483
|
)
|
|
486
484
|
if isinstance(response_or_response_body, FastapiResponse):
|
|
@@ -545,6 +543,7 @@ class VersionBundle:
|
|
|
545
543
|
new_kwargs = await self._migrate_request(
|
|
546
544
|
template_module_body_field_for_request_migrations,
|
|
547
545
|
latest_dependant_with_internal_schema,
|
|
546
|
+
route.path,
|
|
548
547
|
request,
|
|
549
548
|
response,
|
|
550
549
|
request_info,
|
|
@@ -26,9 +26,9 @@ cadwyn/structure/endpoints.py,sha256=VngfAydGBwekhV2tBOtNDPVgl3X1IgYxUCw--VZ5cQY
|
|
|
26
26
|
cadwyn/structure/enums.py,sha256=iMokxA2QYJ61SzyB-Pmuq3y7KL7-e6TsnjLVUaVZQnw,954
|
|
27
27
|
cadwyn/structure/modules.py,sha256=1FK-lLm-zOTXEvn-QtyBH38aDRht5PDQiZrOPCsBlM4,1268
|
|
28
28
|
cadwyn/structure/schemas.py,sha256=LIKwDuzorVC9AHg4EN-UYdI133lCk_2MkBTdiyAr-EQ,8808
|
|
29
|
-
cadwyn/structure/versions.py,sha256=
|
|
30
|
-
cadwyn-3.4.
|
|
31
|
-
cadwyn-3.4.
|
|
32
|
-
cadwyn-3.4.
|
|
33
|
-
cadwyn-3.4.
|
|
34
|
-
cadwyn-3.4.
|
|
29
|
+
cadwyn/structure/versions.py,sha256=YSAPrGOIesWtVI-CW5gEMbzNops5idMKeeksBGcJaMY,28365
|
|
30
|
+
cadwyn-3.4.4.dist-info/entry_points.txt,sha256=eO05hLn9GoRzzpwT9GONPmXKsonjuMNssM2D2WHWKGk,46
|
|
31
|
+
cadwyn-3.4.4.dist-info/LICENSE,sha256=KeCWewiDQYpmSnzF-p_0YpoWiyDcUPaCuG8OWQs4ig4,1072
|
|
32
|
+
cadwyn-3.4.4.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
|
|
33
|
+
cadwyn-3.4.4.dist-info/METADATA,sha256=cW1suk85sWnkSQYswqck6ho5NxtbwGmUAIgOin1MPWc,4264
|
|
34
|
+
cadwyn-3.4.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|