ul-api-utils 8.1.10__py3-none-any.whl → 8.1.12__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 ul-api-utils might be problematic. Click here for more details.
- ul_api_utils/api_resource/api_resource_fn_typing.py +1 -1
- ul_api_utils/api_resource/api_response.py +2 -2
- ul_api_utils/api_resource/db_types.py +2 -3
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/METADATA +1 -1
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/RECORD +9 -9
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/LICENSE +0 -0
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/WHEEL +0 -0
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/entry_points.txt +0 -0
- {ul_api_utils-8.1.10.dist-info → ul_api_utils-8.1.12.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import inspect
|
|
2
|
-
from typing import NamedTuple, Any, Callable, Optional, List, Dict, Type, Tuple, TYPE_CHECKING, Union
|
|
2
|
+
from typing import NamedTuple, Any, Callable, Optional, List, Dict, Type, Tuple, TYPE_CHECKING, Union, get_origin, get_args
|
|
3
3
|
|
|
4
4
|
from flask import request
|
|
5
5
|
from pydantic import BaseModel, ValidationError, validate_call, TypeAdapter
|
|
@@ -268,8 +268,8 @@ class AnyJsonApiResponse(ApiResponse):
|
|
|
268
268
|
# exc can by Dict[str, str | Tuple[str]]
|
|
269
269
|
|
|
270
270
|
if many:
|
|
271
|
-
return JsonApiResponse(ok=False, total_count=0, payload=
|
|
272
|
-
return JsonApiResponse(ok=False, total_count=0, payload=
|
|
271
|
+
return JsonApiResponse(ok=False, total_count=0, payload={}, status_code=status_code, errors=errors)
|
|
272
|
+
return JsonApiResponse(ok=False, total_count=0, payload={}, status_code=status_code, errors=errors)
|
|
273
273
|
|
|
274
274
|
|
|
275
275
|
class JsonApiResponse(Generic[TJsonObjApiResponsePayload], AnyJsonApiResponse):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Union, Dict, Any, Tuple, Optional,
|
|
1
|
+
from typing import Union, Dict, Any, Tuple, Optional, List
|
|
2
2
|
|
|
3
3
|
from pydantic import BaseModel
|
|
4
4
|
from ul_db_utils.model.base_model import BaseModel as DbBaseModel
|
|
@@ -6,5 +6,4 @@ from flask_sqlalchemy import Model
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
TDictable = Union[Dict[str, Any], BaseModel, Tuple[Any, ...], DbBaseModel, Model] # TODO: remove DbBaseModel/Model from it BECAUSE IT loads sqlalchemy (>20mb of code)
|
|
9
|
-
|
|
10
|
-
TPayloadInputUnion = Union[Optional[TDictable], Iterable[TDictable]]
|
|
9
|
+
TPayloadInputUnion = Union[Optional[TDictable], List[TDictable]]
|
|
@@ -29,12 +29,12 @@ ul_api_utils/api_resource/api_request.py,sha256=6Ag2trKIkenhYYPU2--hnfNJC5lLgBxV
|
|
|
29
29
|
ul_api_utils/api_resource/api_resource.py,sha256=j-E8KJiXWS1L0oVIerJZlbGpDL2ijlQrck4GrJPWPyE,17840
|
|
30
30
|
ul_api_utils/api_resource/api_resource_config.py,sha256=l9OYJy75UZLshOkEQDO5jlhXeb5H4HDPu-nLOjuoexw,769
|
|
31
31
|
ul_api_utils/api_resource/api_resource_error_handling.py,sha256=E0SWpjFSIP-4SumbgzrHtFuFiGe9q38WsvLROt0YcPE,1168
|
|
32
|
-
ul_api_utils/api_resource/api_resource_fn_typing.py,sha256=
|
|
32
|
+
ul_api_utils/api_resource/api_resource_fn_typing.py,sha256=o-S6ep9fhSgZzQCv1lbpEojVLWcpFwaGP1CiS7GcFlk,19063
|
|
33
33
|
ul_api_utils/api_resource/api_resource_type.py,sha256=mgjSQI3swGpgpLI6y35LYtFrdN-kXyV5cQorwGW7h6g,462
|
|
34
|
-
ul_api_utils/api_resource/api_response.py,sha256=
|
|
34
|
+
ul_api_utils/api_resource/api_response.py,sha256=QXR_vqHFBIOiHYTbSZGaDbA57Etdjd2UUtFtU3-ml4U,10026
|
|
35
35
|
ul_api_utils/api_resource/api_response_db.py,sha256=ucY6ANPlHZml7JAbvq-PL85z0bvERTjEJKvz-REPyok,888
|
|
36
36
|
ul_api_utils/api_resource/api_response_payload_alias.py,sha256=FoD0LhQGZ2T8A5-VKRX5ADyzSgm7_dd3qxU2BgCVXkA,587
|
|
37
|
-
ul_api_utils/api_resource/db_types.py,sha256=
|
|
37
|
+
ul_api_utils/api_resource/db_types.py,sha256=51BNSrVmT7BTqHAP3nYuKwHz2WBQgJjBIkf_kH7AiuQ,427
|
|
38
38
|
ul_api_utils/api_resource/signature_check.py,sha256=jahhr7ttYEUKen_Wp2Eh1__oxqu7ZDoYgw0diK9CFzc,1266
|
|
39
39
|
ul_api_utils/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
ul_api_utils/commands/cmd_enc_keys.py,sha256=HvwihTrLMqhQO_nYA8U0oowqrTKsmUGzseRofuSCO9k,8488
|
|
@@ -148,9 +148,9 @@ ul_api_utils/validators/validate_empty_object.py,sha256=3Ck_iwyJE_M5e7l6s1i88aqb
|
|
|
148
148
|
ul_api_utils/validators/validate_uuid.py,sha256=EfvlRirv2EW0Z6w3s8E8rUa9GaI8qXZkBWhnPs8NFrA,257
|
|
149
149
|
ul_api_utils/validators/__tests__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
150
150
|
ul_api_utils/validators/__tests__/test_custom_fields.py,sha256=20gLlnm1Ithsbbz3NIUXVAd92lW6YwVRSg_nETZhfaI,1442
|
|
151
|
-
ul_api_utils-8.1.
|
|
152
|
-
ul_api_utils-8.1.
|
|
153
|
-
ul_api_utils-8.1.
|
|
154
|
-
ul_api_utils-8.1.
|
|
155
|
-
ul_api_utils-8.1.
|
|
156
|
-
ul_api_utils-8.1.
|
|
151
|
+
ul_api_utils-8.1.12.dist-info/LICENSE,sha256=6Qo8OdcqI8aGrswJKJYhST-bYqxVQBQ3ujKdTSdq-80,1062
|
|
152
|
+
ul_api_utils-8.1.12.dist-info/METADATA,sha256=eOjwWh3eslHYDo3pC11b-9fW6djr-mlPXO6fqjNJ9GY,14748
|
|
153
|
+
ul_api_utils-8.1.12.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
154
|
+
ul_api_utils-8.1.12.dist-info/entry_points.txt,sha256=8tL3ySHWTyJMuV1hx1fHfN8zumDVOCOm63w3StphkXg,53
|
|
155
|
+
ul_api_utils-8.1.12.dist-info/top_level.txt,sha256=1XsW8iOSFaH4LOzDcnNyxHpHrbKU3fSn-aIAxe04jmw,21
|
|
156
|
+
ul_api_utils-8.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|