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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bk-schema-checker",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "对照前端 services、Django REST 序列化器,以及可选的 bk-local-mock 响应,做接口协议检查。不启动 Django。",
5
5
  "type": "module",
6
6
  "author": "austinqli",
@@ -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
- return self.class_assign_mro(ref, "pagination_class") is not None
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):