Explorar o código

change function load and parse schemafor mongo

tsteuer %!s(int64=5) %!d(string=hai) anos
pai
achega
097e5b9a71
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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