bk-schema-checker 0.1.2 → 0.1.3
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.
- package/package.json +1 -1
- package/py/load_backend.py +3 -1
package/package.json
CHANGED
package/py/load_backend.py
CHANGED
|
@@ -938,7 +938,9 @@ class BackendLoader:
|
|
|
938
938
|
if func is not None and is_paginated(func):
|
|
939
939
|
return True
|
|
940
940
|
if spec["action"] == "list" and not self.pagination_disabled(ref):
|
|
941
|
-
|
|
941
|
+
# DRF ListModelMixin.list 在 pagination_class 非空时包成 {count, results}。
|
|
942
|
+
# 类上没写则用 REST_FRAMEWORK["DEFAULT_PAGINATION_CLASS"],和查询参数同源。
|
|
943
|
+
return self.pagination_source(ref, spec) is not None
|
|
942
944
|
return False
|
|
943
945
|
|
|
944
946
|
def pagination_disabled_here(self, ref):
|