cadwyn 4.4.0__py3-none-any.whl → 4.4.1__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/schema_generation.py +1 -1
- cadwyn/structure/versions.py +2 -0
- {cadwyn-4.4.0.dist-info → cadwyn-4.4.1.dist-info}/METADATA +2 -2
- {cadwyn-4.4.0.dist-info → cadwyn-4.4.1.dist-info}/RECORD +7 -7
- {cadwyn-4.4.0.dist-info → cadwyn-4.4.1.dist-info}/WHEEL +0 -0
- {cadwyn-4.4.0.dist-info → cadwyn-4.4.1.dist-info}/entry_points.txt +0 -0
- {cadwyn-4.4.0.dist-info → cadwyn-4.4.1.dist-info}/licenses/LICENSE +0 -0
cadwyn/schema_generation.py
CHANGED
|
@@ -607,7 +607,7 @@ class SchemaGenerator:
|
|
|
607
607
|
|
|
608
608
|
def __getitem__(self, model: type[_T_ANY_MODEL], /) -> type[_T_ANY_MODEL]:
|
|
609
609
|
if not isinstance(model, type) or not issubclass(model, BaseModel | Enum) or model in (BaseModel, RootModel):
|
|
610
|
-
return model
|
|
610
|
+
return model
|
|
611
611
|
model = _unwrap_model(model)
|
|
612
612
|
|
|
613
613
|
if model in self.concrete_models:
|
cadwyn/structure/versions.py
CHANGED
|
@@ -156,6 +156,8 @@ class VersionChange:
|
|
|
156
156
|
"instructions_to_migrate_to_previous_version",
|
|
157
157
|
"__module__",
|
|
158
158
|
"__doc__",
|
|
159
|
+
"__firstlineno__",
|
|
160
|
+
"__static_attributes__",
|
|
159
161
|
}:
|
|
160
162
|
raise CadwynStructureError(
|
|
161
163
|
f"Found: '{attr_name}' attribute of type '{type(attr_value)}' in '{cls.__name__}'."
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cadwyn
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.1
|
|
4
4
|
Summary: Production-ready community-driven modern Stripe-like API versioning in FastAPI
|
|
5
5
|
Project-URL: Source code, https://github.com/zmievsa/cadwyn
|
|
6
6
|
Project-URL: Documentation, https://docs.cadwyn.dev
|
|
7
7
|
Author-email: Stanislav Zmiev <zmievsa@gmail.com>
|
|
8
8
|
License-Expression: MIT
|
|
9
9
|
License-File: LICENSE
|
|
10
|
-
Keywords: api,api-versioning,code-generation,fastapi,hints,json-schema,pydantic,python,python310,python311,python312,stripe,versioning
|
|
10
|
+
Keywords: api,api-versioning,code-generation,fastapi,hints,json-schema,pydantic,python,python310,python311,python312,python313,stripe,versioning
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Web Environment
|
|
13
13
|
Classifier: Framework :: AsyncIO
|
|
@@ -11,7 +11,7 @@ cadwyn/middleware.py,sha256=kUZK2dmoricMbv6knPCIHpXEInX2670XIwAj0v_XQxk,3408
|
|
|
11
11
|
cadwyn/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
cadwyn/route_generation.py,sha256=870pZK-Gs_pUuRRj9jcJm3AOc-Ua2jtNRoJcwUutLA4,24028
|
|
13
13
|
cadwyn/routing.py,sha256=9AHSojmuLgUAQlLMIqXz-ViZ9n-fljgOsn7oxha7PjM,7341
|
|
14
|
-
cadwyn/schema_generation.py,sha256=
|
|
14
|
+
cadwyn/schema_generation.py,sha256=EUZiJ4EYWo8P47RfBaf2T7n5NcvGPKWXPZGNKMkvPQA,39955
|
|
15
15
|
cadwyn/static/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
cadwyn/static/docs.html,sha256=WNm5ANJVy51TcIUFOaqKf1Z8eF86CC85TTHPxACtkzw,3455
|
|
17
17
|
cadwyn/structure/__init__.py,sha256=vej7TdTMSOg8U8Wk7GTNdA4rc6loA9083FWaTg4jAaY,655
|
|
@@ -20,9 +20,9 @@ cadwyn/structure/data.py,sha256=1ALPhBBCE_t4GrxM0Fa3hQ-jkORJgeWNySnZ42bsi0g,7382
|
|
|
20
20
|
cadwyn/structure/endpoints.py,sha256=9FFnbqPM9v0CP6J6tGhMNKVvWqA9u3ZjI2Fannr2Rl0,5933
|
|
21
21
|
cadwyn/structure/enums.py,sha256=bZL-iUOUFi9ZYlMZJw-tAix2yrgCp3gH3N2gwO44LUU,1043
|
|
22
22
|
cadwyn/structure/schemas.py,sha256=D0BD1D3v9MRdVWchU9JM2zHd0dvB0UgXHDGFCe5aQZc,8209
|
|
23
|
-
cadwyn/structure/versions.py,sha256=
|
|
24
|
-
cadwyn-4.4.
|
|
25
|
-
cadwyn-4.4.
|
|
26
|
-
cadwyn-4.4.
|
|
27
|
-
cadwyn-4.4.
|
|
28
|
-
cadwyn-4.4.
|
|
23
|
+
cadwyn/structure/versions.py,sha256=7vbKSj0XwYNDbDXRAhB4iHT1K1YCRAcvXsQrC6rZn7w,33731
|
|
24
|
+
cadwyn-4.4.1.dist-info/METADATA,sha256=bLYD-tUvQ2ZoFIlninM9Y6IIro_9OWcDcXW5FYbD5Zc,4453
|
|
25
|
+
cadwyn-4.4.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
26
|
+
cadwyn-4.4.1.dist-info/entry_points.txt,sha256=mGX8wl-Xfhpr5M93SUmkykaqinUaYAvW9rtDSX54gx0,47
|
|
27
|
+
cadwyn-4.4.1.dist-info/licenses/LICENSE,sha256=KeCWewiDQYpmSnzF-p_0YpoWiyDcUPaCuG8OWQs4ig4,1072
|
|
28
|
+
cadwyn-4.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|