maleo-foundation 0.0.35__py3-none-any.whl → 0.0.36__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.
@@ -9,6 +9,11 @@ class BaseResponses:
9
9
  class Fail(BaseResultSchemas.Fail):
10
10
  other:BaseTypes.OptionalAny = Field("Please try again later or contact administrator.", description="Response's other information")
11
11
 
12
+ class BadRequest(Fail):
13
+ code:str = "MAL-BDR-001"
14
+ message:str = "Bad Request"
15
+ description:str = "Bad/Unexpected parameters given in the request"
16
+
12
17
  class Unauthorized(Fail):
13
18
  code:str = "MAL-ATH-001"
14
19
  message:str = "Unauthorized Request"
@@ -79,6 +84,10 @@ class BaseResponses:
79
84
 
80
85
  #* ----- ----- Responses Class ----- ----- *#
81
86
  other_responses={
87
+ status.HTTP_400_BAD_REQUEST: {
88
+ "description": "Bad Request Response",
89
+ "model": BadRequest
90
+ },
82
91
  status.HTTP_401_UNAUTHORIZED: {
83
92
  "description": "Unauthorized Response",
84
93
  "model": Unauthorized
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.35
3
+ Version: 0.0.36
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -20,7 +20,7 @@ maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG
20
20
  maleo_foundation/models/__init__.py,sha256=HTiSh5eRZ6_iBR2fmylLw_UZNE82GsmzHG3HFBqH2uE,500
21
21
  maleo_foundation/models/enums.py,sha256=skLmbrD7DqL1CJN2BCRfWYu5QU1XZVIa_SoJnZbZcrs,2201
22
22
  maleo_foundation/models/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
23
- maleo_foundation/models/responses.py,sha256=pAHlRzbLJtlu9TwMtLBK7nbtjsvKnV0cJtbvtQH2l8E,4242
23
+ maleo_foundation/models/responses.py,sha256=TFaULm23KREwyGHNolOQ2ZR_Nxupc-6TWzC1T3ZF0z4,4548
24
24
  maleo_foundation/models/types.py,sha256=rg9AoNwwECJ2BhYdoz3DiUMlBgFRWVEl4KGrfTCntnI,1213
25
25
  maleo_foundation/models/expanded_types/__init__.py,sha256=RohoIQCiMvo2g6Jacq2dlqNXg3WLmRc-TD8nvMsyDKs,275
26
26
  maleo_foundation/models/expanded_types/client.py,sha256=To0kRXp3QTmuSu5rWKaCiTsMK9qkYiyYKYbHfw-y1fY,2396
@@ -50,7 +50,7 @@ maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiD
50
50
  maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
51
51
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
52
52
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
53
- maleo_foundation-0.0.35.dist-info/METADATA,sha256=bCqkcVTKxZPsoWXF9_W3EMuu_0-70cSue03N2CYq7PQ,3160
54
- maleo_foundation-0.0.35.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
- maleo_foundation-0.0.35.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
- maleo_foundation-0.0.35.dist-info/RECORD,,
53
+ maleo_foundation-0.0.36.dist-info/METADATA,sha256=PNjCr3NshK-8uz9luYfVp8zohxS0NKa4UHTBd23uJMk,3160
54
+ maleo_foundation-0.0.36.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
+ maleo_foundation-0.0.36.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
+ maleo_foundation-0.0.36.dist-info/RECORD,,