浏览代码

change back ParseJsonSchema constructor

tsteuer 5 年之前
父节点
当前提交
cc7db49272
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cdplib/db_migration/ParseJsonSchema.py

+ 3 - 1
cdplib/db_migration/ParseJsonSchema.py

@@ -48,8 +48,10 @@ class ParseJsonSchema(ParseDbSchema):
 
         for schema_path in schema_paths:
             try:
+                with open(schema_path, "r") as f:
+                    self.schemas.append(json.load(f))
                 # Load schmea dereferenced and cleaned by default values
-                self.schemas.append(self.read_schema_and_parse_for_mongodb(schema_path))
+                #self.schemas.append(self.read_schema_and_parse_for_mongodb(schema_path))
 
             except Exception as e:
                 err = ("Could not load json schema, "