CheeseAPI 1.3.1__tar.gz → 1.3.2__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.
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/validator.py +7 -5
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/PKG-INFO +1 -1
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/pyproject.toml +1 -1
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/.gitignore +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/__init__.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/app.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/cors.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/exception.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/file.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/handle.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/protocol.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/request.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/response.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/route.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/schedule.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/server.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/signal.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/text.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/websocket.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/CheeseAPI/workspace.py +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/LICENSE +0 -0
- {cheeseapi-1.3.1 → cheeseapi-1.3.2}/README.md +0 -0
|
@@ -62,18 +62,20 @@ def validator(validator: BaseModel):
|
|
|
62
62
|
|
|
63
63
|
_kwargs = {}
|
|
64
64
|
for key in validator.model_fields.keys():
|
|
65
|
-
_kwargs[key] = None
|
|
66
|
-
|
|
67
65
|
for scope in [ 'path', 'args', 'form', 'cookie', 'headers' ]:
|
|
68
66
|
try:
|
|
69
67
|
if scope == 'path':
|
|
70
|
-
_kwargs[key] = kwargs
|
|
68
|
+
_kwargs[key] = kwargs[key]
|
|
71
69
|
elif scope == 'headers':
|
|
72
|
-
_kwargs[key] = getattr(request, scope)
|
|
70
|
+
_kwargs[key] = getattr(request, scope)[key.replace('_', '-')]
|
|
73
71
|
else:
|
|
74
|
-
_kwargs[key] = getattr(request, scope)
|
|
72
|
+
_kwargs[key] = getattr(request, scope)[key]
|
|
75
73
|
|
|
76
74
|
if _kwargs.get(key):
|
|
75
|
+
try:
|
|
76
|
+
_kwargs[key] = json.loads(_kwargs[key])
|
|
77
|
+
except:
|
|
78
|
+
...
|
|
77
79
|
break
|
|
78
80
|
except:
|
|
79
81
|
...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|