Browse Source

change function load and parse schemafor mongo

tsteuer 4 years ago
parent
commit
097e5b9a71
1 changed files with 2 additions and 0 deletions
  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