瀏覽代碼

change function load and parse schemafor mongo

tsteuer 5 年之前
父節點
當前提交
097e5b9a71
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cdplib/db_migration/ParseJsonSchema.py

+ 2 - 0
cdplib/db_migration/ParseJsonSchema.py

@@ -355,7 +355,9 @@ class ParseJsonSchema(ParseDbSchema):
         definitions_flag = self._analyze_schema(schema)
 
         if definitions_flag:
+            schema = self._format_schema_for_mongo(schema)
             schema = self._dereference_schema(schema)
+            schema = self._format_schema_for_mongo(schema)
 
         return schema