maleo-foundation 0.0.19__py3-none-any.whl → 0.0.21__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.
@@ -49,6 +49,10 @@ class BaseResponses:
49
49
  class UnpaginatedMultipleData(BaseResultSchemas.UnpaginatedMultipleData): pass
50
50
 
51
51
  class PaginatedMultipleData(BaseResultSchemas.PaginatedMultipleData):
52
+ page:int = Field(1, ge=1, description="Page number, must be >= 1.", exclude=True)
53
+ limit:int = Field(10, ge=1, le=100, description="Page size, must be 1 <= limit <= 100.", exclude=True)
54
+ total_data:int = Field(..., ge=0, description="Total data count", exclude=True)
55
+
52
56
  @model_validator(mode="before")
53
57
  @classmethod
54
58
  def calculate_pagination(cls, values: dict) -> dict:
@@ -37,5 +37,5 @@ class BaseResultSchemas:
37
37
  UnpaginatedMultipleData,
38
38
  BaseGeneralSchemas.SimplePagination
39
39
  ):
40
- total_data:int = Field(..., description="Total data count")
40
+ total_data:int = Field(..., ge=0, description="Total data count")
41
41
  pagination:BaseGeneralSchemas.ExtendedPagination = Field(..., description="Pagination metadata")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.19
3
+ Version: 0.0.21
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -18,11 +18,11 @@ maleo_foundation/middlewares/base.py,sha256=KcpODNs0DQXX8Cwc6T9dC6aiZIqxTLtuJjVA
18
18
  maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
19
19
  maleo_foundation/models/__init__.py,sha256=Wh92XAduE1Sg9qi2GMhptyXig0fKcTS5AbGo3tE3tLs,348
20
20
  maleo_foundation/models/enums.py,sha256=Ob2v312JxypHEq7hTKZKOV462FEeLkIjIhpx-YF6Jdw,2203
21
- maleo_foundation/models/responses.py,sha256=323GEOdKeF_QMKtmuIYN5CUhOLDGFkxyKnmhqhTIzPs,3925
21
+ maleo_foundation/models/responses.py,sha256=1Rs3EflBJdsTC8PSbaOFbbTyxwRwK031eU3qLEj21sU,4215
22
22
  maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
23
23
  maleo_foundation/models/schemas/general.py,sha256=ZRppkwkrEUo3UXVXRdYIvobYaW6kkr8SWjy47mg3inA,6526
24
24
  maleo_foundation/models/schemas/parameter.py,sha256=1og_crWds6YLS-8Ha5EbAi3ZaNMzNFiIZ06v_HO3b9k,875
25
- maleo_foundation/models/schemas/result.py,sha256=fzzq5mbJSwTXt6r-m9Yz9XNx36gGtroaj7dCCySKSFo,1870
25
+ maleo_foundation/models/schemas/result.py,sha256=xGpGxYcK_HEzAU2yaySHGR9cnsCGfMloVoK8vF-4QZA,1876
26
26
  maleo_foundation/models/transfers/__init__.py,sha256=B8oCZHE3NTsrJ_rviSXaDsuc-gc25jpjuhJO40lpQiE,222
27
27
  maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
28
28
  maleo_foundation/models/transfers/parameters/client.py,sha256=Q43A-Z7JPXcxb_v7iUKoA1_WV8AMdEaeSl9Z39WSF_8,2287
@@ -47,7 +47,7 @@ maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiD
47
47
  maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
48
48
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
49
49
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
50
- maleo_foundation-0.0.19.dist-info/METADATA,sha256=_bhd2bYkugGtizRTy3911SHxmctrTrN1NhcRcsamjTk,3160
51
- maleo_foundation-0.0.19.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
52
- maleo_foundation-0.0.19.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
53
- maleo_foundation-0.0.19.dist-info/RECORD,,
50
+ maleo_foundation-0.0.21.dist-info/METADATA,sha256=RDcAjOBDg1YYQ1aMMPkS_dg6E17UiEzaACVe5ujTBV8,3160
51
+ maleo_foundation-0.0.21.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
52
+ maleo_foundation-0.0.21.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
53
+ maleo_foundation-0.0.21.dist-info/RECORD,,